# HG changeset patch # User Rik # Date 1344011497 25200 # Node ID 60ff2cef569db8840bc1d021083502f9fc25ed57 # Parent 20b33f227599d7f5841f7e5cff14490b04c12b26 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 diff --git a/src/Makefile.am b/src/Makefile.am --- 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 \ diff --git a/src/data.cc b/src/interpfcn/data.cc rename from src/data.cc rename to src/interpfcn/data.cc diff --git a/src/data.h b/src/interpfcn/data.h rename from src/data.h rename to src/interpfcn/data.h diff --git a/src/debug.cc b/src/interpfcn/debug.cc rename from src/debug.cc rename to src/interpfcn/debug.cc diff --git a/src/debug.h b/src/interpfcn/debug.h rename from src/debug.h rename to src/interpfcn/debug.h diff --git a/src/defaults.cc b/src/interpfcn/defaults.cc rename from src/defaults.cc rename to src/interpfcn/defaults.cc diff --git a/src/defaults.in.h b/src/interpfcn/defaults.in.h rename from src/defaults.in.h rename to src/interpfcn/defaults.in.h diff --git a/src/defun.cc b/src/interpfcn/defun.cc rename from src/defun.cc rename to src/interpfcn/defun.cc diff --git a/src/defun.h b/src/interpfcn/defun.h rename from src/defun.h rename to src/interpfcn/defun.h diff --git a/src/dirfns.cc b/src/interpfcn/dirfns.cc rename from src/dirfns.cc rename to src/interpfcn/dirfns.cc diff --git a/src/dirfns.h b/src/interpfcn/dirfns.h rename from src/dirfns.h rename to src/interpfcn/dirfns.h diff --git a/src/error.cc b/src/interpfcn/error.cc rename from src/error.cc rename to src/interpfcn/error.cc diff --git a/src/error.h b/src/interpfcn/error.h rename from src/error.h rename to src/interpfcn/error.h diff --git a/src/file-io.cc b/src/interpfcn/file-io.cc rename from src/file-io.cc rename to src/interpfcn/file-io.cc diff --git a/src/file-io.h b/src/interpfcn/file-io.h rename from src/file-io.h rename to src/interpfcn/file-io.h diff --git a/src/graphics.cc b/src/interpfcn/graphics.cc rename from src/graphics.cc rename to src/interpfcn/graphics.cc diff --git a/src/graphics.in.h b/src/interpfcn/graphics.in.h rename from src/graphics.in.h rename to src/interpfcn/graphics.in.h diff --git a/src/help.cc b/src/interpfcn/help.cc rename from src/help.cc rename to src/interpfcn/help.cc diff --git a/src/help.h b/src/interpfcn/help.h rename from src/help.h rename to src/interpfcn/help.h diff --git a/src/input.cc b/src/interpfcn/input.cc rename from src/input.cc rename to src/interpfcn/input.cc diff --git a/src/input.h b/src/interpfcn/input.h rename from src/input.h rename to src/interpfcn/input.h diff --git a/src/load-path.cc b/src/interpfcn/load-path.cc rename from src/load-path.cc rename to src/interpfcn/load-path.cc diff --git a/src/load-path.h b/src/interpfcn/load-path.h rename from src/load-path.h rename to src/interpfcn/load-path.h diff --git a/src/load-save.cc b/src/interpfcn/load-save.cc rename from src/load-save.cc rename to src/interpfcn/load-save.cc diff --git a/src/load-save.h b/src/interpfcn/load-save.h rename from src/load-save.h rename to src/interpfcn/load-save.h diff --git a/src/ls-oct-ascii.cc b/src/interpfcn/ls-oct-ascii.cc rename from src/ls-oct-ascii.cc rename to src/interpfcn/ls-oct-ascii.cc diff --git a/src/ls-oct-ascii.h b/src/interpfcn/ls-oct-ascii.h rename from src/ls-oct-ascii.h rename to src/interpfcn/ls-oct-ascii.h diff --git a/src/interpfcn/module.mk b/src/interpfcn/module.mk 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 $@ + diff --git a/src/oct-hist.cc b/src/interpfcn/oct-hist.cc rename from src/oct-hist.cc rename to src/interpfcn/oct-hist.cc diff --git a/src/oct-hist.h b/src/interpfcn/oct-hist.h rename from src/oct-hist.h rename to src/interpfcn/oct-hist.h diff --git a/src/pager.cc b/src/interpfcn/pager.cc rename from src/pager.cc rename to src/interpfcn/pager.cc diff --git a/src/pager.h b/src/interpfcn/pager.h rename from src/pager.h rename to src/interpfcn/pager.h diff --git a/src/pr-output.cc b/src/interpfcn/pr-output.cc rename from src/pr-output.cc rename to src/interpfcn/pr-output.cc diff --git a/src/pr-output.h b/src/interpfcn/pr-output.h rename from src/pr-output.h rename to src/interpfcn/pr-output.h diff --git a/src/profiler.cc b/src/interpfcn/profiler.cc rename from src/profiler.cc rename to src/interpfcn/profiler.cc diff --git a/src/profiler.h b/src/interpfcn/profiler.h rename from src/profiler.h rename to src/interpfcn/profiler.h diff --git a/src/sighandlers.cc b/src/interpfcn/sighandlers.cc rename from src/sighandlers.cc rename to src/interpfcn/sighandlers.cc diff --git a/src/sighandlers.h b/src/interpfcn/sighandlers.h rename from src/sighandlers.h rename to src/interpfcn/sighandlers.h diff --git a/src/symtab.cc b/src/interpfcn/symtab.cc rename from src/symtab.cc rename to src/interpfcn/symtab.cc diff --git a/src/symtab.h b/src/interpfcn/symtab.h rename from src/symtab.h rename to src/interpfcn/symtab.h diff --git a/src/sysdep.cc b/src/interpfcn/sysdep.cc rename from src/sysdep.cc rename to src/interpfcn/sysdep.cc diff --git a/src/sysdep.h b/src/interpfcn/sysdep.h rename from src/sysdep.h rename to src/interpfcn/sysdep.h diff --git a/src/toplev.cc b/src/interpfcn/toplev.cc rename from src/toplev.cc rename to src/interpfcn/toplev.cc diff --git a/src/toplev.h b/src/interpfcn/toplev.h rename from src/toplev.h rename to src/interpfcn/toplev.h diff --git a/src/utils.cc b/src/interpfcn/utils.cc rename from src/utils.cc rename to src/interpfcn/utils.cc diff --git a/src/utils.h b/src/interpfcn/utils.h rename from src/utils.h rename to src/interpfcn/utils.h diff --git a/src/variables.cc b/src/interpfcn/variables.cc rename from src/variables.cc rename to src/interpfcn/variables.cc diff --git a/src/variables.h b/src/interpfcn/variables.h rename from src/variables.h rename to src/interpfcn/variables.h