luz.paz
60dfa31a67
Misc. typos
...
found via `codespell` and `grep`
2018-05-17 10:04:23 -04:00
Karl Wette
64ad3f0ca8
Examples/octave/module_load/runme.m: update 'exist()' statements for Octave >= 4.4
2018-05-12 22:25:07 +10:00
Karl Wette
af97a312d4
Examples/octave/module_load/runme.m: do not use duplicate function names
2018-05-12 22:25:07 +10:00
Olly Betts
46f7217c50
Remove random statement glued onto comment line
...
And also copy-and-paste duplicate.
2017-07-28 09:37:41 +12:00
Karl Wette
9e66af3fef
Octave: do not dump Octave core in examples/test suite scripts
...
- If Octave segfaults during cleanup, it usually cannot dump its core
and therefore just freezes, which hold up e.g Travis build jobs
2017-01-01 19:06:51 +13:00
Karl Wette
125329466d
octave: map unary functions to __...___ Python-style unary members
...
- Only available in Octave 3.8.0 and higher
2016-02-07 20:22:39 +01:00
Karl Wette
000ab753df
octave: recognize Python __float__ numeric conversion operator
2016-02-07 20:22:39 +01:00
Karl Wette
b93b1871a9
octave: export function swig_octave_prereq() for easily testing Octave version
2016-02-07 20:22:39 +01:00
William S Fulton
8e2bc595c6
Remove use of preinst-swig script
...
Complete the prototype removal in ca1431.
The script prevents SWIGTOOL=gdb from working as gdb can't be used to
debug a shell script, it requires a binary.
Add support for SWIGTOOL in all the examples.
SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles.
See issue #473 .
2015-08-21 22:43:17 +01:00
William S Fulton
b4c441f62e
Remove unused std_string.i from callback examples
2015-05-10 11:49:28 +01:00
Olly Betts
37cd1474b5
Remove bogus ; after } in examples
2014-11-07 15:34:43 +13:00
William S Fulton
97f6731e3c
Revert "Octave: simplify Examples/octave/example.mk"
...
This reverts commit 6c04378e20 .
Reverting a series of Octave commits for re-applying again without
incorrect whitespace changes.
2014-10-09 19:34:04 +01:00
William S Fulton
bfa3d378ec
Revert "Octave: drop support for Octave versions older than 3.2.0"
...
This reverts commit 952eee8f59 .
Reverting a series of Octave commits for re-applying again without
incorrect whitespace changes.
2014-10-09 19:33:58 +01:00
Karl Wette
952eee8f59
Octave: drop support for Octave versions older than 3.2.0
...
- Latest non-supported version is 3.0.5, released 2009-04-09
- Earliest supported version is 3.2.0, released 2009-06-05
2014-10-04 19:40:52 +02:00
Karl Wette
6c04378e20
Octave: simplify Examples/octave/example.mk
2014-10-04 19:18:31 +02:00
Karl Wette
a93d5eac4e
Octave: turn on autodoc in examples, so that feature is tested
2014-10-04 13:28:46 +02:00
Karl Wette
b2d492c15a
Octave: use common example.mk for examples, patterned after javascript
2014-05-29 23:42:55 +02:00
William S Fulton
f39ed94419
Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic -Wreturn-type
2014-05-24 13:13:32 +01:00
Karl Wette
f574a34155
Allow examples and test-suite to be built out of source tree
...
- 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
2014-05-11 23:21:10 +02:00
Olly Betts
b115c984a9
More cleaning up of the class examples
2014-05-05 16:14:31 +12:00
Olly Betts
0de4cf13a8
Further cleaning up of class examples
2014-02-24 10:10:24 +13:00
William S Fulton
152905e193
Fix gcc -Waddress warning in variables examples
2013-10-18 06:53:02 +01:00
Karl Wette
c28d0c6c80
Fixes to Octave examples
...
- 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
2013-05-08 22:44:40 +01:00
William S Fulton
14a89fac86
Octave examples clean target fixed and makefiles use new RUNPIPE and general consistency tidyup
2013-04-19 22:47:25 +01:00
Karl Wette
e60ae2d81d
octave: Simplified module loading.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-11-28 20:22:56 +00:00
Karl Wette
a276c0b45a
[octave] skip part of module_load test for older Octaves
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-24 21:18:50 +00:00
Karl Wette
daffde6c28
Updated Octave module_load examples for new module loading
...
- 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
2012-05-14 09:24:34 +00:00
Xavier Delacour
6cd79f4320
Use -globals . to load global variables in module namespace (from Karl Wette)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-02-27 17:07:16 +00:00
Xavier Delacour
f8774be92d
Allow Octave modules to be re-loaded after a "clear all" (thanks to Karl Wette; SF 3418908)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12824 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-10-13 23:48:28 +00:00
Xavier Delacour
2f68aa0a34
Added example of friend operator use to Examples/octave/operator, fixed minor bug that causes a panic in octave 3.0.5. 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@12794 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-08-31 20:54:11 +00:00
Xavier Delacour
3372c2ba62
Changes Octave module loading behavior, so that modules can be safely loaded 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
2011-08-31 20:50:59 +00:00
Xavier Delacour
dae9457962
Octave patches for 3.4.0 compatibility, etc. (sf 3387394, thanks for Karl Wette)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12774 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-08-08 21:41:34 +00:00
William S Fulton
76eaea911b
shadow->proxy terminlogy update
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10398 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-29 18:01:45 +00:00
Xavier Delacour
13c0b040fc
Fix Octave C support by adding extern "C" around header section. Fix Octave examples (simple, contract, variables, pointer, funcptr) such that example.c files are built with C compiler, and wrappers with C++ compiler.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-05 15:29:01 +00:00
Xavier Delacour
393391965c
Initial commit of Octave module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-01 23:35:44 +00:00