# HG changeset patch # User John W. Eaton # Date 1553879215 0 # Node ID 711f233322046f247c1e048f99cff081a5515d81 # Parent ec0f2f745ea31562d016f390173bfe41d6d8e1c1 eliminate some unnecessary include statements * oct-lvalue.h: Include stack-frame.h instead of call-stack.h. * defun.cc, ddef-method.cc, cdef-package.cc: Don't include pt-eval.h. * bp-table.cc, symtab.cc, toplev.cc: Don't include call-stack.h. * fcn-info.cc, symtab.cc, pt-decl.h, pt-misc.h: Don't include symrec.h. * symrec.cc: Don't include symscope.h. * cdef-package.cc, pt-stmt.cc: Don't include pt-walk.h. * ov-classdef.cc: Don't include symtab.h. diff -r ec0f2f745ea3 -r 711f23332204 libinterp/corefcn/defun.cc --- a/libinterp/corefcn/defun.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/corefcn/defun.cc Fri Mar 29 17:06:55 2019 +0000 @@ -40,7 +40,6 @@ #include "ovl.h" #include "oct-lvalue.h" #include "pager.h" -#include "pt-eval.h" #include "interpreter-private.h" #include "interpreter.h" #include "symtab.h" diff -r ec0f2f745ea3 -r 711f23332204 libinterp/corefcn/fcn-info.cc --- a/libinterp/corefcn/fcn-info.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/corefcn/fcn-info.cc Fri Mar 29 17:06:55 2019 +0000 @@ -34,7 +34,6 @@ #include "ov-fcn.h" #include "ov-usr-fcn.h" #include "parse.h" -#include "symrec.h" #include "symscope.h" #include "symtab.h" diff -r ec0f2f745ea3 -r 711f23332204 libinterp/corefcn/symrec.cc --- a/libinterp/corefcn/symrec.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/corefcn/symrec.cc Fri Mar 29 17:06:55 2019 +0000 @@ -36,7 +36,6 @@ #include "interpreter-private.h" #include "interpreter.h" #include "symrec.h" -#include "symscope.h" namespace octave { diff -r ec0f2f745ea3 -r 711f23332204 libinterp/corefcn/symtab.cc --- a/libinterp/corefcn/symtab.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/corefcn/symtab.cc Fri Mar 29 17:06:55 2019 +0000 @@ -35,7 +35,6 @@ #include "oct-time.h" #include "bp-table.h" -#include "call-stack.h" #include "defun.h" #include "dirfns.h" #include "fcn-info.h" @@ -48,7 +47,6 @@ #include "pager.h" #include "parse.h" #include "pt-pr-code.h" -#include "symrec.h" #include "symscope.h" #include "symtab.h" #include "unwind-prot.h" diff -r ec0f2f745ea3 -r 711f23332204 libinterp/corefcn/toplev.cc --- a/libinterp/corefcn/toplev.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/corefcn/toplev.cc Fri Mar 29 17:06:55 2019 +0000 @@ -48,7 +48,6 @@ #include "build-env.h" #include "liboctinterp-build-info.h" -#include "call-stack.h" #include "defaults.h" #include "defun.h" #include "error.h" diff -r ec0f2f745ea3 -r 711f23332204 libinterp/octave-value/cdef-method.cc --- a/libinterp/octave-value/cdef-method.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/octave-value/cdef-method.cc Fri Mar 29 17:06:55 2019 +0000 @@ -41,7 +41,6 @@ #include "parse.h" #include "pt-assign.h" #include "pt-classdef.h" -#include "pt-eval.h" #include "pt-idx.h" #include "pt-misc.h" #include "pt-stmt.h" diff -r ec0f2f745ea3 -r 711f23332204 libinterp/octave-value/cdef-package.cc --- a/libinterp/octave-value/cdef-package.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/octave-value/cdef-package.cc Fri Mar 29 17:06:55 2019 +0000 @@ -41,11 +41,9 @@ #include "parse.h" #include "pt-assign.h" #include "pt-classdef.h" -#include "pt-eval.h" #include "pt-idx.h" #include "pt-misc.h" #include "pt-stmt.h" -#include "pt-walk.h" // Define to 1 to enable debugging statements. #define DEBUG_TRACE 0 diff -r ec0f2f745ea3 -r 711f23332204 libinterp/octave-value/ov-classdef.cc --- a/libinterp/octave-value/ov-classdef.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/octave-value/ov-classdef.cc Fri Mar 29 17:06:55 2019 +0000 @@ -44,7 +44,6 @@ #include "parse.h" #include "pt-eval.h" #include "pt-misc.h" -#include "symtab.h" static bool in_class_method (const octave::cdef_class& cls) diff -r ec0f2f745ea3 -r 711f23332204 libinterp/parse-tree/bp-table.cc --- a/libinterp/parse-tree/bp-table.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/parse-tree/bp-table.cc Fri Mar 29 17:06:55 2019 +0000 @@ -36,7 +36,6 @@ #include "bp-table.h" #include "defun-int.h" -#include "call-stack.h" #include "error.h" #include "interpreter.h" #include "interpreter-private.h" diff -r ec0f2f745ea3 -r 711f23332204 libinterp/parse-tree/oct-lvalue.h --- a/libinterp/parse-tree/oct-lvalue.h Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/parse-tree/oct-lvalue.h Fri Mar 29 17:06:55 2019 +0000 @@ -28,7 +28,7 @@ #include #include "ovl.h" -#include "call-stack.h" +#include "stack-frame.h" #include "symrec.h" namespace octave diff -r ec0f2f745ea3 -r 711f23332204 libinterp/parse-tree/pt-decl.h --- a/libinterp/parse-tree/pt-decl.h Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/parse-tree/pt-decl.h Fri Mar 29 17:06:55 2019 +0000 @@ -33,7 +33,6 @@ #include "pt-cmd.h" #include "pt-id.h" #include "pt-walk.h" -#include "symrec.h" namespace octave { diff -r ec0f2f745ea3 -r 711f23332204 libinterp/parse-tree/pt-misc.h --- a/libinterp/parse-tree/pt-misc.h Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/parse-tree/pt-misc.h Fri Mar 29 17:06:55 2019 +0000 @@ -28,7 +28,6 @@ #include "base-list.h" #include "pt-decl.h" #include "pt-walk.h" -#include "symrec.h" namespace octave { diff -r ec0f2f745ea3 -r 711f23332204 libinterp/parse-tree/pt-stmt.cc --- a/libinterp/parse-tree/pt-stmt.cc Fri Mar 29 09:34:32 2019 -0700 +++ b/libinterp/parse-tree/pt-stmt.cc Fri Mar 29 17:06:55 2019 +0000 @@ -43,7 +43,6 @@ #include "pt-jump.h" #include "pt-pr-code.h" #include "pt-stmt.h" -#include "pt-walk.h" #include "utils.h" #include "variables.h"