~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Source/Modules/overload.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 * See the file LICENSE for information on usage and redistribution.    
12
12
 * ----------------------------------------------------------------------------- */
13
13
 
14
 
char cvsroot_overload_cxx[] = "$Header: /cvsroot/swig/SWIG/Source/Modules/overload.cxx,v 1.9 2004/10/16 20:36:02 wsfulton Exp $";
 
14
char cvsroot_overload_cxx[] = "$Header: /cvsroot/swig/SWIG/Source/Modules/overload.cxx,v 1.11 2005/10/13 09:20:58 marcelomatus Exp $";
15
15
 
16
16
#include "swigmod.h"
17
17
 
194
194
              String *dq1 = Copy(d1);
195
195
              String *dq2 = Copy(d2);
196
196
              if (SwigType_isconst(d1)) {
197
 
                SwigType_pop(dq1);
 
197
                Delete(SwigType_pop(dq1));
198
198
              }
199
199
              if (SwigType_isconst(d2)) {
200
 
                SwigType_pop(dq2);
 
200
                Delete(SwigType_pop(dq2));
201
201
              }
202
202
              if (Strcmp(dq1,dq2) == 0) {
203
203
                
403
403
      if (print_typecheck(f, j, pj)) {
404
404
        Printf(f, "if (_v) {\n");
405
405
        num_braces++;
 
406
      } 
 
407
      if (!Getattr(pj,"tmap:in:SWIGTYPE") && Getattr(pj,"tmap:typecheck:SWIGTYPE")) {
 
408
        /* we emit  a warning if the argument defines the 'in' typemap, but not the 'typecheck' one */
 
409
        Swig_warning(WARN_TYPEMAP_TYPECHECK_UNDEF, Getfile(ni), Getline(ni),
 
410
                     "Overloaded %s(%s) with no explicit typecheck typemap for arg %d of type '%s'\n", 
 
411
                     Getattr(n,"name"),ParmList_str_defaultargs(pi),
 
412
                     j+1, SwigType_str(Getattr(pj,"type"),0));
406
413
      }
407
414
      Parm *pk = Getattr(pj,"tmap:in:next");
408
415
      if (pk) pj = pk;