swig/Source/CParse
Marcelo Matus 6184dceb5b Fragments can now be "type especialized", as the typemaps. The
syntax is as follows

 %fragment("name","header") { /* an old fragment */ }
 %fragment("name" {Type}, "header") { /* the fragment is type dependent */}

Now fragments can also be used inside templates:

 template <class T>
 struct A {
   %fragment("incode"{A<T>},"header") {
     /* 'incode' especialized fragment */
   }

   %typemap(in,fragment="incode"{A<T>}) {
     /*
       here we use the 'type especialized' fragment
       "incode"{A<T> }
      */
   }
 };

Also, there is a minor templ.c fix when expanding '#T'.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5749 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-03-17 08:01:06 +00:00
..
.cvsignore *** empty log message *** 2003-01-22 08:11:51 +00:00
cparse.h Fix for friend declarations, and other 'repeated' declarations. 2004-01-15 03:16:40 +00:00
cscanner.c Fixes for compilation by the Digital Mars Compiler. Submitted by Scott Michel. 2004-02-20 22:51:47 +00:00
parser.y Fragments can now be "type especialized", as the typemaps. The 2004-03-17 08:01:06 +00:00
templ.c Fragments can now be "type especialized", as the typemaps. The 2004-03-17 08:01:06 +00:00
util.c Added the warning code 2004-01-15 08:16:53 +00:00