changeset 15089:60ff2cef569d

maint: Move core interpreter files with DEFUNS to interpfcn/ directory * src/Makefile.am: Adjust build system for new location of files. * interpfcn/module.mk: Add files and rules to build system. * data.cc, data.h, debug.cc, debug.h, defaults.cc, defaults.in.h, defun.cc, defun.h, dirfns.cc, dirfns.h, error.cc, error.h, file-io.cc, file-io.h, graphics.cc, graphics.in.h, help.cc, help.h, input.cc, input.h, load-path.cc, load-path.h, load-save.cc, load-save.h, ls-oct-ascii.cc, ls-oct-ascii.h, oct-hist.cc, oct-hist.h, pager.cc, pager.h, pr-output.cc, pr-output.h, profiler.cc, profiler.h, sighandlers.cc, sighandlers.h, symtab.cc, symtab.h, sysdep.cc, sysdep.h, toplev.cc, toplev.h, utils.cc, utils.h, variables.cc, variables.h: Move files to interpfcn/ directory
author Rik <rik@octave.org>
date Fri, 03 Aug 2012 09:31:37 -0700
parents 20b33f227599
children 8a62283e3783
files src/Makefile.am src/data.cc src/data.h src/debug.cc src/debug.h src/defaults.cc src/defaults.in.h src/defun.cc src/defun.h src/dirfns.cc src/dirfns.h src/error.cc src/error.h src/file-io.cc src/file-io.h src/graphics.cc src/graphics.in.h src/help.cc src/help.h src/input.cc src/input.h src/interpfcn/data.cc src/interpfcn/data.h src/interpfcn/debug.cc src/interpfcn/debug.h src/interpfcn/defaults.cc src/interpfcn/defaults.in.h src/interpfcn/defun.cc src/interpfcn/defun.h src/interpfcn/dirfns.cc src/interpfcn/dirfns.h src/interpfcn/error.cc src/interpfcn/error.h src/interpfcn/file-io.cc src/interpfcn/file-io.h src/interpfcn/graphics.cc src/interpfcn/graphics.in.h src/interpfcn/help.cc src/interpfcn/help.h src/interpfcn/input.cc src/interpfcn/input.h src/interpfcn/load-path.cc src/interpfcn/load-path.h src/interpfcn/load-save.cc src/interpfcn/load-save.h src/interpfcn/ls-oct-ascii.cc src/interpfcn/ls-oct-ascii.h src/interpfcn/module.mk src/interpfcn/oct-hist.cc src/interpfcn/oct-hist.h src/interpfcn/pager.cc src/interpfcn/pager.h src/interpfcn/pr-output.cc src/interpfcn/pr-output.h src/interpfcn/profiler.cc src/interpfcn/profiler.h src/interpfcn/sighandlers.cc src/interpfcn/sighandlers.h src/interpfcn/symtab.cc src/interpfcn/symtab.h src/interpfcn/sysdep.cc src/interpfcn/sysdep.h src/interpfcn/toplev.cc src/interpfcn/toplev.h src/interpfcn/utils.cc src/interpfcn/utils.h src/interpfcn/variables.cc src/interpfcn/variables.h src/load-path.cc src/load-path.h src/load-save.cc src/load-save.h src/ls-oct-ascii.cc src/ls-oct-ascii.h src/oct-hist.cc src/oct-hist.h src/pager.cc src/pager.h src/pr-output.cc src/pr-output.h src/profiler.cc src/profiler.h src/sighandlers.cc src/sighandlers.h src/symtab.cc src/symtab.h src/sysdep.cc src/sysdep.h src/toplev.cc src/toplev.h src/utils.cc src/utils.h src/variables.cc src/variables.h
diffstat 48 files changed, 85 insertions(+), 71 deletions(-) [+]
line wrap: on
line diff
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -22,13 +22,14 @@
 
 ## Search local directories before those specified by the user.
 AM_CPPFLAGS = \
-  -I../libgnu -I$(top_srcdir)/libgnu \
   -I$(top_srcdir)/libcruft/misc \
   -I../liboctave -I$(top_srcdir)/liboctave \
+  -Iinterpfcn -I$(srcdir)/interpfcn \
   -Icorefcn \
   -Ioctave-value -I$(srcdir)/octave-value \
   -Iparse-tree -I$(srcdir)/parse-tree \
   -I. -I$(srcdir) \
+  -I../libgnu -I$(top_srcdir)/libgnu \
   @CPPFLAGS@
 
 AUTOMAKE_OPTIONS = subdir-objects
