Changeset 16

Show
Ignore:
Timestamp:
02/07/04 15:51:34 (5 years ago)
Author:
ug
Message:

Changed B3 binding for Mac OS X
New SWIG version

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 05/bugfix/kombilo.py

    r7 r16  
    9191        self.fixedColor = fixedColor 
    9292        self.smartFixedColor = smartFixedColor 
    93          
    94         self.bound3 = self.bind('<Button-3>', self.selStart) 
    95         self.bound3m = self.bind('<B3-Motion>', self.selDrag) 
     93 
     94        if sys.platform.startswith('darwin'): 
     95            self.bound3 = self.bind('<M2-Button-1>', self.selStart) 
     96            self.bound3m = self.bind('<M2-B1-Motion>', self.selDrag) 
     97        else: 
     98            self.bound3 = self.bind('<Button-3>', self.selStart) 
     99            self.bound3m = self.bind('<B3-Motion>', self.selDrag) 
    96100        self.bounds1 = self.bind('<Shift-1>', self.wildcard) 
    97101 
  • 05/bugfix/sgfpars.py

    r1 r16  
    3434    __getattr__ = lambda self, name: _swig_getattr(self, SGFError, name) 
    3535    def __init__(self,*args): 
    36         self.this = apply(_sgfpars.new_SGFError,args
    37         self.thisown = 1 
     36        _swig_setattr(self, SGFError, 'this', apply(_sgfpars.new_SGFError,args)
     37        _swig_setattr(self, SGFError, 'thisown', 1) 
    3838    def __del__(self, destroy= _sgfpars.delete_SGFError): 
    3939        try: 
     
    4545class SGFErrorPtr(SGFError): 
    4646    def __init__(self,this): 
    47         self.this = this 
    48         if not hasattr(self,"thisown"): self.thisown = 0 
    49         self.__class__ = SGFError 
     47        _swig_setattr(self, SGFError, 'this', this) 
     48        if not hasattr(self,"thisown"): _swig_setattr(self, SGFError, 'thisown', 0) 
     49        _swig_setattr(self, SGFError,self.__class__,SGFError) 
    5050_sgfpars.SGFError_swigregister(SGFErrorPtr) 
    5151 
     
    8888    if _newclass:posyD = property(_sgfpars.Node_posyD_get,_sgfpars.Node_posyD_set) 
    8989    def __init__(self,*args): 
    90         self.this = apply(_sgfpars.new_Node,args
    91         self.thisown = 1 
     90        _swig_setattr(self, Node, 'this', apply(_sgfpars.new_Node,args)
     91        _swig_setattr(self, Node, 'thisown', 1) 
    9292    def __del__(self, destroy= _sgfpars.delete_Node): 
    9393        try: 
     
    102102class NodePtr(Node): 
    103103    def __init__(self,this): 
    104         self.this = this 
    105         if not hasattr(self,"thisown"): self.thisown = 0 
    106         self.__class__ = Node 
     104        _swig_setattr(self, Node, 'this', this) 
     105        if not hasattr(self,"thisown"): _swig_setattr(self, Node, 'thisown', 0) 
     106        _swig_setattr(self, Node,self.__class__,Node) 
    107107_sgfpars.Node_swigregister(NodePtr) 
    108108cvar = _sgfpars.cvar 
     
    114114    __getattr__ = lambda self, name: _swig_getattr(self, Cursor, name) 
    115115    def __init__(self,*args): 
    116         self.this = apply(_sgfpars.new_Cursor,args
    117         self.thisown = 1 
     116        _swig_setattr(self, Cursor, 'this', apply(_sgfpars.new_Cursor,args)
     117        _swig_setattr(self, Cursor, 'thisown', 1) 
    118118    def __del__(self, destroy= _sgfpars.delete_Cursor): 
    119119        try: 
     
    165165class CursorPtr(Cursor): 
    166166    def __init__(self,this): 
    167         self.this = this 
    168         if not hasattr(self,"thisown"): self.thisown = 0 
    169         self.__class__ = Cursor 
     167        _swig_setattr(self, Cursor, 'this', this) 
     168        if not hasattr(self,"thisown"): _swig_setattr(self, Cursor, 'thisown', 0) 
     169        _swig_setattr(self, Cursor,self.__class__,Cursor) 
    170170_sgfpars.Cursor_swigregister(CursorPtr) 
    171171 
     
    182182    if _newclass:prev = property(_sgfpars.intN_prev_get,_sgfpars.intN_prev_set) 
    183183    def __init__(self,*args): 
    184         self.this = apply(_sgfpars.new_intN,args
    185         self.thisown = 1 
     184        _swig_setattr(self, intN, 'this', apply(_sgfpars.new_intN,args)
     185        _swig_setattr(self, intN, 'thisown', 1) 
    186186    def __del__(self, destroy= _sgfpars.delete_intN): 
    187187        try: 
     
    193193class intNPtr(intN): 
    194194    def __init__(self,this): 
    195         self.this = this 
    196         if not hasattr(self,"thisown"): self.thisown = 0 
    197         self.__class__ = intN 
     195        _swig_setattr(self, intN, 'this', this) 
     196        if not hasattr(self,"thisown"): _swig_setattr(self, intN, 'thisown', 0) 
     197        _swig_setattr(self, intN,self.__class__,intN) 
    198198_sgfpars.intN_swigregister(intNPtr) 
    199199 
     
    207207    if _newclass:root = property(_sgfpars.IntStack_root_get,_sgfpars.IntStack_root_set) 
    208208    def __init__(self,*args): 
    209         self.this = apply(_sgfpars.new_IntStack,args
    210         self.thisown = 1 
     209        _swig_setattr(self, IntStack, 'this', apply(_sgfpars.new_IntStack,args)
     210        _swig_setattr(self, IntStack, 'thisown', 1) 
    211211    def push(*args): return apply(_sgfpars.IntStack_push,args) 
    212212    def pop(*args): return apply(_sgfpars.IntStack_pop,args) 
     
    222222class IntStackPtr(IntStack): 
    223223    def __init__(self,this): 
    224         self.this = this 
    225         if not hasattr(self,"thisown"): self.thisown = 0 
    226         self.__class__ = IntStack 
     224        _swig_setattr(self, IntStack, 'this', this) 
     225        if not hasattr(self,"thisown"): _swig_setattr(self, IntStack, 'thisown', 0) 
     226        _swig_setattr(self, IntStack,self.__class__,IntStack) 
    227227_sgfpars.IntStack_swigregister(IntStackPtr) 
    228228 
     
    239239    if _newclass:prev = property(_sgfpars.nodeN_prev_get,_sgfpars.nodeN_prev_set) 
    240240    def __init__(self,*args): 
    241         self.this = apply(_sgfpars.new_nodeN,args
    242         self.thisown = 1 
     241        _swig_setattr(self, nodeN, 'this', apply(_sgfpars.new_nodeN,args)
     242        _swig_setattr(self, nodeN, 'thisown', 1) 
    243243    def __del__(self, destroy= _sgfpars.delete_nodeN): 
    244244        try: 
     
    250250class nodeNPtr(nodeN): 
    251251    def __init__(self,this): 
    252         self.this = this 
    253         if not hasattr(self,"thisown"): self.thisown = 0 
    254         self.__class__ = nodeN 
     252        _swig_setattr(self, nodeN, 'this', this) 
     253        if not hasattr(self,"thisown"): _swig_setattr(self, nodeN, 'thisown', 0) 
     254        _swig_setattr(self, nodeN,self.__class__,nodeN) 
    255255_sgfpars.nodeN_swigregister(nodeNPtr) 
    256256 
     
    264264    if _newclass:root = property(_sgfpars.NodeStack_root_get,_sgfpars.NodeStack_root_set) 
    265265    def __init__(self,*args): 
    266         self.this = apply(_sgfpars.new_NodeStack,args
    267         self.thisown = 1 
     266        _swig_setattr(self, NodeStack, 'this', apply(_sgfpars.new_NodeStack,args)
     267        _swig_setattr(self, NodeStack, 'thisown', 1) 
    268268    def push(*args): return apply(_sgfpars.NodeStack_push,args) 
    269269    def pop(*args): return apply(_sgfpars.NodeStack_pop,args) 
     
    279279class NodeStackPtr(NodeStack): 
    280280    def __init__(self,this): 
    281         self.this = this 
    282         if not hasattr(self,"thisown"): self.thisown = 0 
    283         self.__class__ = NodeStack 
     281        _swig_setattr(self, NodeStack, 'this', this) 
     282        if not hasattr(self,"thisown"): _swig_setattr(self, NodeStack, 'thisown', 0) 
     283        _swig_setattr(self, NodeStack,self.__class__,NodeStack) 
    284284_sgfpars.NodeStack_swigregister(NodeStackPtr) 
    285285 
  • 05/bugfix/sgfpars_wrap.cxx

    r1 r16  
    11/* ---------------------------------------------------------------------------- 
    22 * This file was automatically generated by SWIG (http://www.swig.org). 
    3  * Version 1.3.16u-20030530-2151 
     3 * Version 1.3.19 
    44 *  
    55 * This file is not intended to be easily readable and contains a number of  
     
    9595SWIGIMPORT(void *)           SWIG_TypeCast(swig_type_info *, void *); 
    9696SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); 
     97SWIGIMPORT(const char *)     SWIG_TypeName(const swig_type_info *); 
    9798SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); 
    9899SWIGIMPORT(void)             SWIG_TypeClientData(swig_type_info *, void *); 
     
    137138    tc++; 
    138139  } 
     140  if (next) next->prev = head;  /**/ 
    139141  head->next = next; 
    140142  return ret; 
     
    160162      if (ty->next) ty->next->prev = s; 
    161163      ty->next = s; 
     164      s->prev = ty;  /**/ 
    162165      return s; 
    163166    } 
     
    188191} 
    189192 
     193/* Return the name associated with this type */ 
     194SWIGRUNTIME(const char *) 
     195SWIG_TypeName(const swig_type_info *ty) { 
     196  return ty->name; 
     197} 
     198 
    190199/* Search for a swig_type_info structure */ 
    191200SWIGRUNTIME(swig_type_info *) 
     
    204213SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { 
    205214  swig_type_info *tc, *equiv; 
    206   if (ti->clientdata) return; 
     215  if (ti->clientdata == clientdata) return; 
    207216  ti->clientdata = clientdata; 
    208217  equiv = ti->next; 
     
    268277#ifdef SWIG_NOINCLUDE 
    269278 
    270 SWIGEXPORT(PyObject *)        SWIG_newvarlink(); 
     279SWIGEXPORT(PyObject *)        SWIG_newvarlink(void); 
    271280SWIGEXPORT(void)              SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); 
    272281SWIGEXPORT(int)               SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int); 
     
    650659#define  SWIGTYPE_p_Node swig_types[2]  
    651660#define  SWIGTYPE_p_IntStack swig_types[3]  
    652 #define  SWIGTYPE_p_PyObject swig_types[4]  
    653 #define  SWIGTYPE_p_Cursor swig_types[5]  
    654 #define  SWIGTYPE_p_intN swig_types[6]  
    655 #define  SWIGTYPE_p_SGFError swig_types[7]  
    656 static swig_type_info *swig_types[9]; 
     661#define  SWIGTYPE_p_Cursor swig_types[4]  
     662#define  SWIGTYPE_p_intN swig_types[5]  
     663#define  SWIGTYPE_p_SGFError swig_types[6]  
     664static swig_type_info *swig_types[8]; 
    657665 
    658666/* -------- TYPES TABLE (END) -------- */ 
     
    697705    PyObject *resultobj; 
    698706    SGFError *arg1 = (SGFError *) 0 ; 
    699     PyObject * obj0 = 0 ; 
     707    PyObject * obj0 = 0 ; 
    700708     
    701709    if(!PyArg_ParseTuple(args,(char *)"O:delete_SGFError",&obj0)) goto fail; 
     
    754762    Node *arg1 = (Node *) 0 ; 
    755763    Node *arg2 = (Node *) 0 ; 
    756     PyObject * obj0 = 0 ; 
    757     PyObject * obj1 = 0 ; 
     764    PyObject * obj0 = 0 ; 
     765    PyObject * obj1 = 0 ; 
    758766     
    759767    if(!PyArg_ParseTuple(args,(char *)"OO:Node_previous_set",&obj0,&obj1)) goto fail; 
     
    773781    Node *arg1 = (Node *) 0 ; 
    774782    Node *result; 
    775     PyObject * obj0 = 0 ; 
     783    PyObject * obj0 = 0 ; 
    776784     
    777785    if(!PyArg_ParseTuple(args,(char *)"O:Node_previous_get",&obj0)) goto fail; 
     
    790798    Node *arg1 = (Node *) 0 ; 
    791799    Node *arg2 = (Node *) 0 ; 
    792     PyObject * obj0 = 0 ; 
    793     PyObject * obj1 = 0 ; 
     800    PyObject * obj0 = 0 ; 
     801    PyObject * obj1 = 0 ; 
    794802     
    795803    if(!PyArg_ParseTuple(args,(char *)"OO:Node_next_set",&obj0,&obj1)) goto fail; 
     
    809817    Node *arg1 = (Node *) 0 ; 
    810818    Node *result; 
    811     PyObject * obj0 = 0 ; 
     819    PyObject * obj0 = 0 ; 
    812820     
    813821    if(!PyArg_ParseTuple(args,(char *)"O:Node_next_get",&obj0)) goto fail; 
     
    826834    Node *arg1 = (Node *) 0 ; 
    827835    Node *arg2 = (Node *) 0 ; 
    828     PyObject * obj0 = 0 ; 
    829     PyObject * obj1 = 0 ; 
     836    PyObject * obj0 = 0 ; 
     837    PyObject * obj1 = 0 ; 
    830838     
    831839    if(!PyArg_ParseTuple(args,(char *)"OO:Node_up_set",&obj0,&obj1)) goto fail; 
     
    845853    Node *arg1 = (Node *) 0 ; 
    846854    Node *result; 
    847     PyObject * obj0 = 0 ; 
     855    PyObject * obj0 = 0 ; 
    848856     
    849857    if(!PyArg_ParseTuple(args,(char *)"O:Node_up_get",&obj0)) goto fail; 
     
    862870    Node *arg1 = (Node *) 0 ; 
    863871    Node *arg2 = (Node *) 0 ; 
    864     PyObject * obj0 = 0 ; 
    865     PyObject * obj1 = 0 ; 
     872    PyObject * obj0 = 0 ; 
     873    PyObject * obj1 = 0 ; 
    866874     
    867875    if(!PyArg_ParseTuple(args,(char *)"OO:Node_down_set",&obj0,&obj1)) goto fail; 
     
    881889    Node *arg1 = (Node *) 0 ; 
    882890    Node *result; 
    883     PyObject * obj0 = 0 ; 
     891    PyObject * obj0 = 0 ; 
    884892     
    885893    if(!PyArg_ParseTuple(args,(char *)"O:Node_down_get",&obj0)) goto fail; 
     
    898906    Node *arg1 = (Node *) 0 ; 
    899907    int arg2 ; 
    900     PyObject * obj0 = 0 ; 
     908    PyObject * obj0 = 0 ; 
    901909     
    902910    if(!PyArg_ParseTuple(args,(char *)"Oi:Node_numChildren_set",&obj0,&arg2)) goto fail; 
     
    915923    Node *arg1 = (Node *) 0 ; 
    916924    int result; 
    917     PyObject * obj0 = 0 ; 
     925    PyObject * obj0 = 0 ; 
    918926     
    919927    if(!PyArg_ParseTuple(args,(char *)"O:Node_numChildren_get",&obj0)) goto fail; 
     
    932940    Node *arg1 = (Node *) 0 ; 
    933941    int arg2 ; 
    934     PyObject * obj0 = 0 ; 
     942    PyObject * obj0 = 0 ; 
    935943     
    936944    if(!PyArg_ParseTuple(args,(char *)"Oi:Node_level_set",&obj0,&arg2)) goto fail; 
     
    949957    Node *arg1 = (Node *) 0 ; 
    950958    int result; 
    951     PyObject * obj0 = 0 ; 
     959    PyObject * obj0 = 0 ; 
    952960     
    953961    if(!PyArg_ParseTuple(args,(char *)"O:Node_level_get",&obj0)) goto fail; 
     
    966974    Node *arg1 = (Node *) 0 ; 
    967975    char *arg2 ; 
    968     PyObject * obj0 = 0 ; 
     976    PyObject * obj0 = 0 ; 
    969977     
    970978    if(!PyArg_ParseTuple(args,(char *)"Os:Node_SGFstring_set",&obj0,&arg2)) goto fail; 
     
    972980    { 
    973981        if (arg1->SGFstring) delete [] arg1->SGFstring; 
    974         arg1->SGFstring = (char *) (new char[strlen(arg2)+1]); 
    975         strcpy((char *) arg1->SGFstring,arg2); 
     982        if (arg2) { 
     983            arg1->SGFstring = (char *) (new char[strlen(arg2)+1]); 
     984            strcpy((char *) arg1->SGFstring,arg2); 
     985        }else { 
     986            arg1->SGFstring = 0; 
     987        } 
    976988    } 
    977989    Py_INCREF(Py_None); resultobj = Py_None; 
     
    986998    Node *arg1 = (Node *) 0 ; 
    987999    char *result; 
    988     PyObject * obj0 = 0 ; 
     1000    PyObject * obj0 = 0 ; 
    9891001     
    9901002    if(!PyArg_ParseTuple(args,(char *)"O:Node_SGFstring_get",&obj0)) goto fail; 
     
    10031015    Node *arg1 = (Node *) 0 ; 
    10041016    int arg2 ; 
    1005     PyObject * obj0 = 0 ; 
     1017    PyObject * obj0 = 0 ; 
    10061018     
    10071019    if(!PyArg_ParseTuple(args,(char *)"Oi:Node_parsed_set",&obj0,&arg2)) goto fail; 
     
    10201032    Node *arg1 = (Node *) 0 ; 
    10211033    int result; 
    1022     PyObject * obj0 = 0 ; 
     1034    PyObject * obj0 = 0 ; 
    10231035     
    10241036    if(!PyArg_ParseTuple(args,(char *)"O:Node_parsed_get",&obj0)) goto fail; 
     
    10371049    Node *arg1 = (Node *) 0 ; 
    10381050    PyObject *arg2 = (PyObject *) 0 ; 
    1039     PyObject * obj0 = 0 ; 
    1040     PyObject * obj1 = 0 ; 
     1051    PyObject * obj0 = 0 ; 
     1052    PyObject * obj1 = 0 ; 
    10411053     
    10421054    if(!PyArg_ParseTuple(args,(char *)"OO:Node_data_set",&obj0,&obj1)) goto fail; 
     
    10561068    Node *arg1 = (Node *) 0 ; 
    10571069    PyObject *result; 
    1058     PyObject * obj0 = 0 ; 
     1070    PyObject * obj0 = 0 ; 
    10591071     
    10601072    if(!PyArg_ParseTuple(args,(char *)"O:Node_data_get",&obj0)) goto fail; 
     
    10731085    Node *arg1 = (Node *) 0 ; 
    10741086    int arg2 ; 
    1075     PyObject * obj0 = 0 ; 
     1087    PyObject * obj0 = 0 ; 
    10761088     
    10771089    if(!PyArg_ParseTuple(args,(char *)"Oi:Node_posyD_set",&obj0,&arg2)) goto fail; 
     
    10901102    Node *arg1 = (Node *) 0 ; 
    10911103    int result; 
    1092     PyObject * obj0 = 0 ; 
     1104    PyObject * obj0 = 0 ; 
    10931105     
    10941106    if(!PyArg_ParseTuple(args,(char *)"O:Node_posyD_get",&obj0)) goto fail; 
     
    11091121    int arg3 ; 
    11101122    Node *result; 
    1111     PyObject * obj0 = 0 ; 
     1123    PyObject * obj0 = 0 ; 
    11121124     
    11131125    if(!PyArg_ParseTuple(args,(char *)"Osi:new_Node",&obj0,&arg2,&arg3)) goto fail; 
     
    11451157    PyObject *resultobj; 
    11461158    Node *arg1 = (Node *) 0 ; 
    1147     PyObject * obj0 = 0 ; 
     1159    PyObject * obj0 = 0 ; 
    11481160     
    11491161    if(!PyArg_ParseTuple(args,(char *)"O:delete_Node",&obj0)) goto fail; 
     
    11711183    Node *arg1 = (Node *) 0 ; 
    11721184    PyObject *result; 
    1173     PyObject * obj0 = 0 ; 
     1185    PyObject * obj0 = 0 ; 
    11741186     
    11751187    if(!PyArg_ParseTuple(args,(char *)"O:Node_pathToNode",&obj0)) goto fail; 
     
    11961208    PyObject *resultobj; 
    11971209    Node *arg1 = (Node *) 0 ; 
    1198     PyObject * obj0 = 0 ; 
     1210    PyObject * obj0 = 0 ; 
    11991211     
    12001212    if(!PyArg_ParseTuple(args,(char *)"O:Node_parseNode",&obj0)) goto fail; 
     
    12331245    Node *arg1 = (Node *) 0 ; 
    12341246    PyObject *result; 
    1235     PyObject * obj0 = 0 ; 
     1247    PyObject * obj0 = 0 ; 
    12361248     
    12371249    if(!PyArg_ParseTuple(args,(char *)"O:Node_getData",&obj0)) goto fail; 
     
    13221334    PyObject *resultobj; 
    13231335    Cursor *arg1 = (Cursor *) 0 ; 
    1324     PyObject * obj0 = 0 ; 
     1336    PyObject * obj0 = 0 ; 
    13251337     
    13261338    if(!PyArg_ParseTuple(args,(char *)"O:delete_Cursor",&obj0)) goto fail; 
     
    13481360    Cursor *arg1 = (Cursor *) 0 ; 
    13491361    int arg2 ; 
    1350     PyObject * obj0 = 0 ; 
     1362    PyObject * obj0 = 0 ; 
    13511363     
    13521364    if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_atStart_set",&obj0,&arg2)) goto fail; 
     
    13651377    Cursor *arg1 = (Cursor *) 0 ; 
    13661378    int result; 
    1367     PyObject * obj0 = 0 ; 
     1379    PyObject * obj0 = 0 ; 
    13681380     
    13691381    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_atStart_get",&obj0)) goto fail; 
     
    13821394    Cursor *arg1 = (Cursor *) 0 ; 
    13831395    int arg2 ; 
    1384     PyObject * obj0 = 0 ; 
     1396    PyObject * obj0 = 0 ; 
    13851397     
    13861398    if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_atEnd_set",&obj0,&arg2)) goto fail; 
     
    13991411    Cursor *arg1 = (Cursor *) 0 ; 
    14001412    int result; 
    1401     PyObject * obj0 = 0 ; 
     1413    PyObject * obj0 = 0 ; 
    14021414     
    14031415    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_atEnd_get",&obj0)) goto fail; 
     
    14161428    Cursor *arg1 = (Cursor *) 0 ; 
    14171429    int arg2 ; 
    1418     PyObject * obj0 = 0 ; 
     1430    PyObject * obj0 = 0 ; 
    14191431     
    14201432    if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_height_set",&obj0,&arg2)) goto fail; 
     
    14331445    Cursor *arg1 = (Cursor *) 0 ; 
    14341446    int result; 
    1435     PyObject * obj0 = 0 ; 
     1447    PyObject * obj0 = 0 ; 
    14361448     
    14371449    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_height_get",&obj0)) goto fail; 
     
    14501462    Cursor *arg1 = (Cursor *) 0 ; 
    14511463    int arg2 ; 
    1452     PyObject * obj0 = 0 ; 
     1464    PyObject * obj0 = 0 ; 
    14531465     
    14541466    if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_width_set",&obj0,&arg2)) goto fail; 
     
    14671479    Cursor *arg1 = (Cursor *) 0 ; 
    14681480    int result; 
    1469     PyObject * obj0 = 0 ; 
     1481    PyObject * obj0 = 0 ; 
    14701482     
    14711483    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_width_get",&obj0)) goto fail; 
     
    14841496    Cursor *arg1 = (Cursor *) 0 ; 
    14851497    Node *arg2 = (Node *) 0 ; 
    1486     PyObject * obj0 = 0 ; 
    1487     PyObject * obj1 = 0 ; 
     1498    PyObject * obj0 = 0 ; 
     1499    PyObject * obj1 = 0 ; 
    14881500     
    14891501    if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_root_set",&obj0,&obj1)) goto fail; 
     
    15031515    Cursor *arg1 = (Cursor *) 0 ; 
    15041516    Node *result; 
    1505     PyObject * obj0 = 0 ; 
     1517    PyObject * obj0 = 0 ; 
    15061518     
    15071519    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_root_get",&obj0)) goto fail; 
     
    15201532    Cursor *arg1 = (Cursor *) 0 ; 
    15211533    Node *arg2 = (Node *) 0 ; 
    1522     PyObject * obj0 = 0 ; 
    1523     PyObject * obj1 = 0 ; 
     1534    PyObject * obj0 = 0 ; 
     1535    PyObject * obj1 = 0 ; 
    15241536     
    15251537    if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_currentN_set",&obj0,&obj1)) goto fail; 
     
    15391551    Cursor *arg1 = (Cursor *) 0 ; 
    15401552    Node *result; 
    1541     PyObject * obj0 = 0 ; 
     1553    PyObject * obj0 = 0 ; 
    15421554     
    15431555    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_currentN_get",&obj0)) goto fail; 
     
    15561568    Cursor *arg1 = (Cursor *) 0 ; 
    15571569    int arg2 ; 
    1558     PyObject * obj0 = 0 ; 
     1570    PyObject * obj0 = 0 ; 
    15591571     
    15601572    if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_posx_set",&obj0,&arg2)) goto fail; 
     
    15731585    Cursor *arg1 = (Cursor *) 0 ; 
    15741586    int result; 
    1575     PyObject * obj0 = 0 ; 
     1587    PyObject * obj0 = 0 ; 
    15761588     
    15771589    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_posx_get",&obj0)) goto fail; 
     
    15901602    Cursor *arg1 = (Cursor *) 0 ; 
    15911603    int arg2 ; 
    1592     PyObject * obj0 = 0 ; 
     1604    PyObject * obj0 = 0 ; 
    15931605     
    15941606    if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_posy_set",&obj0,&arg2)) goto fail; 
     
    16071619    Cursor *arg1 = (Cursor *) 0 ; 
    16081620    int result; 
    1609     PyObject * obj0 = 0 ; 
     1621    PyObject * obj0 = 0 ; 
    16101622     
    16111623    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_posy_get",&obj0)) goto fail; 
     
    16241636    Cursor *arg1 = (Cursor *) 0 ; 
    16251637    int result; 
    1626     PyObject * obj0 = 0 ; 
     1638    PyObject * obj0 = 0 ; 
    16271639     
    16281640    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_noChildren",&obj0)) goto fail; 
     
    16501662    Cursor *arg1 = (Cursor *) 0 ; 
    16511663    PyObject *result; 
    1652     PyObject * obj0 = 0 ; 
     1664    PyObject * obj0 = 0 ; 
    16531665     
    16541666    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_currentNode",&obj0)) goto fail; 
     
    16761688    Cursor *arg1 = (Cursor *) 0 ; 
    16771689    char *arg2 ; 
    1678     PyObject * obj0 = 0 ; 
     1690    PyObject * obj0 = 0 ; 
    16791691     
    16801692    if(!PyArg_ParseTuple(args,(char *)"Os:Cursor_parse",&obj0,&arg2)) goto fail; 
     
    17131725    Cursor *arg1 = (Cursor *) 0 ; 
    17141726    int arg2 ; 
    1715     PyObject * obj0 = 0 ; 
     1727    PyObject * obj0 = 0 ; 
    17161728     
    17171729    if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_game",&obj0,&arg2)) goto fail; 
     
    17511763    int arg2 = (int) 0 ; 
    17521764    PyObject *result; 
    1753     PyObject * obj0 = 0 ; 
     1765    PyObject * obj0 = 0 ; 
    17541766     
    17551767    if(!PyArg_ParseTuple(args,(char *)"O|i:Cursor_next",&obj0,&arg2)) goto fail; 
     
    17881800    Cursor *arg1 = (Cursor *) 0 ; 
    17891801    PyObject *result; 
    1790     PyObject * obj0 = 0 ; 
     1802    PyObject * obj0 = 0 ; 
    17911803     
    17921804    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_previous",&obj0)) goto fail; 
     
    18261838    int arg2 ; 
    18271839    PyObject *result; 
    1828     PyObject * obj0 = 0 ; 
     1840    PyObject * obj0 = 0 ; 
    18291841     
    18301842    if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_getRootNode",&obj0,&arg2)) goto fail; 
     
    18621874    PyObject *resultobj; 
    18631875    Cursor *arg1 = (Cursor *) 0 ; 
    1864     PyObject * obj0 = 0 ; 
     1876    PyObject * obj0 = 0 ; 
    18651877     
    18661878    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_updateCurrentNode",&obj0)) goto fail; 
     
    19001912    PyObject *arg2 = (PyObject *) 0 ; 
    19011913    int arg3 ; 
    1902     PyObject * obj0 = 0 ; 
    1903     PyObject * obj1 = 0 ; 
     1914    PyObject * obj0 = 0 ; 
     1915    PyObject * obj1 = 0 ; 
    19041916     
    19051917    if(!PyArg_ParseTuple(args,(char *)"OOi:Cursor_updateRootNode",&obj0,&obj1,&arg3)) goto fail; 
     
    19401952    PyObject *arg2 = (PyObject *) 0 ; 
    19411953    char *result; 
    1942     PyObject * obj0 = 0 ; 
    1943     PyObject * obj1 = 0 ; 
     1954    PyObject * obj0 = 0 ; 
     1955    PyObject * obj1 = 0 ; 
    19441956     
    19451957    if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_rootNodeToString",&obj0,&obj1)) goto fail; 
     
    19691981    PyObject *arg2 = (PyObject *) 0 ; 
    19701982    char *result; 
    1971     PyObject * obj0 = 0 ; 
    1972     PyObject * obj1 = 0 ; 
     1983    PyObject * obj0 = 0 ; 
     1984    PyObject * obj1 = 0 ; 
    19731985     
    19741986    if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_nodeToString",&obj0,&obj1)) goto fail; 
     
    20092021    Node *arg2 = (Node *) 0 ; 
    20102022    char *result; 
    2011     PyObject * obj0 = 0 ; 
    2012     PyObject * obj1 = 0 ; 
     2023    PyObject * obj0 = 0 ; 
     2024    PyObject * obj1 = 0 ; 
    20132025     
    20142026    if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_outputVar",&obj0,&obj1)) goto fail; 
     
    20372049    Cursor *arg1 = (Cursor *) 0 ; 
    20382050    char *result; 
    2039     PyObject * obj0 = 0 ; 
     2051    PyObject * obj0 = 0 ; 
    20402052     
    20412053    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_output",&obj0)) goto fail; 
     
    20632075    Cursor *arg1 = (Cursor *) 0 ; 
    20642076    char *arg2 ; 
    2065     PyObject * obj0 = 0 ; 
     2077    PyObject * obj0 = 0 ; 
    20662078     
    20672079    if(!PyArg_ParseTuple(args,(char *)"Os:Cursor_add",&obj0,&arg2)) goto fail; 
     
    20892101    Cursor *arg1 = (Cursor *) 0 ; 
    20902102    Node *arg2 = (Node *) 0 ; 
    2091     PyObject * obj0 = 0 ; 
    2092     PyObject * obj1 = 0 ; 
     2103    PyObject * obj0 = 0 ; 
     2104    PyObject * obj1 = 0 ; 
    20932105     
    20942106    if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_delVariation",&obj0,&obj1)) goto fail; 
     
    21162128    PyObject *resultobj; 
    21172129    Cursor *arg1 = (Cursor *) 0 ; 
    2118     PyObject * obj0 = 0 ; 
     2130    PyObject * obj0 = 0 ; 
    21192131     
    21202132    if(!PyArg_ParseTuple(args,(char *)"O:Cursor_setFlags",&obj0)) goto fail; 
     
    21492161    intN *arg1 = (intN *) 0 ; 
    21502162    int arg2 ; 
    2151     PyObject * obj0 = 0 ; 
     2163    PyObject * obj0 = 0 ; 
    21522164     
    21532165    if(!PyArg_ParseTuple(args,(char *)"Oi:intN_data_set",&obj0,&arg2)) goto fail; 
     
    21662178    intN *arg1 = (intN *) 0 ; 
    21672179    int result; 
    2168     PyObject * obj0 = 0 ; 
     2180    PyObject * obj0 = 0 ; 
    21692181     
    21702182    if(!PyArg_ParseTuple(args,(char *)"O:intN_data_get",&obj0)) goto fail; 
     
    21832195    intN *arg1 = (intN *) 0 ; 
    21842196    intN *arg2 = (intN *) 0 ; 
    2185     PyObject * obj0 = 0 ; 
    2186     PyObject * obj1 = 0 ; 
     2197    PyObject * obj0 = 0 ; 
     2198    PyObject * obj1 = 0 ; 
    21872199     
    21882200    if(!PyArg_ParseTuple(args,(char *)"OO:intN_prev_set",&obj0,&obj1)) goto fail; 
     
    22022214    intN *arg1 = (intN *) 0 ; 
    22032215    intN *result; 
    2204     PyObject * obj0 = 0 ; 
     2216    PyObject * obj0 = 0 ; 
    22052217     
    22062218    if(!PyArg_ParseTuple(args,(char *)"O:intN_prev_get",&obj0)) goto fail; 
     
    22202232    intN *arg2 = (intN *) 0 ; 
    22212233    intN *result; 
    2222     PyObject * obj1 = 0 ; 
     2234    PyObject * obj1 = 0 ; 
    22232235     
    22242236    if(!PyArg_ParseTuple(args,(char *)"iO:new_intN",&arg1,&obj1)) goto fail; 
     
    22452257    PyObject *resultobj; 
    22462258    intN *arg1 = (intN *) 0 ; 
    2247     PyObject * obj0 = 0 ; 
     2259    PyObject * obj0 = 0 ; 
    22482260     
    22492261    if(!PyArg_ParseTuple(args,(char *)"O:delete_intN",&obj0)) goto fail; 
     
    22782290    IntStack *arg1 = (IntStack *) 0 ; 
    22792291    intN *arg2 = (intN *) 0 ; 
    2280     PyObject * obj0 = 0 ; 
    2281     PyObject * obj1 = 0 ; 
     2292    PyObject * obj0 = 0 ; 
     2293    PyObject * obj1 = 0 ; 
    22822294     
    22832295    if(!PyArg_ParseTuple(args,(char *)"OO:IntStack_root_set",&obj0,&obj1)) goto fail; 
     
    22972309    IntStack *arg1 = (IntStack *) 0 ; 
    22982310    intN *result; 
    2299     PyObject * obj0 = 0 ; 
     2311    PyObject * obj0 = 0 ; 
    23002312     
    23012313    if(!PyArg_ParseTuple(args,(char *)"O:IntStack_root_get",&obj0)) goto fail; 
     
    23372349    IntStack *arg1 = (IntStack *) 0 ; 
    23382350    int arg2 ; 
    2339     PyObject * obj0 = 0 ; 
     2351    PyObject * obj0 = 0 ; 
    23402352     
    23412353    if(!PyArg_ParseTuple(args,(char *)"Oi:IntStack_push",&obj0,&arg2)) goto fail; 
     
    23622374    PyObject *resultobj; 
    23632375    IntStack *arg1 = (IntStack *) 0 ; 
    2364     PyObject * obj0 = 0 ; 
     2376    PyObject * obj0 = 0 ; 
    23652377     
    23662378    if(!PyArg_ParseTuple(args,(char *)"O:IntStack_pop",&obj0)) goto fail; 
     
    23882400    IntStack *arg1 = (IntStack *) 0 ; 
    23892401    int result; 
    2390     PyObject * obj0 = 0 ; 
     2402    PyObject * obj0 = 0 ; 
    23912403     
    23922404    if(!PyArg_ParseTuple(args,(char *)"O:IntStack_top",&obj0)) goto fail; 
     
    24142426    IntStack *arg1 = (IntStack *) 0 ; 
    24152427    bool result; 
    2416     PyObject * obj0 = 0 ; 
     2428    PyObject * obj0 = 0 ; 
    24172429     
    24182430    if(!PyArg_ParseTuple(args,(char *)"O:IntStack_nonempty",&obj0)) goto fail; 
     
    24392451    PyObject *resultobj; 
    24402452    IntStack *arg1 = (IntStack *) 0 ; 
    2441     PyObject * obj0 = 0 ; 
     2453    PyObject * obj0 = 0 ; 
    24422454     
    24432455    if(!PyArg_ParseTuple(args,(char *)"O:delete_IntStack",&obj0)) goto fail; 
     
    24722484    nodeN *arg1 = (nodeN *) 0 ; 
    24732485    Node *arg2 = (Node *) 0 ; 
    2474     PyObject * obj0 = 0 ; 
    2475     PyObject * obj1 = 0 ; 
     2486    PyObject * obj0 = 0 ; 
     2487    PyObject * obj1 = 0 ; 
    24762488     
    24772489    if(!PyArg_ParseTuple(args,(char *)"OO:nodeN_data_set",&obj0,&obj1)) goto fail; 
     
    24912503    nodeN *arg1 = (nodeN *) 0 ; 
    24922504    Node *result; 
    2493     PyObject * obj0 = 0 ; 
     2505    PyObject * obj0 = 0 ; 
    24942506     
    24952507    if(!PyArg_ParseTuple(args,(char *)"O:nodeN_data_get",&obj0)) goto fail; 
     
    25082520    nodeN *arg1 = (nodeN *) 0 ; 
    25092521    nodeN *arg2 = (nodeN *) 0 ; 
    2510     PyObject * obj0 = 0 ; 
    2511     PyObject * obj1 = 0 ; 
     2522    PyObject * obj0 = 0 ; 
     2523    PyObject * obj1 = 0 ; 
    25122524     
    25132525    if(!PyArg_ParseTuple(args,(char *)"OO:nodeN_prev_set",&obj0,&obj1)) goto fail; 
     
    25272539    nodeN *arg1 = (nodeN *) 0 ; 
    25282540    nodeN *result; 
    2529     PyObject * obj0 = 0 ; 
     2541    PyObject * obj0 = 0 ; 
    25302542     
    25312543    if(!PyArg_ParseTuple(args,(char *)"O:nodeN_prev_get",&obj0)) goto fail; 
     
    25452557    nodeN *arg2 = (nodeN *) 0 ; 
    25462558    nodeN *result; 
    2547     PyObject * obj0 = 0 ; 
    2548     PyObject * obj1 = 0 ; 
     2559    PyObject * obj0 = 0 ; 
     2560    PyObject * obj1 = 0 ; 
    25492561     
    25502562    if(!PyArg_ParseTuple(args,(char *)"OO:new_nodeN",&obj0,&obj1)) goto fail; 
     
    25722584    PyObject *resultobj; 
    25732585    nodeN *arg1 = (nodeN *) 0 ; 
    2574     PyObject * obj0 = 0 ; 
     2586    PyObject * obj0 = 0 ; 
    25752587     
    25762588    if(!PyArg_ParseTuple(args,(char *)"O:delete_nodeN",&obj0)) goto fail; 
     
    26052617    NodeStack *arg1 = (NodeStack *) 0 ; 
    26062618    nodeN *arg2 = (nodeN *) 0 ; 
    2607     PyObject * obj0 = 0 ; 
    2608     PyObject * obj1 = 0 ; 
     2619    PyObject * obj0 = 0 ; 
     2620    PyObject * obj1 = 0 ; 
    26092621     
    26102622    if(!PyArg_ParseTuple(args,(char *)"OO:NodeStack_root_set",&obj0,&obj1)) goto fail; 
     
    26242636    NodeStack *arg1 = (NodeStack *) 0 ; 
    26252637    nodeN *result; 
    2626     PyObject * obj0 = 0 ; 
     2638    PyObject * obj0 = 0 ; 
    26272639     
    26282640    if(!PyArg_ParseTuple(args,(char *)"O:NodeStack_root_get",&obj0)) goto fail; 
     
    26642676    NodeStack *arg1 = (NodeStack *) 0 ; 
    26652677    Node *arg2 = (Node *) 0 ; 
    2666     PyObject * obj0 = 0 ; 
    2667     PyObject * obj1 = 0 ; 
     2678    PyObject * obj0 = 0 ; 
     2679    PyObject * obj1 = 0 ; 
    26682680     
    26692681    if(!PyArg_ParseTuple(args,(char *)"OO:NodeStack_push",&obj0,&obj1)) goto fail; 
     
    26912703    PyObject *resultobj; 
    26922704    NodeStack *arg1 = (NodeStack *) 0 ; 
    2693     PyObject * obj0 = 0 ; 
     2705    PyObject * obj0 = 0 ; 
    26942706     
    26952707    if(!PyArg_ParseTuple(args,(char *)"O:NodeStack_pop",&obj0)) goto fail; 
     
    27172729    NodeStack *arg1 = (NodeStack *) 0 ; 
    27182730    Node *result; 
    2719     PyObject * obj0 = 0 ; 
     2731    PyObject * obj0 = 0 ; 
    27202732     
    27212733    if(!PyArg_ParseTuple(args,(char *)"O:NodeStack_top",&obj0)) goto fail; 
     
    27432755    NodeStack *arg1 = (NodeStack *) 0 ; 
    27442756    bool result; 
    2745     PyObject * obj0 = 0 ; 
     2757    PyObject * obj0 = 0 ; 
    27462758     
    27472759    if(!PyArg_ParseTuple(args,(char *)"O:NodeStack_nonempty",&obj0)) goto fail; 
     
    27682780    PyObject *resultobj; 
    27692781    NodeStack *arg1 = (NodeStack *) 0 ; 
    2770     PyObject * obj0 = 0 ; 
     2782    PyObject * obj0 = 0 ; 
    27712783     
    27722784    if(!PyArg_ParseTuple(args,(char *)"O:delete_NodeStack",&obj0)) goto fail; 
     
    29052917static swig_type_info _swigt__p_Node[] = {{"_p_Node", 0, "Node *", 0},{"_p_Node"},{0}}; 
    29062918static swig_type_info _swigt__p_IntStack[] = {{"_p_IntStack", 0, "IntStack *", 0},{"_p_IntStack"},{0}}; 
    2907 static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}}; 
    29082919static swig_type_info _swigt__p_Cursor[] = {{"_p_Cursor", 0, "Cursor *", 0},{"_p_Cursor"},{0}}; 
    29092920static swig_type_info _swigt__p_intN[] = {{"_p_intN", 0, "intN *", 0},{"_p_intN"},{0}}; 
     
    29152926_swigt__p_Node,  
    29162927_swigt__p_IntStack,  
    2917 _swigt__p_PyObject,  
    29182928_swigt__p_Cursor,  
    29192929_swigt__p_intN,