Commit graph

63 commits

Author SHA1 Message Date
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
William S Fulton
0baa82cf4c *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-18 19:20:34 +00:00
William S Fulton
423f095207 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5112 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-14 21:57:07 +00:00
William S Fulton
251bd5d1b7 New example based on Python version
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5093 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-08 22:10:43 +00:00
William S Fulton
2d9ed7eea2 Minor tidyup mods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-08 22:07:49 +00:00
William S Fulton
1f02d8409a missing run test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5091 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-08 22:06:28 +00:00
William S Fulton
d401efc6de callback added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5088 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-06 15:54:34 +00:00
William S Fulton
e871ca2862 New director example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-06 15:54:07 +00:00
William S Fulton
b3f86358ed VC++ project file for this example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4810 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-21 21:21:44 +00:00
William S Fulton
f43fbc6ec3 jni code correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4767 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-05-02 21:28:31 +00:00
William S Fulton
9c8a3d61de Removed deprecated pragmas
Use %javaconst(1) for enums and constants


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4659 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-03 12:11:55 +00:00
William S Fulton
bc8dd337cf remove unnecessary header file as it causes linking problems on Mingw
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4580 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-19 20:51:55 +00:00
William S Fulton
91578e4033 Define M_PI if not defined in math.h
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4558 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-17 10:29:35 +00:00