@@ -66,9 +67,9 @@
 ## (except builtins.cc) to be available.
 BUILT_SOURCES = \
   $(BUILT_SOURCES_EXTRA) \
-  defaults.h \
-  graphics.h \
-  graphics-props.cc \
+  interpfcn/defaults.h \
+  interpfcn/graphics.h \
+  interpfcn/graphics-props.cc \
   parse-tree/lex.cc \
   mxarray.h \
   oct-conf.h \
@@ -81,13 +82,13 @@
 
 BUILT_DISTFILES = \
   oct-gperf.h \
-  oct-parse.h
+  parse-tree/oct-parse.h
 
 ## Files that are created during build process and installed,
 ## BUT not distributed in tarball.
 BUILT_NODISTFILES = \
-  defaults.h \
-  graphics.h \
+  interpfcn/defaults.h \
+  interpfcn/graphics.h \
   oct-conf.h \
   oct-errno.cc \
   ops.cc \
@@ -135,31 +136,20 @@
   c-file-ptr-stream.h \
   comment-list.h \
   cutils.h \
-  data.h \
-  debug.h \
   defun-dld.h \
   defun-int.h \
-  defun.h \
-  dirfns.h \
   display.h \
   dynamic-ld.h \
-  error.h \
-  file-io.h \
   gl-render.h \
   gl2ps.h \
   gl2ps-renderer.h \
-  graphics-props.cc \
+  interpfcn/graphics-props.cc \
   gripes.h \
-  help.h \
-  input.h \
-  load-path.h \
-  load-save.h \
   ls-ascii-helper.h \
   ls-hdf5.h \
   ls-mat-ascii.h \
   ls-mat4.h \
   ls-mat5.h \
-  ls-oct-ascii.h \
   ls-oct-binary.h \
   ls-utils.h \
   mex.h \
@@ -168,7 +158,6 @@
   oct-fstrm.h \
   oct-gperf.h \
   oct-hdf5.h \
-  oct-hist.h \
   oct-iostrm.h \
   oct-lvalue.h \
   oct-map.h \
@@ -181,23 +170,14 @@
   oct.h \
   octave.h \
   ops.h \
-  pager.h \
-  pr-output.h \
   procstream.h \
-  profiler.h \
-  sighandlers.h \
   siglist.h \
   sparse-xdiv.h \
   sparse-xpow.h \
-  symtab.h \
-  sysdep.h \
   token.h \
-  toplev.h \
   txt-eng-ft.h \
   txt-eng.h \
   unwind-prot.h \
-  utils.h \
-  variables.h \
   xdiv.h \
   xnorm.h \
   xpow.h \
@@ -205,11 +185,12 @@
   $(OV_INCLUDES) \
   $(OV_SPARSE_INCLUDES) \
   $(PT_INCLUDES) \
+  $(INTERPFCN_INCLUDES) \
   $(JIT_INCLUDES)
 
 nodist_octinclude_HEADERS = \
-  defaults.h \
-  graphics.h \
+  interpfcn/defaults.h \
+  interpfcn/graphics.h \
   oct-conf.h \
   mxarray.h \
   version.h
@@ -225,35 +206,21 @@
   c-file-ptr-stream.cc \
   comment-list.cc \
   cutils.c \
-  data.cc \
-  debug.cc \
-  defaults.cc \
-  defun.cc \
-  dirfns.cc \
   display.cc \
   dynamic-ld.cc \
-  error.cc \
-  file-io.cc \
   gl-render.cc \
   gl2ps-renderer.cc \
-  graphics.cc \
   gripes.cc \
-  help.cc \
-  input.cc \
-  load-path.cc \
-  load-save.cc \
   ls-ascii-helper.cc \
   ls-hdf5.cc \
   ls-mat-ascii.cc \
   ls-mat4.cc \
   ls-mat5.cc \
-  ls-oct-ascii.cc \
   ls-oct-binary.cc \
   ls-utils.cc \
   matherr.c \
   mex.cc \
   oct-fstrm.cc \
-  oct-hist.cc \
   oct-iostrm.cc \
   oct-lvalue.cc \
   oct-map.cc \
@@ -263,31 +230,23 @@
   oct-stream.cc \
   oct-strstrm.cc \
   octave.cc \
-  pager.cc \
-  pr-output.cc \
   procstream.cc \
-  profiler.cc \
-  sighandlers.cc \
   siglist.c \
   sparse-xdiv.cc \
   sparse-xpow.cc \
