[sword-cvs] sword/bindings/swig/perl Sword.cxx,1.9,1.10

sword@www.crosswire.org sword@www.crosswire.org
Mon, 24 Mar 2003 15:56:26 -0700


Update of /usr/local/cvsroot/sword/bindings/swig/perl
In directory www:/tmp/cvs-serv31682/perl

Modified Files:
	Sword.cxx 
Log Message:
updated bindings with SWIG 1.3.18

Index: Sword.cxx
===================================================================
RCS file: /usr/local/cvsroot/sword/bindings/swig/perl/Sword.cxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Sword.cxx	24 Feb 2003 06:59:16 -0000	1.9
--- Sword.cxx	24 Mar 2003 22:56:24 -0000	1.10
***************
*** 1,5 ****
  /* ----------------------------------------------------------------------------
   * This file was automatically generated by SWIG (http://www.swig.org).
!  * Version 1.3.17u-20021124-0014
   * 
   * This file is not intended to be easily readable and contains a number of 
--- 1,5 ----
  /* ----------------------------------------------------------------------------
   * This file was automatically generated by SWIG (http://www.swig.org).
!  * Version 1.3.18
   * 
   * This file is not intended to be easily readable and contains a number of 
***************
*** 91,94 ****
--- 91,95 ----
  SWIGIMPORT(void *)           SWIG_TypeCast(swig_type_info *, void *);
  SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
+ SWIGIMPORT(const char *)     SWIG_TypeName(const swig_type_info *);
  SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
  SWIGIMPORT(void)             SWIG_TypeClientData(swig_type_info *, void *);
***************
*** 133,136 ****
--- 134,138 ----
      tc++;
    }
+   if (next) next->prev = head;  /**/
    head->next = next;
    return ret;
***************
*** 156,159 ****
--- 158,162 ----
        if (ty->next) ty->next->prev = s;
        ty->next = s;
+       s->prev = ty;  /**/
        return s;
      }
***************
*** 184,187 ****
--- 187,196 ----
  }
  
+ /* Return the name associated with this type */
+ SWIGRUNTIME(const char *)
+ SWIG_TypeName(const swig_type_info *ty) {
+   return ty->name;
+ }
+ 
  /* Search for a swig_type_info structure */
  SWIGRUNTIME(swig_type_info *)
***************
*** 509,512 ****
--- 518,573 ----
  
  
+ #ifdef do_open
+   #undef do_open
+ #endif
+ #ifdef do_close
+   #undef do_close
+ #endif
+ #ifdef scalar
+   #undef scalar
+ #endif
+ #ifdef list
+   #undef list
+ #endif
+ #ifdef apply
+   #undef apply
+ #endif
+ #ifdef convert
+   #undef convert
+ #endif
+ #ifdef Error
+   #undef Error
+ #endif
+ #ifdef form
+   #undef form
+ #endif
+ #ifdef vform
+   #undef vform
+ #endif
+ #ifdef LABEL
+   #undef LABEL
+ #endif
+ #ifdef METHOD
+   #undef METHOD
+ #endif
+ #ifdef Move
+   #undef Move
+ #endif
+ #ifdef yylex
+   #undef yylex
+ #endif
+ #ifdef yyparse
+   #undef yyparse
+ #endif
+ #ifdef yyerror
+   #undef yyerror
+ #endif
+ #ifdef invert
+   #undef invert
+ #endif
+ #ifdef ref
+   #undef ref
+ #endif
+ 
  
  /* -------- TYPES TABLE (BEGIN) -------- */
***************
*** 1428,1433 ****
          {
              if (arg1->prefixPath) delete [] arg1->prefixPath;
!             arg1->prefixPath = (char *) (new char[strlen(arg2)+1]);
!             strcpy((char *) arg1->prefixPath,arg2);
          }
          
--- 1489,1498 ----
          {
              if (arg1->prefixPath) delete [] arg1->prefixPath;
!             if (arg2) {
!                 arg1->prefixPath = (char *) (new char[strlen(arg2)+1]);
!                 strcpy((char *) arg1->prefixPath,arg2);
!             }else {
!                 arg1->prefixPath = 0;
!             }
          }
          
***************
*** 1494,1499 ****
          {
              if (arg1->configPath) delete [] arg1->configPath;
!             arg1->configPath = (char *) (new char[strlen(arg2)+1]);
!             strcpy((char *) arg1->configPath,arg2);
          }
          
--- 1559,1568 ----
          {
              if (arg1->configPath) delete [] arg1->configPath;
!             if (arg2) {
!                 arg1->configPath = (char *) (new char[strlen(arg2)+1]);
!                 strcpy((char *) arg1->configPath,arg2);
!             }else {
!                 arg1->configPath = 0;
!             }
          }