Commit graph

14,310 commits

Author SHA1 Message Date
Matthias Köppe
110924a6f5 Use the preprocessor to rename external functions of the SWIG runtime
API to follow the naming convention SWIG_<language>_<function>.  This
should allow linking more than one interpreter into a program.

Unify the pointer-conversion runtime API.
[Python]: Add the function SWIG_MustGetPtr.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 14:47:06 +00:00
Matthias Köppe
e4d0541300 (parse-swigtype): Handle varargs.
When generating arg lists, avoid globally bound names.

Handle `extern "C"' nodes.

Add experimental code to link to SWIG itself.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5245 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 14:40:56 +00:00
Matthias Köppe
866eccc0e4 (parse-swigtype): Handle varargs.
When generating arg lists, avoid globally bound names.

Handle `extern "C"' nodes.

Add experimental code to link to SWIG itself.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5245 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 14:40:56 +00:00
Matthias Köppe
e1534f83cd Use the preprocessor to rename external functions of the SWIG runtime
API to follow the naming convention SWIG_<language>_<function>.  This
should allow linking more than one interpreter into a program.

Unify the pointer-conversion runtime API.
[Ruby]:     Add the function SWIG_MustGetPtr.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5244 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 14:34:51 +00:00
Matthias Köppe
bcf828af88 Use the preprocessor to rename external functions of the SWIG runtime
API to follow the naming convention SWIG_<language>_<function>.  This
should allow linking more than one interpreter into a program.

Unify the pointer-conversion runtime API.
[Ruby]:     Add the function SWIG_MustGetPtr.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5244 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 14:34:51 +00:00
Matthias Köppe
13f434304d Use the preprocessor to rename external functions of the SWIG runtime
API to follow the naming convention SWIG_<language>_<function>.  This
should allow linking more than one interpreter into a program.

	    Unify the pointer-conversion runtime API.  The standard
	    functions are:
	     * SWIG_NewPointerObj (POINTER, TYPE, FLAGS)
	        -- Create an scripting object that represents a typed
		   pointer. FLAGS are language specific.
	     * SWIG_ConvertPtr (INPUT, RESULT, TYPE, FLAGS)
	        -- Get a pointer from the scripting object INPUT and
		   store it in the place RESULT.  When a type mismatch
		   occurs, return nonzero.
	     * SWIG_MustGetPtr (INPUT, TYPE, ARGNUM, FLAGS)
	        -- Get a pointer from the scripting object INPUT and
		   return it.  When a type mismatch occurs, throw an
		   exception.  If ARGNUM > 0, report it as the
		   argument number that has the type mismatch.
            [Guile]:    No changes.
	    [MzScheme]: No changes.
	    [Perl]:     Add the function SWIG_NewPointerObj.
		        The function SWIG_MakePtr is kept.
			The function SWIG_MustGetPtr is currently not
			supported.
	    [Python]:   Add the function SWIG_MustGetPtr.
	    [Ruby]:     Add the function SWIG_MustGetPtr.
	    [Tcl]:      Remove the "interp" argument of
		        SWIG_NewInstanceObj, SWIG_ConvertPtr,
		        SWIG_ConvertPacked, and SWIG_ConvertPtrFromString.
			The function SWIG_MustGetPtr is currently
			not supported.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5243 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 13:49:45 +00:00
Matthias Köppe
b13c933611 Use the preprocessor to rename external functions of the SWIG runtime
API to follow the naming convention SWIG_<language>_<function>.  This
should allow linking more than one interpreter into a program.

	    Unify the pointer-conversion runtime API.  The standard
	    functions are:
	     * SWIG_NewPointerObj (POINTER, TYPE, FLAGS)
	        -- Create an scripting object that represents a typed
		   pointer. FLAGS are language specific.
	     * SWIG_ConvertPtr (INPUT, RESULT, TYPE, FLAGS)
	        -- Get a pointer from the scripting object INPUT and
		   store it in the place RESULT.  When a type mismatch
		   occurs, return nonzero.
	     * SWIG_MustGetPtr (INPUT, TYPE, ARGNUM, FLAGS)
	        -- Get a pointer from the scripting object INPUT and
		   return it.  When a type mismatch occurs, throw an
		   exception.  If ARGNUM > 0, report it as the
		   argument number that has the type mismatch.
            [Guile]:    No changes.
	    [MzScheme]: No changes.
	    [Perl]:     Add the function SWIG_NewPointerObj.
		        The function SWIG_MakePtr is kept.
			The function SWIG_MustGetPtr is currently not
			supported.
	    [Python]:   Add the function SWIG_MustGetPtr.
	    [Ruby]:     Add the function SWIG_MustGetPtr.
	    [Tcl]:      Remove the "interp" argument of
		        SWIG_NewInstanceObj, SWIG_ConvertPtr,
		        SWIG_ConvertPacked, and SWIG_ConvertPtrFromString.
			The function SWIG_MustGetPtr is currently
			not supported.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5243 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 13:49:45 +00:00