-  symtab.cc \
-  sysdep.cc \
   token.cc \
-  toplev.cc \
   txt-eng-ft.cc \
   unwind-prot.cc \
-  utils.cc \
-  variables.cc \
   xdiv.cc \
   xgl2ps.c \
   xnorm.cc \
   xpow.cc \
   zfstream.cc \
-  $(COREFCN_SRC) \
   $(OCTAVE_VALUE_SRC) \
   $(PARSE_TREE_SRC) \
-  $(JIT_SRC)
+  $(JIT_SRC) \
+  $(INTERPFCN_SRC) \
+  $(COREFCN_SRC)
 
 noinst_LTLIBRARIES =
 
@@ -295,6 +254,7 @@
 include octave-value/module.mk
 include operators/module.mk
 include template-inst/module.mk
+include interpfcn/module.mk
 include corefcn/module.mk
 include dldfcn/module.mk
 
@@ -318,8 +278,8 @@
 
 nodist_liboctinterp_la_SOURCES = \
   builtins.cc \
-  defaults.h \
-  graphics.h \
+  interpfcn/defaults.h \
+  interpfcn/graphics.h \
   mxarray.h \
   oct-conf.h \
   oct-errno.cc \
@@ -401,13 +361,6 @@
 ## defaults.h and oct-conf.h must depend on Makefile.  Calling configure
 ## may change default/config values.  However, calling configure will also
 ## regenerate the Makefiles from Makefile.am and trigger the rules below.
-defaults.h: defaults.in.h Makefile
-	@$(do_subst_default_vals)
-
-graphics.h: graphics.in.h genprops.awk Makefile
-	$(AWK) -f $(srcdir)/genprops.awk $< > $@-t
-	mv $@-t $@
-
 oct-conf.h: oct-conf.in.h Makefile
 	@$(do_subst_config_vals)
 
@@ -439,10 +392,6 @@
 	$(srcdir)/mkbuiltins $(DEF_FILES) > $@-t
 	mv $@-t $@
 
-graphics-props.cc: graphics.in.h genprops.awk Makefile
-	$(AWK) -v emit_graphics_props=1 -f $(srcdir)/genprops.awk $< > $@-t
-	mv $@-t $@
-
 ops.cc: $(OPERATORS_SRC) mkops
 	$(srcdir)/mkops $(OPERATORS_SRC) > $@-t
 	mv $@-t $@
@@ -568,8 +517,8 @@
 CLEANFILES = \
   $(bin_SCRIPTS) \
   $(DLDFCN_PKG_ADD_FILE) \
-  graphics-props.cc \
-  oct-parse.output
+  interpfcn/graphics-props.cc \
+  parse-tree/oct-parse.output
 
 DISTCLEANFILES = \
   .DOCSTRINGS \
