Commit Graph

51 Commits

Author SHA1 Message Date
William S Fulton ef6e97ede2 Cleanup C# vcxproj files removing warnings 2024-10-19 15:36:08 +01:00
William S Fulton 3de322c13a Update C# examples to Visual Studio 2019 solutions 2024-10-19 15:36:08 +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 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
Olly Betts b115c984a9 More cleaning up of the class examples 2014-05-05 16:14:31 +12:00
William S Fulton abd31397fa Always use debug flags for Mono to get decent stacktraces on error. 2014-03-20 19:12:44 +00:00
William S Fulton 736c6b953e C# project files update
- Update project files to use Visual Studio 2005 (minimum supported .NET
  is now 2.0 which is what VS 2005 supports).
- Add project files for arrays example (requires /unsafe)
- Fix support so that the project files work straight out the box on 64
  bit systems (32 bit compile is the default).
- Fix support for 64 bit builds - use the x64 platform.
2014-03-01 04:35:00 -08:00
Olly Betts 0de4cf13a8 Further cleaning up of class examples 2014-02-24 10:10:24 +13:00
William S Fulton 7f40ae3570 C# project files update
- Update project files to use Visual Studio 2005 (minimum supported .NET
  is now 2.0 which is what VS 2005 supports).
- Add project files for arrays example (requires /unsafe)
- Fix support so that the project files work straight out the box on 64
  bit systems (32 bit compile is the default).
- Fix support for 64 bit builds - use the x64 platform.
2014-02-23 15:47:42 +00: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 760c398c49 Run csharp examples during 'make check-examples' 2013-04-19 22:28:03 +01:00
William S Fulton 0770ea75f4 Remove a warning when building in C# project files when they are converted for use by Visual Studio 2010
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12886 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-12-22 21:52:37 +00:00
William S Fulton f29193e5a7 Use svn:eol-style CRLF for Visual Studio project files
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12885 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-12-22 21:48:33 +00:00
William S Fulton a1fdbfd282 missing function declaration fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-08 19:12:24 +00:00
William S Fulton 09915566bc Add C# array typemaps provided by Antti Karanta.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10872 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-09-18 20:32:28 +00:00
William S Fulton aeb132c2a6 remove java file in C# directory
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9905 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-08-17 20:35:03 +00:00
William S Fulton da6027a918 add missing c# tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9682 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-04-18 09:47:01 +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 95ccd1d523 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9204 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-07-07 10:12:56 +00:00
William S Fulton 70879c00e1 C# director support added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9102 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-05-13 23:27:58 +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
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 76e39ea0b7 update for change to proper enums instead of simple integers for enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6714 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-11-11 21:43:17 +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 e18288ecab Update for new enum wrapping which uses proper C# enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5952 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-31 07:13:12 +00:00
William S Fulton 5c6646fc3f Visual Studio .NET 2003 solution and project files added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:45:20 +00:00
William S Fulton a9315a5af1 Warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-01-07 21:34:12 +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 351f8daed5 Mods to work with Mono, Microsoft and pnet compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5015 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-08-27 09:32:18 +00:00
William S Fulton 43d3c001c2 pnet bug workaround removed
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4846 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-02 17:01:13 +00:00
William S Fulton 5d4849ddf0 Removed deprecated pragmas
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4660 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-03 12:12:22 +00:00
William S Fulton 0a44a33040 variables example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4543 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-15 22:54:16 +00:00
William S Fulton 40e008cec5 Usual SWIG variables example - uses properties for global variable access
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4542 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-15 22:51:46 +00:00
William S Fulton 1196effefb Uses properties instead of get/set methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4541 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-15 22:50:01 +00:00
William S Fulton 2d263827d4 Use the C# compiler found by configure, not just pnet's cscc
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-12 22:54:52 +00:00
William S Fulton ae1a166c19 template example working, sorry forgot to commit it earlier
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-12 22:48:02 +00:00
William S Fulton f1fa4500b8 New examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4530 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-12 20:48:00 +00:00
William S Fulton ab5ee2246a Reference example like the other languages, all working
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4529 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-12 20:47:39 +00:00
William S Fulton eac7c92248 Function pointer example just like the other languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4528 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-12 20:46:41 +00:00
William S Fulton f0826f2391 Classes and inheritance now working as demonstrated by the classic SWIG class example
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4527 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-12 20:45:47 +00:00
William S Fulton 253192c8a4 Fix for mono c# compiler
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4504 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-10 19:56:34 +00:00