changeset 26325:4877f77d5e1d stable

add necessary includes and forward decls in public header files (bug #55277) * load-save.h: Include ovl.h for full octave_value_list definition, delete forward decls that are now declared by inclusion. * oct-hist.h: Include ovl.h for full octave_value_list definition, add forward decl of octave::interpreter. * pager.h: Add forward decl of octave_value_list. * settings.h: Add forward decl of octave_value, include cstddef for size_t. * pt-tm-const.h: Include pt-mat.h for full octave::tree_matrix definition.
author Mike Miller <mtmiller@octave.org>
date Sun, 30 Dec 2018 13:26:33 -0800
parents c5a909b164de
children d0c070f5c67a
files libinterp/corefcn/load-save.h libinterp/corefcn/oct-hist.h libinterp/corefcn/pager.h libinterp/corefcn/settings.h libinterp/parse-tree/pt-tm-const.h
diffstat 5 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/load-save.h	Sun Dec 30 13:18:05 2018 -0800
+++ b/libinterp/corefcn/load-save.h	Sun Dec 30 13:26:33 2018 -0800
@@ -30,8 +30,7 @@
 
 #include "mach-info.h"
 
-class string_vector;
-class octave_value;
+#include "ovl.h"
 
 namespace octave
 {
--- a/libinterp/corefcn/oct-hist.h	Sun Dec 30 13:18:05 2018 -0800
+++ b/libinterp/corefcn/oct-hist.h	Sun Dec 30 13:26:33 2018 -0800
@@ -29,8 +29,12 @@
 
 #include "cmd-hist.h"
 
+#include "ovl.h"
+
 namespace octave
 {
+  class interpreter;
+
   class history_system
   {
   public:
--- a/libinterp/corefcn/pager.h	Sun Dec 30 13:18:05 2018 -0800
+++ b/libinterp/corefcn/pager.h	Sun Dec 30 13:26:33 2018 -0800
@@ -31,6 +31,7 @@
 #include <string>
 
 class octave_value;
+class octave_value_list;
 class oprocstream;
 
 namespace octave
--- a/libinterp/corefcn/settings.h	Sun Dec 30 13:18:05 2018 -0800
+++ b/libinterp/corefcn/settings.h	Sun Dec 30 13:26:33 2018 -0800
@@ -25,6 +25,9 @@
 
 #include "octave-config.h"
 
+#include <cstddef>
+
+class octave_value;
 class octave_value_list;
 
 namespace octave
--- a/libinterp/parse-tree/pt-tm-const.h	Sun Dec 30 13:18:05 2018 -0800
+++ b/libinterp/parse-tree/pt-tm-const.h	Sun Dec 30 13:26:33 2018 -0800
@@ -38,11 +38,11 @@
 #include "ov.h"
 #include "ovl.h"
 #include "pt-arg-list.h"
+#include "pt-mat.h"
 
 namespace octave
 {
   class tree_evaluator;
-  class tree_matrix;
 
   // Evaluate tree_matrix objects and convert them to octave_value
   // arrays (full and sparse numeric, char, cell, struct, class and