Matthias Köppe
de27e32afb Use the preprocessor to rename external functions of the SWIG runtime
API to follow the naming convention SWIG_<language>_<function>.  This
should allow linking more than one interpreter into a program.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 13:48:17 +00:00
Matthias Köppe
02110ce67b Use the preprocessor to rename external functions of the SWIG runtime
API to follow the naming convention SWIG_<language>_<function>.  This
should allow linking more than one interpreter into a program.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-02 13:48:17 +00:00
William S Fulton
2c2f1b87be *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5241 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 20:30:59 +00:00
William S Fulton
43e9376cbc *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5241 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 20:30:59 +00:00
William S Fulton
11b23f20ed C# and Windows runtime library update
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 20:30:48 +00:00
William S Fulton
5be7a80b0f C# and Windows runtime library update
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 20:30:48 +00:00
William S Fulton
4b1c89599f Further director documentation contributed by Scott Michel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5239 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 20:12:09 +00:00
William S Fulton
dd8b2cfb0d Further director documentation contributed by Scott Michel
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5239 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 20:12:09 +00:00
William S Fulton
57b8d0ea70 Enhanced to check typedef'd parameters in directors - Scott Michel contribution.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5238 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 20:06:09 +00:00
William S Fulton
7567736299 Enhanced to check typedef'd parameters in directors - Scott Michel contribution.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5238 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 20:06:09 +00:00
Art Yerkes
71e1a81d66 Revised documentation:
Added new swigp4 forms.
Removed non preprocessed examples.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 08:28:26 +00:00
Art Yerkes
1ad143cd34 Revised documentation:
Added new swigp4 forms.
Removed non preprocessed examples.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 08:28:26 +00:00
Art Yerkes
cb69624de9 swigp4-ify.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 08:20:26 +00:00
Art Yerkes
1cc5f28367 swigp4-ify.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 08:20:26 +00:00
Art Yerkes
febd13ea89 swip4-ify.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5235 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 08:16:42 +00:00
Art Yerkes
a45bfa9624 swip4-ify.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5235 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 08:16:42 +00:00
Art Yerkes
5ffff2d4a7 swigp4-ified.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:57:55 +00:00
Art Yerkes
a967f0fdc9 swigp4-ified.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:57:55 +00:00
Art Yerkes
243ebeeb27 Final edits. Corrected single, zero arg cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5233 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:54:12 +00:00
Art Yerkes
074a0e1e61 Final edits. Corrected single, zero arg cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5233 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:54:12 +00:00
Art Yerkes
25d0e88ee7 swigp4-ified examples.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:53:48 +00:00
Art Yerkes
0374f54fce swigp4-ified examples.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:53:48 +00:00
Art Yerkes
78fd2cb821 Added preprocessing, cleaned up slightly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:25:52 +00:00
Art Yerkes
7845308900 Added preprocessing, cleaned up slightly.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 07:25:52 +00:00
Art Yerkes
d46db88c4d Slight type adjustment for invoke. This makes swigp4 a bit easier to
deal with.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 06:10:50 +00:00
Art Yerkes
93008f32ba Slight type adjustment for invoke. This makes swigp4 a bit easier to
deal with.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5230 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 06:10:50 +00:00
Art Yerkes
5ee35648b8 Some nice last-minute goodies for the camlp4 module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 05:56:12 +00:00
Art Yerkes
f9ea7fd22a Some nice last-minute goodies for the camlp4 module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5229 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 05:56:12 +00:00
Art Yerkes
a375677372 Committing my latest ocaml.cxx. Corrects problem with shapes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5228 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 05:01:07 +00:00
Art Yerkes
6c163123ae Committing my latest ocaml.cxx. Corrects problem with shapes.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5228 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 05:01:07 +00:00
William S Fulton
b083bf1628 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5227 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:56:01 +00:00
William S Fulton
4046b53e9c *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5227 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:56:01 +00:00
William S Fulton
860a6b7717 minor update
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5226 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:50:52 +00:00
William S Fulton
337f9292b2 minor update
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5226 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:50:52 +00:00
William S Fulton
3bb0b9c77d simple runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:50:00 +00:00
William S Fulton
4fc81e0249 simple runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:50:00 +00:00
William S Fulton
e381e8ba60 $module name substitution to enable name mangling with the module name for the delegate registering functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:48:32 +00:00
William S Fulton
f68fc2ee6e $module name substitution to enable name mangling with the module name for the delegate registering functions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:48:32 +00:00
William S Fulton
9506c8c9f7 Delegate register function name mangling. Mangled with the module name to prevent name clashes when using more than 1 module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5223 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:47:14 +00:00
William S Fulton
f479cd8c31 Delegate register function name mangling. Mangled with the module name to prevent name clashes when using more than 1 module.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5223 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-01 00:47:14 +00:00
Dave Beazley
1788e7a7e3 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5222 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-31 19:54:35 +00:00
Dave Beazley
8e7a772288 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5222 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-31 19:54:35 +00:00
Dave Beazley
15ccde7c99 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-10-31 19:48:39 +00:00