rename from src/data.cc
rename to src/interpfcn/data.cc
rename from src/data.h
rename to src/interpfcn/data.h
rename from src/debug.cc
rename to src/interpfcn/debug.cc
rename from src/debug.h
rename to src/interpfcn/debug.h
rename from src/defaults.cc
rename to src/interpfcn/defaults.cc
rename from src/defaults.in.h
rename to src/interpfcn/defaults.in.h
rename from src/defun.cc
rename to src/interpfcn/defun.cc
rename from src/defun.h
rename to src/interpfcn/defun.h
rename from src/dirfns.cc
rename to src/interpfcn/dirfns.cc
rename from src/dirfns.h
rename to src/interpfcn/dirfns.h
rename from src/error.cc
rename to src/interpfcn/error.cc
rename from src/error.h
rename to src/interpfcn/error.h
rename from src/file-io.cc
rename to src/interpfcn/file-io.cc
rename from src/file-io.h
rename to src/interpfcn/file-io.h
rename from src/graphics.cc
rename to src/interpfcn/graphics.cc
rename from src/graphics.in.h
rename to src/interpfcn/graphics.in.h
rename from src/help.cc
rename to src/interpfcn/help.cc
rename from src/help.h
rename to src/interpfcn/help.h
rename from src/input.cc
rename to src/interpfcn/input.cc
rename from src/input.h
rename to src/interpfcn/input.h
rename from src/load-path.cc
rename to src/interpfcn/load-path.cc
rename from src/load-path.h
rename to src/interpfcn/load-path.h
rename from src/load-save.cc
rename to src/interpfcn/load-save.cc
rename from src/load-save.h
rename to src/interpfcn/load-save.h
rename from src/ls-oct-ascii.cc
rename to src/interpfcn/ls-oct-ascii.cc
rename from src/ls-oct-ascii.h
rename to src/interpfcn/ls-oct-ascii.h
new file mode 100644
--- /dev/null
+++ b/src/interpfcn/module.mk
@@ -0,0 +1,65 @@
+EXTRA_DIST += \
+  interpfcn/module.mk
+
+INTERPFCN_INCLUDES = \
+  interpfcn/data.h \
+  interpfcn/debug.h \
+  interpfcn/defun.h \
+  interpfcn/dirfns.h \
+  interpfcn/error.h \
+  interpfcn/file-io.h \
+  interpfcn/help.h \
+  interpfcn/input.h \
+  interpfcn/load-path.h \
+  interpfcn/load-save.h \
+  interpfcn/ls-oct-ascii.h \
+  interpfcn/oct-hist.h \
+  interpfcn/pager.h \
+  interpfcn/pr-output.h \
+  interpfcn/profiler.h \
+  interpfcn/sighandlers.h \
+  interpfcn/symtab.h \
+  interpfcn/sysdep.h \
+  interpfcn/toplev.h \
+  interpfcn/utils.h \
+  interpfcn/variables.h
+
+INTERPFCN_SRC = \
+  interpfcn/data.cc \
+  interpfcn/debug.cc \
+  interpfcn/defaults.cc \
+  interpfcn/defun.cc \
+  interpfcn/dirfns.cc \
+  interpfcn/error.cc \
+  interpfcn/file-io.cc \
+  interpfcn/graphics.cc \
+  interpfcn/help.cc \
+  interpfcn/input.cc \
+  interpfcn/load-path.cc \
+  interpfcn/load-save.cc \
+  interpfcn/ls-oct-ascii.cc \
+  interpfcn/oct-hist.cc \
+  interpfcn/pager.cc \
+  interpfcn/pr-output.cc \
+  interpfcn/profiler.cc \
+  interpfcn/sighandlers.cc \
+  interpfcn/symtab.cc \
+  interpfcn/sysdep.cc \
+  interpfcn/toplev.cc \
+  interpfcn/utils.cc \
+  interpfcn/variables.cc
+
+## defaults.h and graphics.h must depend on Makefile.  Calling configure
+## may change default/config values.  However, calling configure will also
+## regenerate the Makefiles from Makefile.am and trigger the rules below.
+interpfcn/defaults.h: interpfcn/defaults.in.h Makefile
+	@$(do_subst_default_vals)
+
+interpfcn/graphics.h: interpfcn/graphics.in.h genprops.awk Makefile
+	$(AWK) -f $(srcdir)/genprops.awk $< > $@-t
+	mv $@-t $@
+
+interpfcn/graphics-props.cc: interpfcn/graphics.in.h genprops.awk Makefile
+	$(AWK) -v emit_graphics_props=1 -f $(srcdir)/genprops.awk $< > $@-t
+	mv $@-t $@
+
rename from src/oct-hist.cc
rename to src/interpfcn/oct-hist.cc
rename from src/oct-hist.h
rename to src/interpfcn/oct-hist.h
rename from src/pager.cc
rename to src/interpfcn/pager.cc
rename from src/pager.h
rename to src/interpfcn/pager.h
rename from src/pr-output.cc
rename to src/interpfcn/pr-output.cc
rename from src/pr-output.h
rename to src/interpfcn/pr-output.h
rename from src/profiler.cc
rename to src/interpfcn/profiler.cc
rename from src/profiler.h
rename to src/interpfcn/profiler.h
rename from src/sighandlers.cc
rename to src/interpfcn/sighandlers.cc
rename from src/sighandlers.h
rename to src/interpfcn/sighandlers.h
rename from src/symtab.cc
rename to src/interpfcn/symtab.cc
rename from src/symtab.h
rename to src/interpfcn/symtab.h
rename from src/sysdep.cc
rename to src/interpfcn/sysdep.cc
rename from src/sysdep.h
rename to src/interpfcn/sysdep.h
rename from src/toplev.cc
rename to src/interpfcn/toplev.cc
rename from src/toplev.h
rename to src/interpfcn/toplev.h
rename from src/utils.cc
rename to src/interpfcn/utils.cc
rename from src/utils.h
rename to src/interpfcn/utils.h
rename from src/variables.cc
rename to src/interpfcn/variables.cc
rename from src/variables.h
rename to src/interpfcn/variables.h