summaryrefslogtreecommitdiff
path: root/Examples/octave/module_load
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Octave: drop support for Octave versions older than 3.2.0"William S Fulton2014-10-091-0/+6
| | | | | | | This reverts commit 952eee8f5904f85411d28dd375cc7df67f74b95a. Reverting a series of Octave commits for re-applying again without incorrect whitespace changes.
* Octave: drop support for Octave versions older than 3.2.0Karl Wette2014-10-041-6/+0
| | | | | - Latest non-supported version is 3.0.5, released 2009-04-09 - Earliest supported version is 3.2.0, released 2009-06-05
* Octave: turn on autodoc in examples, so that feature is testedKarl Wette2014-10-041-0/+3
|
* Octave: use common example.mk for examples, patterned after javascriptKarl Wette2014-05-291-17/+6
|
* Allow examples and test-suite to be built out of source treeKarl Wette2014-05-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | - Examples/Makefile.in rules use SRCDIR as the relative source directory - ./config.status replicates Examples/ source directory tree in build directory, and copies each Makefile to build directory, prefixed with a header which sets SRCDIR to source directory - Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir - Examples/test-suite/errors/Makefile.in needs to filter out source directory from SWIG error messages - Lua: embedded interpreters are passed location of run-time test - Python: copy run-time scripts to build directory because of 2to3 conversion; import_packages example copies __init__.py from source directory; test-suite sets SCRIPTDIR to location of run-time tests - Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir can be substituted with SRCDIR; removed './' from require() statements so that NODE_PATH can be used to point Node.js to build directory
* Fixes to Octave examplesKarl Wette2013-05-082-31/+27
| | | | | | | | - rename example modules from "example" to "swigexample", to avoid a warning from shadowing the Octave built-in function "example" - remove deprecated "static" Makefile targets: there is no longer an option to build static Octave modules in the Examples Makefile - emacs whitespace cleanup run on all files
* Octave examples clean target fixed and makefiles use new RUNPIPE and general ↵William S Fulton2013-04-191-6/+6
| | | | consistency tidyup
* octave: Simplified module loading.Karl Wette2012-11-281-43/+6
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* [octave] skip part of module_load test for older OctavesKarl Wette2012-05-241-0/+6
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Updated Octave module_load examples for new module loadingKarl Wette2012-05-148-285/+117
| | | | | | | | | - Module compiled twice to check '-globals .' behaviour - Only one runme.m needed since clearing modules should now be safe for all Octave versions. - Tests new module loading syntax and behaviour git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13089 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Use -globals . to load global variables in module namespace (from Karl Wette)Xavier Delacour2012-02-271-0/+8
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Allow Octave modules to be re-loaded after a "clear all" (thanks to Karl ↵Xavier Delacour2011-10-135-0/+172
| | | | | | Wette; SF 3418908) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12824 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Changes Octave module loading behavior, so that modules can be safely loaded ↵Xavier Delacour2011-08-319-0/+145
inside functions without first being loaded at the base level. (Basically the module is now always loaded in the base context, and then a local link to the module is created in the current context.) Added an example, module_load, to Examples/octave to test this behaviour in different ways. Tested examples work for octave 3.0.5, 3.2.4, and 3.4.0. (thanks to Karl Wette) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12793 626c5289-ae23-0410-ae9c-e8d60b6d4f22