Changeset 40
- Timestamp:
- 02/07/04 23:38:35 (5 years ago)
- Files:
-
- 05/devel/kombilo.py (modified) (11 diffs)
- 05/devel/sgfpars.py (modified) (14 diffs)
- 05/devel/sgfpars_wrap.cxx (modified) (96 diffs)
- 05/devel/v.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
05/devel/kombilo.py
r39 r40 3 3 4 4 ## Copyright (C) 2001-3 Ulrich Goertz (u@g0ertz.de) 5 5 6 6 7 ## Kombilo 0.5i is a go database program. … … 46 47 except: pass 47 48 48 import encodings.utf_8 49 try: 50 import cjkcodecs 51 cjkcodecs_available = 1 52 except: 53 import encodings.utf_8 54 cjkcodecs_available = 0 55 49 56 import time 50 57 import os … … 91 98 self.fixedColor = fixedColor 92 99 self.smartFixedColor = smartFixedColor 93 94 self.bound3 = self.bind('<Button-3>', self.selStart) 95 self.bound3m = self.bind('<B3-Motion>', self.selDrag) 100 101 if sys.platform.startswith('darwin'): 102 self.bound3 = self.bind('<M2-Button-1>', self.selStart) 103 self.bound3m = self.bind('<M2-B1-Motion>', self.selDrag) 104 else: 105 self.bound3 = self.bind('<Button-3>', self.selStart) 106 self.bound3m = self.bind('<B3-Motion>', self.selDrag) 96 107 self.bounds1 = self.bind('<Shift-1>', self.wildcard) 97 108 … … 323 334 else: 324 335 self.defpath = os.curdir 336 325 337 326 338 def saveas(self): … … 821 833 f = open(filename) 822 834 sgf = f.read() 835 if self.DBlist[DBindex]['encoding']: 836 try: 837 sgf = sgf.decode(self.DBlist[DBindex]['encoding']).encode('utf-8') 838 except: 839 pass 840 823 841 f.close() 824 842 node = Cursor(sgf, 1).getRootNode(gameNumber) … … 2547 2565 """ The main class of Kombilo. """ 2548 2566 2549 def process(self, dbpath, datap, messages ):2567 def process(self, dbpath, datap, messages, encoding=''): 2550 2568 """ Process the database dbpath, i.e. translate the SGF files into the 2551 2569 .db files that the pattern search function uses. … … 2603 2621 messages.insert(END, 'I/O Error: Cannot read file ' + f + ', skipped.\n') 2604 2622 continue 2605 2623 2624 if encoding: 2625 try: 2626 s = s.decode(encoding).encode('utf-8') 2627 except: 2628 pass 2606 2629 try: 2607 2630 cursor = Cursor(s, self.options.sloppySGF.get()) … … 4541 4564 else: ref = '' 4542 4565 4543 self.gamelist.append(DBlistIndex, (filename, namelistIndex, PB, PW, res, sig, date, ref)) 4544 except: 4566 self.gamelist.append(DBlistIndex, (filename, namelistIndex, 4567 PB, PW, res, sig, date, ref)) 4568 except ImportError: 4545 4569 showwarning('Error', 'The database file ' + os.path.join(db['name'][0], 'namelist' + db['name'][1] + '.db') +\ 4546 4570 ' does not have the right format. ' … … 5264 5288 if not namelist: return 5265 5289 5266 self.gamelist.DBlist.append({'name': datap, 'sgfpath':dbpath, 'current':array('L'), 'results':[], 'numNewGames':0, 5290 self.gamelist.DBlist.append({'name': datap, 'sgfpath':dbpath, 'encoding': '', 5291 'current':array('L'), 'results':[], 'numNewGames':0, 5267 5292 'data':[], 'disabled': 0}) 5268 5293 self.db_list.insert(END, dbpath) … … 5278 5303 else: ref = '' 5279 5304 5280 self.gamelist.append(DBlistIndex, (filename, namelistIndex, PB, PW, res, sig, date, ref)) 5305 self.gamelist.append(DBlistIndex, (filename, namelistIndex, 5306 PB, PW, res, sig, date, ref)) 5281 5307 5282 5308 self.prevSearches.clear() … … 6225 6251 elif line and line[0] == 'd': 6226 6252 self.gamelist.DBlist.append({'sgfpath':line[1], 'name':(line[2], line[3]), 'data':[], 6227 ' results':[], 'current':array('L'),6253 'encoding': '', 'results':[], 'current':array('L'), 6228 6254 'numNewGames':0, 'disabled': 0}) 6229 6255 6230 6256 elif line and line[0] == 'dD': 6231 6257 self.gamelist.DBlist.append({'sgfpath':line[1], 'name':(line[2], line[3]), 'data':[], 6232 ' results':[], 'current':array('L'),6258 'encoding': '', 'results':[], 'current':array('L'), 6233 6259 'numNewGames':0, 'disabled': 1}) 6234 6260 05/devel/sgfpars.py
r1 r40 34 34 __getattr__ = lambda self, name: _swig_getattr(self, SGFError, name) 35 35 def __init__(self,*args): 36 self.this = apply(_sgfpars.new_SGFError,args)37 self.thisown = 136 _swig_setattr(self, SGFError, 'this', apply(_sgfpars.new_SGFError,args)) 37 _swig_setattr(self, SGFError, 'thisown', 1) 38 38 def __del__(self, destroy= _sgfpars.delete_SGFError): 39 39 try: … … 45 45 class SGFErrorPtr(SGFError): 46 46 def __init__(self,this): 47 self.this = this48 if not hasattr(self,"thisown"): self.thisown = 049 self.__class__ = SGFError47 _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) 50 50 _sgfpars.SGFError_swigregister(SGFErrorPtr) 51 51 … … 88 88 if _newclass:posyD = property(_sgfpars.Node_posyD_get,_sgfpars.Node_posyD_set) 89 89 def __init__(self,*args): 90 self.this = apply(_sgfpars.new_Node,args)91 self.thisown = 190 _swig_setattr(self, Node, 'this', apply(_sgfpars.new_Node,args)) 91 _swig_setattr(self, Node, 'thisown', 1) 92 92 def __del__(self, destroy= _sgfpars.delete_Node): 93 93 try: … … 102 102 class NodePtr(Node): 103 103 def __init__(self,this): 104 self.this = this105 if not hasattr(self,"thisown"): self.thisown = 0106 self.__class__ = Node104 _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) 107 107 _sgfpars.Node_swigregister(NodePtr) 108 108 cvar = _sgfpars.cvar … … 114 114 __getattr__ = lambda self, name: _swig_getattr(self, Cursor, name) 115 115 def __init__(self,*args): 116 self.this = apply(_sgfpars.new_Cursor,args)117 self.thisown = 1116 _swig_setattr(self, Cursor, 'this', apply(_sgfpars.new_Cursor,args)) 117 _swig_setattr(self, Cursor, 'thisown', 1) 118 118 def __del__(self, destroy= _sgfpars.delete_Cursor): 119 119 try: … … 165 165 class CursorPtr(Cursor): 166 166 def __init__(self,this): 167 self.this = this168 if not hasattr(self,"thisown"): self.thisown = 0169 self.__class__ = Cursor167 _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) 170 170 _sgfpars.Cursor_swigregister(CursorPtr) 171 171 … … 182 182 if _newclass:prev = property(_sgfpars.intN_prev_get,_sgfpars.intN_prev_set) 183 183 def __init__(self,*args): 184 self.this = apply(_sgfpars.new_intN,args)185 self.thisown = 1184 _swig_setattr(self, intN, 'this', apply(_sgfpars.new_intN,args)) 185 _swig_setattr(self, intN, 'thisown', 1) 186 186 def __del__(self, destroy= _sgfpars.delete_intN): 187 187 try: … … 193 193 class intNPtr(intN): 194 194 def __init__(self,this): 195 self.this = this196 if not hasattr(self,"thisown"): self.thisown = 0197 self.__class__ = intN195 _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) 198 198 _sgfpars.intN_swigregister(intNPtr) 199 199 … … 207 207 if _newclass:root = property(_sgfpars.IntStack_root_get,_sgfpars.IntStack_root_set) 208 208 def __init__(self,*args): 209 self.this = apply(_sgfpars.new_IntStack,args)210 self.thisown = 1209 _swig_setattr(self, IntStack, 'this', apply(_sgfpars.new_IntStack,args)) 210 _swig_setattr(self, IntStack, 'thisown', 1) 211 211 def push(*args): return apply(_sgfpars.IntStack_push,args) 212 212 def pop(*args): return apply(_sgfpars.IntStack_pop,args) … … 222 222 class IntStackPtr(IntStack): 223 223 def __init__(self,this): 224 self.this = this225 if not hasattr(self,"thisown"): self.thisown = 0226 self.__class__ = IntStack224 _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) 227 227 _sgfpars.IntStack_swigregister(IntStackPtr) 228 228 … … 239 239 if _newclass:prev = property(_sgfpars.nodeN_prev_get,_sgfpars.nodeN_prev_set) 240 240 def __init__(self,*args): 241 self.this = apply(_sgfpars.new_nodeN,args)242 self.thisown = 1241 _swig_setattr(self, nodeN, 'this', apply(_sgfpars.new_nodeN,args)) 242 _swig_setattr(self, nodeN, 'thisown', 1) 243 243 def __del__(self, destroy= _sgfpars.delete_nodeN): 244 244 try: … … 250 250 class nodeNPtr(nodeN): 251 251 def __init__(self,this): 252 self.this = this253 if not hasattr(self,"thisown"): self.thisown = 0254 self.__class__ = nodeN252 _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) 255 255 _sgfpars.nodeN_swigregister(nodeNPtr) 256 256 … … 264 264 if _newclass:root = property(_sgfpars.NodeStack_root_get,_sgfpars.NodeStack_root_set) 265 265 def __init__(self,*args): 266 self.this = apply(_sgfpars.new_NodeStack,args)267 self.thisown = 1266 _swig_setattr(self, NodeStack, 'this', apply(_sgfpars.new_NodeStack,args)) 267 _swig_setattr(self, NodeStack, 'thisown', 1) 268 268 def push(*args): return apply(_sgfpars.NodeStack_push,args) 269 269 def pop(*args): return apply(_sgfpars.NodeStack_pop,args) … … 279 279 class NodeStackPtr(NodeStack): 280 280 def __init__(self,this): 281 self.this = this282 if not hasattr(self,"thisown"): self.thisown = 0283 self.__class__ = NodeStack281 _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) 284 284 _sgfpars.NodeStack_swigregister(NodeStackPtr) 285 285 05/devel/sgfpars_wrap.cxx
r1 r40 1 1 /* ---------------------------------------------------------------------------- 2 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 1.3.1 6u-20030530-21513 * Version 1.3.19 4 4 * 5 5 * This file is not intended to be easily readable and contains a number of … … 95 95 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); 96 96 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); 97 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); 97 98 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); 98 99 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); … … 137 138 tc++; 138 139 } 140 if (next) next->prev = head; /**/ 139 141 head->next = next; 140 142 return ret; … … 160 162 if (ty->next) ty->next->prev = s; 161 163 ty->next = s; 164 s->prev = ty; /**/ 162 165 return s; 163 166 } … … 188 191 } 189 192 193 /* Return the name associated with this type */ 194 SWIGRUNTIME(const char *) 195 SWIG_TypeName(const swig_type_info *ty) { 196 return ty->name; 197 } 198 190 199 /* Search for a swig_type_info structure */ 191 200 SWIGRUNTIME(swig_type_info *) … … 204 213 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { 205 214 swig_type_info *tc, *equiv; 206 if (ti->clientdata ) return;215 if (ti->clientdata == clientdata) return; 207 216 ti->clientdata = clientdata; 208 217 equiv = ti->next; … … 268 277 #ifdef SWIG_NOINCLUDE 269 278 270 SWIGEXPORT(PyObject *) SWIG_newvarlink( );279 SWIGEXPORT(PyObject *) SWIG_newvarlink(void); 271 280 SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); 272 281 SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int); … … 650 659 #define SWIGTYPE_p_Node swig_types[2] 651 660 #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] 664 static swig_type_info *swig_types[8]; 657 665 658 666 /* -------- TYPES TABLE (END) -------- */ … … 697 705 PyObject *resultobj; 698 706 SGFError *arg1 = (SGFError *) 0 ; 699 PyObject * obj0 = 0 ;707 PyObject * obj0 = 0 ; 700 708 701 709 if(!PyArg_ParseTuple(args,(char *)"O:delete_SGFError",&obj0)) goto fail; … … 754 762 Node *arg1 = (Node *) 0 ; 755 763 Node *arg2 = (Node *) 0 ; 756 PyObject * obj0 = 0 ;757 PyObject * obj1 = 0 ;764 PyObject * obj0 = 0 ; 765 PyObject * obj1 = 0 ; 758 766 759 767 if(!PyArg_ParseTuple(args,(char *)"OO:Node_previous_set",&obj0,&obj1)) goto fail; … … 773 781 Node *arg1 = (Node *) 0 ; 774 782 Node *result; 775 PyObject * obj0 = 0 ;783 PyObject * obj0 = 0 ; 776 784 777 785 if(!PyArg_ParseTuple(args,(char *)"O:Node_previous_get",&obj0)) goto fail; … … 790 798 Node *arg1 = (Node *) 0 ; 791 799 Node *arg2 = (Node *) 0 ; 792 PyObject * obj0 = 0 ;793 PyObject * obj1 = 0 ;800 PyObject * obj0 = 0 ; 801 PyObject * obj1 = 0 ; 794 802 795 803 if(!PyArg_ParseTuple(args,(char *)"OO:Node_next_set",&obj0,&obj1)) goto fail; … … 809 817 Node *arg1 = (Node *) 0 ; 810 818 Node *result; 811 PyObject * obj0 = 0 ;819 PyObject * obj0 = 0 ; 812 820 813 821 if(!PyArg_ParseTuple(args,(char *)"O:Node_next_get",&obj0)) goto fail; … … 826 834 Node *arg1 = (Node *) 0 ; 827 835 Node *arg2 = (Node *) 0 ; 828 PyObject * obj0 = 0 ;829 PyObject * obj1 = 0 ;836 PyObject * obj0 = 0 ; 837 PyObject * obj1 = 0 ; 830 838 831 839 if(!PyArg_ParseTuple(args,(char *)"OO:Node_up_set",&obj0,&obj1)) goto fail; … … 845 853 Node *arg1 = (Node *) 0 ; 846 854 Node *result; 847 PyObject * obj0 = 0 ;855 PyObject * obj0 = 0 ; 848 856 849 857 if(!PyArg_ParseTuple(args,(char *)"O:Node_up_get",&obj0)) goto fail; … … 862 870 Node *arg1 = (Node *) 0 ; 863 871 Node *arg2 = (Node *) 0 ; 864 PyObject * obj0 = 0 ;865 PyObject * obj1 = 0 ;872 PyObject * obj0 = 0 ; 873 PyObject * obj1 = 0 ; 866 874 867 875 if(!PyArg_ParseTuple(args,(char *)"OO:Node_down_set",&obj0,&obj1)) goto fail; … … 881 889 Node *arg1 = (Node *) 0 ; 882 890 Node *result; 883 PyObject * obj0 = 0 ;891 PyObject * obj0 = 0 ; 884 892 885 893 if(!PyArg_ParseTuple(args,(char *)"O:Node_down_get",&obj0)) goto fail; … … 898 906 Node *arg1 = (Node *) 0 ; 899 907 int arg2 ; 900 PyObject * obj0 = 0 ;908 PyObject * obj0 = 0 ; 901 909 902 910 if(!PyArg_ParseTuple(args,(char *)"Oi:Node_numChildren_set",&obj0,&arg2)) goto fail; … … 915 923 Node *arg1 = (Node *) 0 ; 916 924 int result; 917 PyObject * obj0 = 0 ;925 PyObject * obj0 = 0 ; 918 926 919 927 if(!PyArg_ParseTuple(args,(char *)"O:Node_numChildren_get",&obj0)) goto fail; … … 932 940 Node *arg1 = (Node *) 0 ; 933 941 int arg2 ; 934 PyObject * obj0 = 0 ;942 PyObject * obj0 = 0 ; 935 943 936 944 if(!PyArg_ParseTuple(args,(char *)"Oi:Node_level_set",&obj0,&arg2)) goto fail; … … 949 957 Node *arg1 = (Node *) 0 ; 950 958 int result; 951 PyObject * obj0 = 0 ;959 PyObject * obj0 = 0 ; 952 960 953 961 if(!PyArg_ParseTuple(args,(char *)"O:Node_level_get",&obj0)) goto fail; … … 966 974 Node *arg1 = (Node *) 0 ; 967 975 char *arg2 ; 968 PyObject * obj0 = 0 ;976 PyObject * obj0 = 0 ; 969 977 970 978 if(!PyArg_ParseTuple(args,(char *)"Os:Node_SGFstring_set",&obj0,&arg2)) goto fail; … … 972 980 { 973 981 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 } 976 988 } 977 989 Py_INCREF(Py_None); resultobj = Py_None; … … 986 998 Node *arg1 = (Node *) 0 ; 987 999 char *result; 988 PyObject * obj0 = 0 ;1000 PyObject * obj0 = 0 ; 989 1001 990 1002 if(!PyArg_ParseTuple(args,(char *)"O:Node_SGFstring_get",&obj0)) goto fail; … … 1003 1015 Node *arg1 = (Node *) 0 ; 1004 1016 int arg2 ; 1005 PyObject * obj0 = 0 ;1017 PyObject * obj0 = 0 ; 1006 1018 1007 1019 if(!PyArg_ParseTuple(args,(char *)"Oi:Node_parsed_set",&obj0,&arg2)) goto fail; … … 1020 1032 Node *arg1 = (Node *) 0 ; 1021 1033 int result; 1022 PyObject * obj0 = 0 ;1034 PyObject * obj0 = 0 ; 1023 1035 1024 1036 if(!PyArg_ParseTuple(args,(char *)"O:Node_parsed_get",&obj0)) goto fail; … … 1037 1049 Node *arg1 = (Node *) 0 ; 1038 1050 PyObject *arg2 = (PyObject *) 0 ; 1039 PyObject * obj0 = 0 ;1040 PyObject * obj1 = 0 ;1051 PyObject * obj0 = 0 ; 1052 PyObject * obj1 = 0 ; 1041 1053 1042 1054 if(!PyArg_ParseTuple(args,(char *)"OO:Node_data_set",&obj0,&obj1)) goto fail; … … 1056 1068 Node *arg1 = (Node *) 0 ; 1057 1069 PyObject *result; 1058 PyObject * obj0 = 0 ;1070 PyObject * obj0 = 0 ; 1059 1071 1060 1072 if(!PyArg_ParseTuple(args,(char *)"O:Node_data_get",&obj0)) goto fail; … … 1073 1085 Node *arg1 = (Node *) 0 ; 1074 1086 int arg2 ; 1075 PyObject * obj0 = 0 ;1087 PyObject * obj0 = 0 ; 1076 1088 1077 1089 if(!PyArg_ParseTuple(args,(char *)"Oi:Node_posyD_set",&obj0,&arg2)) goto fail; … … 1090 1102 Node *arg1 = (Node *) 0 ; 1091 1103 int result; 1092 PyObject * obj0 = 0 ;1104 PyObject * obj0 = 0 ; 1093 1105 1094 1106 if(!PyArg_ParseTuple(args,(char *)"O:Node_posyD_get",&obj0)) goto fail; … … 1109 1121 int arg3 ; 1110 1122 Node *result; 1111 PyObject * obj0 = 0 ;1123 PyObject * obj0 = 0 ; 1112 1124 1113 1125 if(!PyArg_ParseTuple(args,(char *)"Osi:new_Node",&obj0,&arg2,&arg3)) goto fail; … … 1145 1157 PyObject *resultobj; 1146 1158 Node *arg1 = (Node *) 0 ; 1147 PyObject * obj0 = 0 ;1159 PyObject * obj0 = 0 ; 1148 1160 1149 1161 if(!PyArg_ParseTuple(args,(char *)"O:delete_Node",&obj0)) goto fail; … … 1171 1183 Node *arg1 = (Node *) 0 ; 1172 1184 PyObject *result; 1173 PyObject * obj0 = 0 ;1185 PyObject * obj0 = 0 ; 1174 1186 1175 1187 if(!PyArg_ParseTuple(args,(char *)"O:Node_pathToNode",&obj0)) goto fail; … … 1196 1208 PyObject *resultobj; 1197 1209 Node *arg1 = (Node *) 0 ; 1198 PyObject * obj0 = 0 ;1210 PyObject * obj0 = 0 ; 1199 1211 1200 1212 if(!PyArg_ParseTuple(args,(char *)"O:Node_parseNode",&obj0)) goto fail; … … 1233 1245 Node *arg1 = (Node *) 0 ; 1234 1246 PyObject *result; 1235 PyObject * obj0 = 0 ;1247 PyObject * obj0 = 0 ; 1236 1248 1237 1249 if(!PyArg_ParseTuple(args,(char *)"O:Node_getData",&obj0)) goto fail; … … 1322 1334 PyObject *resultobj; 1323 1335 Cursor *arg1 = (Cursor *) 0 ; 1324 PyObject * obj0 = 0 ;1336 PyObject * obj0 = 0 ; 1325 1337 1326 1338 if(!PyArg_ParseTuple(args,(char *)"O:delete_Cursor",&obj0)) goto fail; … … 1348 1360 Cursor *arg1 = (Cursor *) 0 ; 1349 1361 int arg2 ; 1350 PyObject * obj0 = 0 ;1362 PyObject * obj0 = 0 ; 1351 1363 1352 1364 if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_atStart_set",&obj0,&arg2)) goto fail; … … 1365 1377 Cursor *arg1 = (Cursor *) 0 ; 1366 1378 int result; 1367 PyObject * obj0 = 0 ;1379 PyObject * obj0 = 0 ; 1368 1380 1369 1381 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_atStart_get",&obj0)) goto fail; … … 1382 1394 Cursor *arg1 = (Cursor *) 0 ; 1383 1395 int arg2 ; 1384 PyObject * obj0 = 0 ;1396 PyObject * obj0 = 0 ; 1385 1397 1386 1398 if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_atEnd_set",&obj0,&arg2)) goto fail; … … 1399 1411 Cursor *arg1 = (Cursor *) 0 ; 1400 1412 int result; 1401 PyObject * obj0 = 0 ;1413 PyObject * obj0 = 0 ; 1402 1414 1403 1415 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_atEnd_get",&obj0)) goto fail; … … 1416 1428 Cursor *arg1 = (Cursor *) 0 ; 1417 1429 int arg2 ; 1418 PyObject * obj0 = 0 ;1430 PyObject * obj0 = 0 ; 1419 1431 1420 1432 if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_height_set",&obj0,&arg2)) goto fail; … … 1433 1445 Cursor *arg1 = (Cursor *) 0 ; 1434 1446 int result; 1435 PyObject * obj0 = 0 ;1447 PyObject * obj0 = 0 ; 1436 1448 1437 1449 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_height_get",&obj0)) goto fail; … … 1450 1462 Cursor *arg1 = (Cursor *) 0 ; 1451 1463 int arg2 ; 1452 PyObject * obj0 = 0 ;1464 PyObject * obj0 = 0 ; 1453 1465 1454 1466 if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_width_set",&obj0,&arg2)) goto fail; … … 1467 1479 Cursor *arg1 = (Cursor *) 0 ; 1468 1480 int result; 1469 PyObject * obj0 = 0 ;1481 PyObject * obj0 = 0 ; 1470 1482 1471 1483 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_width_get",&obj0)) goto fail; … … 1484 1496 Cursor *arg1 = (Cursor *) 0 ; 1485 1497 Node *arg2 = (Node *) 0 ; 1486 PyObject * obj0 = 0 ;1487 PyObject * obj1 = 0 ;1498 PyObject * obj0 = 0 ; 1499 PyObject * obj1 = 0 ; 1488 1500 1489 1501 if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_root_set",&obj0,&obj1)) goto fail; … … 1503 1515 Cursor *arg1 = (Cursor *) 0 ; 1504 1516 Node *result; 1505 PyObject * obj0 = 0 ;1517 PyObject * obj0 = 0 ; 1506 1518 1507 1519 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_root_get",&obj0)) goto fail; … … 1520 1532 Cursor *arg1 = (Cursor *) 0 ; 1521 1533 Node *arg2 = (Node *) 0 ; 1522 PyObject * obj0 = 0 ;1523 PyObject * obj1 = 0 ;1534 PyObject * obj0 = 0 ; 1535 PyObject * obj1 = 0 ; 1524 1536 1525 1537 if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_currentN_set",&obj0,&obj1)) goto fail; … … 1539 1551 Cursor *arg1 = (Cursor *) 0 ; 1540 1552 Node *result; 1541 PyObject * obj0 = 0 ;1553 PyObject * obj0 = 0 ; 1542 1554 1543 1555 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_currentN_get",&obj0)) goto fail; … … 1556 1568 Cursor *arg1 = (Cursor *) 0 ; 1557 1569 int arg2 ; 1558 PyObject * obj0 = 0 ;1570 PyObject * obj0 = 0 ; 1559 1571 1560 1572 if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_posx_set",&obj0,&arg2)) goto fail; … … 1573 1585 Cursor *arg1 = (Cursor *) 0 ; 1574 1586 int result; 1575 PyObject * obj0 = 0 ;1587 PyObject * obj0 = 0 ; 1576 1588 1577 1589 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_posx_get",&obj0)) goto fail; … … 1590 1602 Cursor *arg1 = (Cursor *) 0 ; 1591 1603 int arg2 ; 1592 PyObject * obj0 = 0 ;1604 PyObject * obj0 = 0 ; 1593 1605 1594 1606 if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_posy_set",&obj0,&arg2)) goto fail; … … 1607 1619 Cursor *arg1 = (Cursor *) 0 ; 1608 1620 int result; 1609 PyObject * obj0 = 0 ;1621 PyObject * obj0 = 0 ; 1610 1622 1611 1623 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_posy_get",&obj0)) goto fail; … … 1624 1636 Cursor *arg1 = (Cursor *) 0 ; 1625 1637 int result; 1626 PyObject * obj0 = 0 ;1638 PyObject * obj0 = 0 ; 1627 1639 1628 1640 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_noChildren",&obj0)) goto fail; … … 1650 1662 Cursor *arg1 = (Cursor *) 0 ; 1651 1663 PyObject *result; 1652 PyObject * obj0 = 0 ;1664 PyObject * obj0 = 0 ; 1653 1665 1654 1666 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_currentNode",&obj0)) goto fail; … … 1676 1688 Cursor *arg1 = (Cursor *) 0 ; 1677 1689 char *arg2 ; 1678 PyObject * obj0 = 0 ;1690 PyObject * obj0 = 0 ; 1679 1691 1680 1692 if(!PyArg_ParseTuple(args,(char *)"Os:Cursor_parse",&obj0,&arg2)) goto fail; … … 1713 1725 Cursor *arg1 = (Cursor *) 0 ; 1714 1726 int arg2 ; 1715 PyObject * obj0 = 0 ;1727 PyObject * obj0 = 0 ; 1716 1728 1717 1729 if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_game",&obj0,&arg2)) goto fail; … … 1751 1763 int arg2 = (int) 0 ; 1752 1764 PyObject *result; 1753 PyObject * obj0 = 0 ;1765 PyObject * obj0 = 0 ; 1754 1766 1755 1767 if(!PyArg_ParseTuple(args,(char *)"O|i:Cursor_next",&obj0,&arg2)) goto fail; … … 1788 1800 Cursor *arg1 = (Cursor *) 0 ; 1789 1801 PyObject *result; 1790 PyObject * obj0 = 0 ;1802 PyObject * obj0 = 0 ; 1791 1803 1792 1804 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_previous",&obj0)) goto fail; … … 1826 1838 int arg2 ; 1827 1839 PyObject *result; 1828 PyObject * obj0 = 0 ;1840 PyObject * obj0 = 0 ; 1829 1841 1830 1842 if(!PyArg_ParseTuple(args,(char *)"Oi:Cursor_getRootNode",&obj0,&arg2)) goto fail; … … 1862 1874 PyObject *resultobj; 1863 1875 Cursor *arg1 = (Cursor *) 0 ; 1864 PyObject * obj0 = 0 ;1876 PyObject * obj0 = 0 ; 1865 1877 1866 1878 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_updateCurrentNode",&obj0)) goto fail; … … 1900 1912 PyObject *arg2 = (PyObject *) 0 ; 1901 1913 int arg3 ; 1902 PyObject * obj0 = 0 ;1903 PyObject * obj1 = 0 ;1914 PyObject * obj0 = 0 ; 1915 PyObject * obj1 = 0 ; 1904 1916 1905 1917 if(!PyArg_ParseTuple(args,(char *)"OOi:Cursor_updateRootNode",&obj0,&obj1,&arg3)) goto fail; … … 1940 1952 PyObject *arg2 = (PyObject *) 0 ; 1941 1953 char *result; 1942 PyObject * obj0 = 0 ;1943 PyObject * obj1 = 0 ;1954 PyObject * obj0 = 0 ; 1955 PyObject * obj1 = 0 ; 1944 1956 1945 1957 if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_rootNodeToString",&obj0,&obj1)) goto fail; … … 1969 1981 PyObject *arg2 = (PyObject *) 0 ; 1970 1982 char *result; 1971 PyObject * obj0 = 0 ;1972 PyObject * obj1 = 0 ;1983 PyObject * obj0 = 0 ; 1984 PyObject * obj1 = 0 ; 1973 1985 1974 1986 if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_nodeToString",&obj0,&obj1)) goto fail; … … 2009 2021 Node *arg2 = (Node *) 0 ; 2010 2022 char *result; 2011 PyObject * obj0 = 0 ;2012 PyObject * obj1 = 0 ;2023 PyObject * obj0 = 0 ; 2024 PyObject * obj1 = 0 ; 2013 2025 2014 2026 if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_outputVar",&obj0,&obj1)) goto fail; … … 2037 2049 Cursor *arg1 = (Cursor *) 0 ; 2038 2050 char *result; 2039 PyObject * obj0 = 0 ;2051 PyObject * obj0 = 0 ; 2040 2052 2041 2053 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_output",&obj0)) goto fail; … … 2063 2075 Cursor *arg1 = (Cursor *) 0 ; 2064 2076 char *arg2 ; 2065 PyObject * obj0 = 0 ;2077 PyObject * obj0 = 0 ; 2066 2078 2067 2079 if(!PyArg_ParseTuple(args,(char *)"Os:Cursor_add",&obj0,&arg2)) goto fail; … … 2089 2101 Cursor *arg1 = (Cursor *) 0 ; 2090 2102 Node *arg2 = (Node *) 0 ; 2091 PyObject * obj0 = 0 ;2092 PyObject * obj1 = 0 ;2103 PyObject * obj0 = 0 ; 2104 PyObject * obj1 = 0 ; 2093 2105 2094 2106 if(!PyArg_ParseTuple(args,(char *)"OO:Cursor_delVariation",&obj0,&obj1)) goto fail; … … 2116 2128 PyObject *resultobj; 2117 2129 Cursor *arg1 = (Cursor *) 0 ; 2118 PyObject * obj0 = 0 ;2130 PyObject * obj0 = 0 ; 2119 2131 2120 2132 if(!PyArg_ParseTuple(args,(char *)"O:Cursor_setFlags",&obj0)) goto fail; … … 2149 2161 intN *arg1 = (intN *) 0 ; 2150 2162 int arg2 ; 2151 PyObject * obj0 = 0 ;2163 PyObject * obj0 = 0 ; 2152 2164 2153 2165 if(!PyArg_ParseTuple(args,(char *)"Oi:intN_data_set",&obj0,&arg2)) goto fail; … … 2166 2178 intN *arg1 = (intN *) 0 ; 2167 2179 int result; 2168 PyObject * obj0 = 0 ;2180 PyObject * obj0 = 0 ; 2169 2181 2170 2182 if(!PyArg_ParseTuple(args,(char *)"O:intN_data_get",&obj0)) goto fail; … … 2183 2195 intN *arg1 = (intN *) 0 ; 2184 2196 intN *arg2 = (intN *) 0 ; 2185 PyObject * obj0 = 0 ;2186 PyObject * obj1 = 0 ;2197 PyObject * obj0 = 0 ; 2198 PyObject * obj1 = 0 ; 2187 2199 2188 2200 if(!PyArg_ParseTuple(args,(char *)"OO:intN_prev_set",&obj0,&obj1)) goto fail; … … 2202 2214 intN *arg1 = (intN *) 0 ; 2203 2215 intN *result; 2204 PyObject * obj0 = 0 ;2216 PyObject * obj0 = 0 ; 2205 2217 2206 2218 if(!PyArg_ParseTuple(args,(char *)"O:intN_prev_get",&obj0)) goto fail; … … 2220 2232 intN *arg2 = (intN *) 0 ; 2221 2233 intN *result; 2222 PyObject * obj1 = 0 ;2234 PyObject * obj1 = 0 ; 2223 2235 2224 2236 if(!PyArg_ParseTuple(args,(char *)"iO:new_intN",&arg1,&obj1)) goto fail; … … 2245 2257 PyObject *resultobj; 2246 2258 intN *arg1 = (intN *) 0 ; 2247 PyObject * obj0 = 0 ;2259 PyObject * obj0 = 0 ; 2248 2260 2249 2261 if(!PyArg_ParseTuple(args,(char *)"O:delete_intN",&obj0)) goto fail; … … 2278 2290 IntStack *arg1 = (IntStack *) 0 ; 2279 2291 intN *arg2 = (intN *) 0 ; 2280 PyObject * obj0 = 0 ;2281 PyObject * obj1 = 0 ;2292 PyObject * obj0 = 0 ; 2293 PyObject * obj1 = 0 ; 2282 2294 2283 2295 if(!PyArg_ParseTuple(args,(char *)"OO:IntStack_root_set",&obj0,&obj1)) goto fail; … … 2297 2309 IntStack *arg1 = (IntStack *) 0 ; 2298 2310 intN *result; 2299 PyObject * obj0 = 0 ;2311 PyObject * obj0 = 0 ; 2300 2312 2301 2313 if(!PyArg_ParseTuple(args,(char *)"O:IntStack_root_get",&obj0)) goto fail; … … 2337 2349 IntStack *arg1 = (IntStack *) 0 ; 2338 2350 int arg2 ; 2339 PyObject * obj0 = 0 ;2351 PyObject * obj0 = 0 ; 2340 2352 2341 2353 if(!PyArg_ParseTuple(args,(char *)"Oi:IntStack_push",&obj0,&arg2)) goto fail; … … 2362 2374 PyObject *resultobj; 2363 2375 IntStack *arg1 = (IntStack *) 0 ; 2364 PyObject * obj0 = 0 ;2376 PyObject * obj0 = 0 ; 2365 2377 2366 2378 if(!PyArg_ParseTuple(args,(char *)"O:IntStack_pop",&obj0)) goto fail; … … 2388 2400 IntStack *arg1 = (IntStack *) 0 ; 2389 2401 int result; 2390 PyObject * obj0 = 0 ;2402 PyObject * obj0 = 0 ; 2391 2403 2392 2404 if(!PyArg_ParseTuple(args,(char *)"O:IntStack_top",&obj0)) goto fail; … … 2414 2426 IntStack *arg1 = (IntStack *) 0 ; 2415 2427 bool result; 2416 PyObject * obj0 = 0 ;2428 PyObject * obj0 = 0 ; 2417 2429 2418 2430 if(!PyArg_ParseTuple(args,(char *)"O:IntStack_nonempty",&obj0)) goto fail; … … 2439 2451 PyObject *resultobj; 2440 2452 IntStack *arg1 = (IntStack *) 0 ; 2441 PyObject * obj0 = 0 ;2453 PyObject * obj0 = 0 ; 2442 2454 2443 2455 if(!PyArg_ParseTuple(args,(char *)"O:delete_IntStack",&obj0)) goto fail; … … 2472 2484 nodeN *arg1 = (nodeN *) 0 ; 2473 2485 Node *arg2 = (Node *) 0 ; 2474 PyObject * obj0 = 0 ;2475 PyObject * obj1 = 0 ;2486 PyObject * obj0 = 0 ; 2487 PyObject * obj1 = 0 ; 2476 2488 2477 2489 if(!PyArg_ParseTuple(args,(char *)"OO:nodeN_data_set",&obj0,&obj1)) goto fail; … … 2491 2503 nodeN *arg1 = (nodeN *) 0 ; 2492 2504 Node *result; 2493 PyObject * obj0 = 0 ;2505 PyObject * obj0 = 0 ; 2494 2506 2495 2507 if(!PyArg_ParseTuple(args,(char *)"O:nodeN_data_get",&obj0)) goto fail; … … 2508 2520 nodeN *arg1 = (nodeN *) 0 ; 2509 2521 nodeN *arg2 = (nodeN *) 0 ; 2510 PyObject * obj0 = 0 ;2511 PyObject * obj1 = 0 ;2522 PyObject * obj0 = 0 ; 2523 PyObject * obj1 = 0 ; 2512 2524 2513 2525 if(!PyArg_ParseTuple(args,(char *)"OO:nodeN_prev_set",&obj0,&obj1)) goto fail; … … 2527 2539 nodeN *arg1 = (nodeN *) 0 ; 2528 2540 nodeN *result; 2529 PyObject * obj0 = 0 ;2541 PyObject * obj0 = 0 ; 2530 2542 2531 2543 if(!PyArg_ParseTuple(args,(char *)"O:nodeN_prev_get",&obj0)) goto fail; … … 2545 2557 nodeN *arg2 = (nodeN *) 0 ; 2546 2558 nodeN *result; 2547 PyObject * obj0 = 0 ;2548 PyObject * obj1 = 0 ;2559 PyObject * obj0 = 0 ; 2560 PyObject * obj1 = 0 ; 2549 2561 2550 2562 if(!PyArg_ParseTuple(args,(char *)"OO:new_nodeN",&obj0,&obj1)) goto fail; … … 2572 2584 PyObject *resultobj; 2573 2585 nodeN *arg1 = (nodeN *) 0 ; 2574 PyObject * obj0 = 0 ;2586 PyObject * obj0 = 0 ; 2575 2587 2576 2588 if(!PyArg_ParseTuple(args,(char *)"O:delete_nodeN",&obj0)) goto fail; … … 2605 2617 NodeStack *arg1 = (NodeStack *) 0 ; 2606 2618 nodeN *arg2 = (nodeN *) 0 ; 2607 PyObject * obj0 = 0 ;2608 PyObject * obj1 = 0 ;2619 PyObject * obj0 = 0 ; 2620 PyObject * obj1 = 0 ; 2609 2621 2610 2622 if(!PyArg_ParseTuple(args,(char *)"OO:NodeStack_root_set",&obj0,&obj1)) goto fail; … … 2624 2636 NodeStack *arg1 = (NodeStack *) 0 ; 2625 2637 nodeN *result; 2626 PyObject * obj0 = 0 ;2638 PyObject * obj0 = 0 ; 2627 2639 2628 2640 if(!PyArg_ParseTuple(args,(char *)"O:NodeStack_root_get",&obj0)) goto fail; … … 2664 2676 NodeStack *arg1 = (NodeStack *) 0 ; 2665 2677 Node *arg2 = (Node *) 0 ; 2666 PyObject * obj0 = 0 ;2667 PyObject * obj1 = 0 ;2678 PyObject * obj0 = 0 ; 2679 PyObject * obj1 = 0 ; 2668 2680 2669 2681 if(!PyArg_ParseTuple(args,(char *)"OO:NodeStack_push",&obj0,&obj1)) goto fail; … … 2691 2703 PyObject *resultobj; 2692 2704 NodeStack *arg1 = (NodeStack *) 0 ; 2693 PyObject * obj0 = 0 ;2705 PyObject * obj0 = 0 ; 2694 2706 2695 2707 if(!PyArg_ParseTuple(args,(char *)"O:NodeStack_pop",&obj0)) goto fail; … … 2717 2729 NodeStack *arg1 = (NodeStack *) 0 ; 2718 2730 Node *result; 2719 PyObject * obj0 = 0 ;2731 PyObject * obj0 = 0 ; 2720 2732 2721 2733 if(!PyArg_ParseTuple(args,(char *)"O:NodeStack_top",&obj0)) goto fail; … … 2743 2755 NodeStack *arg1 = (NodeStack *) 0 ; 2744 2756 bool result; 2745 PyObject * obj0 = 0 ;2757 PyObject * obj0 = 0 ;
