changeset 27000:711f23332204

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.
author John W. Eaton <jwe@octave.org>
date Fri, 29 Mar 2019 17:06:55 +0000
parents ec0f2f745ea3
children 3cea1cfb37d3
files libinterp/corefcn/defun.cc libinterp/corefcn/fcn-info.cc libinterp/corefcn/symrec.cc libinterp/corefcn/symtab.cc libinterp/corefcn/toplev.cc libinterp/octave-value/cdef-method.cc libinterp/octave-value/cdef-package.cc libinterp/octave-value/ov-classdef.cc libinterp/parse-tree/bp-table.cc libinterp/parse-tree/oct-lvalue.h libinterp/parse-tree/pt-decl.h libinterp/parse-tree/pt-misc.h libinterp/parse-tree/pt-stmt.cc
diffstat 13 files changed, 1 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- 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"
--- 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"
 
--- 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
 {
--- 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"
--- 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"
--- 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"
--- 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
--- 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)
--- 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"
--- 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 <string>
 
 #include "ovl.h"
-#include "call-stack.h"
+#include "stack-frame.h"
 #include "symrec.h"
 
 namespace octave
--- 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
 {
--- 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
 {
--- 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"