Commit graph

38 commits

Author SHA1 Message Date
William S Fulton
cb64f65bae SWIG license change - Source moves to GPLv3
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:53:33 +00:00
Haoyu Bai
6d2aef67d9 Replaced all [const] String_or_char * to const_String_or_char_ptr, by the following command:
sed -i "s/\(const \)\?String_or_char \*/const_String_or_char_ptr /g" CParse/* Include/* Modules/* Preprocessor/* Swig/*

This is a preparation for moving to new DOH, since for strong typed objects we need the const_String_or_char_ptr class to implicit convert to and from String * or const char *.



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11080 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2009-01-24 13:15:51 +00:00
William S Fulton
61001d958f add parameter list (or void) to all C functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-11 22:17:40 +00:00
Dave Beazley
5d0c155688 API cleanup and documentation (Wrapper objects)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9641 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-01-16 04:50:43 +00:00
Dave Beazley
7a826c8b6d Changed Header keyword to Id for SVN
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9604 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 21:57:44 +00:00
William S Fulton
aa04c4c057 beautify/format source code with gnu indent
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-01 23:54:54 +00:00
Olly Betts
1e19f11fdc Use Strchr/strchr instead of Strstr/strstr when searching for a single
character.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-09-23 22:36:23 +00:00
William S Fulton
7f74b8e7a3 Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8972 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-03-06 22:51:01 +00:00
Marcelo Matus
37c3c25427 fix for the switch/case:
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-21 02:06:54 +00:00
Marcelo Matus
3955965739 more memory leaks fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7921 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-12-04 01:16:57 +00:00
Marcelo Matus
628dc6b32b add NewStringEmpty, use more StringEuqual and less Strcmp
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-28 17:32:56 +00:00
Marcelo Matus
d4e1bae364 use direct methods for string, hash and avoid Strstr/Strnstr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-28 02:44:12 +00:00
Marcelo Matus
7a77a7feb9 several clean/speed ups
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7887 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-27 02:58:24 +00:00
Marcelo Matus
33fed0883b manage the labels as fail:
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7754 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-31 09:36:01 +00:00
Marcelo Matus
b57f51e3b2 small cosmetic change to manage parentesis () closed in different lines, and make compact mode more compact
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-10-19 12:18:31 +00:00
Dave Beazley
1371a4ed5e Minor tweak.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4750 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-30 17:42:24 +00:00
Dave Beazley
5959a7dc3a Fixed [ 723471 ] Wrapper_print() fails with preprocessor directives
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4718 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-28 19:29:49 +00:00
Dave Beazley
c4454717c3 Fixed comment problems
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4601 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-21 16:12:54 +00:00
Tiger Feng
5e4c3b8611 modified -fcompact feature to deal with PP lines
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-19 18:26:29 +00:00
Tiger Feng
50e3d7c929 Add -compact option.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4281 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-10 17:17:14 +00:00
Dave Beazley
12a43edc2d The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00
Dave Beazley
c15d662964 Bug fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-12-18 02:56:05 +00:00
Dave Beazley
a543ad49f7 Major reworking of the Wrapper object. It is now a DOH object.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@948 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-11-22 23:14:01 +00:00
Dave Beazley
77a76ff4ce Changes to support memberin typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@813 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-03 19:14:55 +00:00
Matthias Köppe
17692a2ef0 The pretty printer gets confused by comments including unbalanced
single or double quotes, like in this interface file:

-------------
%typemap(perl5, check) size_t *SIZE_T_VECTORINOUT
{
    /* NEXT LINE AND REST OF WRAPPER WILL BE MISSING. */
    /* Do nothing (don't check for NULL pointer) */
}

void x(size_t *SIZE_T_VECTORINOUT);
-------------

The code tries to find the end of the character/string constant. When
it reaches EOF, nothing will get emitted because no \n is seen.

This is a change to emit the last line of a string. But the pretty
printer probably should be fixed to handle comments.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-23 20:17:10 +00:00
Dave Beazley
e2dd37cb93 Lots of cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-17 05:08:26 +00:00
Dave Beazley
f470aa1067 Restored the Python module. Lots of minor fixes and cleanup
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@664 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-16 21:47:36 +00:00
Dave Beazley
0d5ed7dff5 Completely new type implementation. Almost everything broken. Typemaps sort of work. Tcl is the only working language module. More changes to follow over the next few days.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@651 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-14 22:09:56 +00:00
Dave Beazley
dae32de1c5 Converted parameter lists to linked lists
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@641 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-08-10 18:37:30 +00:00
Dave Beazley
e036e895d3 Cleanup. Replaced Parm and ParmList data structures with new implementation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-24 21:48:56 +00:00
Dave Beazley
eeadf99e34 Added cwrap.c file that contains a variety of wrapper function support code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@600 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-24 03:54:02 +00:00
Dave Beazley
9bb0ec4a19 More work on smoothing out the type system. Needs more work however.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@592 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-23 04:43:39 +00:00
Dave Beazley
8a7d0af5ad Changed the handling of types in parameter lists and removed the %val
and %out directives.    This result of this change is that SWIG does
a lot less manipulation of types before they are given to language
modules.  It also means that a lot of stuff is going to be broken
for a short period of time.   I am working on cleaning all of this up
so give me a few days to sort it out.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-20 20:26:17 +00:00
Dave Beazley
5f8ffd5c5d Fixed Wrapper_new_local() function.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@579 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-13 23:09:23 +00:00
Dave Beazley
c2b76fb375 Fixed the pretty-printing code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@565 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-11 15:04:08 +00:00
Dave Beazley
f50c94d933 Removed the WrapperFunction class entirely. Everything uses the C version.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@557 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-07-10 21:52:58 +00:00
Dave Beazley
0b454425a4 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@405 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 21:23:07 +00:00
Dave Beazley
166db98dbe Work in progress
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@403 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-04-11 04:32:11 +00:00