Commit Graph

75 Commits

Author SHA1 Message Date
William S Fulton e6035d625a Java 9 deprecation warning fixes for test-suite and examples 2019-02-21 13:47:39 -08:00
William S Fulton 12e7926ee2 Doxygen example
Replace the unnecessarily large number of doxygen examples with one
doxygen example.
2018-05-31 20:13:52 +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 ca1431f4cf Prototype removal of swig-preinst in the test-suite and examples
Prototype for Java test-suite and Java class example.

SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles.
SWIG_LIB is explicitly set where necessary.
Allows use of 'make SWIGTOOL="gdb --args"' to work as gdb can't be used
to debug a shell script, for both examples and test-suite.

See issue #473.
2015-08-18 08:00:01 +01:00
William S Fulton b4c441f62e Remove unused std_string.i from callback examples 2015-05-10 11:49:28 +01:00
Olly Betts 87a1892719 Trim trailing blank lines 2015-03-16 14:41:15 +13:00
Olly Betts ac1f067ce9 Eliminate trivial differences between the reference examples 2014-11-07 15:34:43 +13:00
Olly Betts 37cd1474b5 Remove bogus ; after } in examples 2014-11-07 15:34:43 +13: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
Karl Wette 3aacde4f5f Whitespace cleanup of Example Makefiles 2014-04-16 12:06:02 +02:00
Olly Betts 0de4cf13a8 Further cleaning up of class examples 2014-02-24 10:10:24 +13:00
Olly Betts 34c97ffdbd Improve the class example for several languages.
Fix numerous inaccuracies in index.html (where it exists) and eliminate
unnecessary differences between the example code being wrapped.
2014-02-23 18:24:51 +13:00
Olly Betts 2f3bf144c6 Fix assorted comment and documentation typos 2014-02-23 17:15:22 +13:00
William S Fulton 2d518c638c Add C++ nested class example
This also reverts the nested class additions to the Java/C# 'class' example
so that the 'class' example remains identical across different language modules
2013-11-30 09:23:16 +00:00
Vladimir Kalinin b63c4839fe Nested classes support
Closes #89
Squash merge branch 'master' of https://github.com/wkalinin/swig into wkalinin-nested

By Vladimir Kalinin
* 'master' of https://github.com/wkalinin/swig:
  CPlusPlusOut mode for Octave
  nested class illustration
  fixed "Abstract" flag for nested classes added an example enabled anonymous nested structs runtime test
  porting
  warnings disabled
  porting fixes
  java runtime tests ported
  nested class closing bracket offset fixed
  removed double nested template (not supported by %template parsing)
  template_nested test extended
  parent field made public
  property access fixed
  replaced tabs with spaces
  warning W-reorder
  deprecated warnings removed, derived_nested runtime test added
  optimized string indenting
  Nested classes indenting
  nested classes docs
  fixed the order in which flattened inner classes are added after the outer
  Private nested classes were getting into the type table.
  Java getProxyName() fix for nested classes fixes the case when nested classes is forward declared
  Fix for a case when a nested class inherits from the same base as the outer. (Base class constructor declaration is found first in this case)
  merge fix
  nested C struct first immediate declaration incorrectly renamed sample fixed
  tests updated to reflect nested classes support
  Java nested classes support (1)
  flattening should remove the link to the outer class
  access mode correctly set/restored for nested classes
  nested templates should be skipped while flattening (template nodes themselves, not expanded versions) also non-public nested classes should be ignored
  If nested classes are not supported, default behaviour is flattening, not ignoring flag "nested" is preserved, so, the nested classes can be ignored by user
  nested workaround test updated
  template instantiated within a class is marked as nested for ignoring purposes
  %ignore not applied to the nested classed, because "nested" flag is set too late
  typedef name takes precedence over the real name (reason?)
  unnamed structs should be processed for all the languages
  nested C struct instances are wrapped as "immutable"
  tree building
  typedef declaration for unnamed C structures fixed
  nested classes "flattening"
  fixed %ignoring nested classes
  renamed "nested" attribute to "nested:outer" added "nested" flag, to be used with $ignore (it is not removed while flattening) added nestedClassesSupported() function to the Language interface
  renamed "nested" attribute to "nested:outer" added "nested" flag, to be used with $ignore (it is not removed while flattening) added nestedClassesSupported() function to the Language interface
  tree iteration fix
  dirclassname variable names unified memory issue fixed
  merge error
  ignore unnamed structs for C++
  unnamed nested C structs naming & unnesting
  class added to classes hash under typedef name
  private nested classes skipped
  test updated due to nested templates support
  anonymous structs with inheritance fixed nested_class test to allow anonymous structs w/o declarator
  tests updated: nested workaround removed from namespace_class.i propagated nested template declaration to the C++ file
  injected members scope
  nested tempplates fixes, nested structures in "C" mode parsing added utility function "appendSibling" (like "appendChild")
  nested unnamed structures parsing fixes, access mode restored on nested class end, tdname is properly patched with outer class name prefix
  memory management fixes
  nested templates (1)
  Nested unnamed structs
  Nested class support (1)
  Nested class support (1)
2013-11-29 07:02:34 +00:00
William S Fulton 152905e193 Fix gcc -Waddress warning in variables examples 2013-10-18 06:53:02 +01:00
Olly Betts 12708c9241 Fix typos 2013-09-25 17:29:33 +12:00
William S Fulton 8713199267 Move javac compile for examples into common Makefile for examples 2013-04-19 22:28:03 +01:00
William S Fulton 05adcee56f Run java examples during 'make check-examples' 2013-04-19 22:28:02 +01:00
William S Fulton 78cd350fe9 Fix Visual Studio examples to work when SWIG is unzipped into a directory containing spaces. 2013-01-15 07:18:20 +00:00
William S Fulton 3932d02a2a fix SWIG naming convention
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-08-21 00:25:11 +00:00
William S Fulton 9cf5256b93 rename java run tests from main to runme for consistency across the languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10932 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-17 22:47:55 +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
William S Fulton 532cb45882 eol-style set to CRLF
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10011 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-18 21:20:27 +00:00
William S Fulton 92bceacc38 Remove cvs $Header$
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10005 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-17 21:47:25 +00:00
William S Fulton f5bdd056f7 Remove obscure mpointer example and replace with member_pointer.i testcase and runtime examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-09 23:47:13 +00:00
John Lenz 6dda6f8321 Remove cvsignore files: this is stored on svn:igonre property now
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-03 08:28:42 +00:00
William S Fulton 65c52f7c06 use $self special variable instead of self in %extend
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9533 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-08 01:01:37 +00:00
William S Fulton 85d52c2bff Remove confusing comments and add in extra clarification - Bug #1534931
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9431 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-10-11 22:32:15 +00:00
William S Fulton 92951b16c1 clearer example - patch #1524059
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9287 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 22:14:34 +00:00
William S Fulton af7745e663 links added - patch #1524088
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9286 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 22:07:28 +00:00
William S Fulton 7a3f2420d3 links added - patch #1524096
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9285 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 22:03:09 +00:00
William S Fulton 11fe04c255 links added - patch #1524076
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9284 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-15 22:00:56 +00:00
William S Fulton c772286a5d remove sprintf deprecated message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8959 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-05 00:38:54 +00:00
William S Fulton e15082fb4b remove extra void * cast which hides type punned aliasing gcc warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8957 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-04 23:51:56 +00:00
William S Fulton 615df3789a Fix for Visual Studio Express 2005 without database support installed - no need to link against database libs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-07 20:50:27 +00:00
William S Fulton 664d00336d update for mailing lists
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8739 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-02-07 18:29:53 +00:00
Marcelo Matus d5122e2a9c force examples to use preinst-swig, as is done in the test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7880 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-27 02:17:20 +00:00
William S Fulton c47c930f59 fix extern declarations
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-06-28 21:14:24 +00:00
William S Fulton 94e6c86d06 Fixes to remove "dereferencing type-punned pointer will break strict-aliasing rules" warnings in C wrappers when compiling C code with 'gcc -Wall -fstrict-aliasing'. Patch from Michael Cahill.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7192 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-05-13 23:14:35 +00:00
William S Fulton 3ef946d2d1 html fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-02 22:13:39 +00:00
William S Fulton 6a03a2deb5 fixes for spaces in path to javac
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-01 21:07:23 +00:00
William S Fulton 543127c37b missing #include added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6177 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-30 16:39:50 +00:00
William S Fulton db374a14f4 Test const char [] instead of const char *
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5992 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-06-15 20:12:22 +00:00
William S Fulton 240f395497 Update for new enum wrapping which uses the typesafe enum pattern
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-31 07:14:33 +00:00
William S Fulton c2d143e442 Memory management fixes and comment corrections
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5656 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-20 21:28:29 +00:00
William S Fulton 4039bf8075 Added missing delete
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5655 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-20 21:27:59 +00:00
William S Fulton 00a87d5a4b Added missing tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5654 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-20 21:27:27 +00:00
William S Fulton 7381bddd84 Warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:27:23 +00:00