Changeset 1527 for trunk/lang/python/Rappture
- Timestamp:
- Jun 22, 2009, 12:38:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lang/python/Rappture/PyRpLibrary.cc
r1326 r1527 28 28 29 29 static PyObject *ErrorObject; 30 RpLibrary * RpLibraryObject_AsLibrary(PyObject *lib);31 static PyObject * RpLibraryObject_FromLibrary(RpLibrary *lib);32 int boolAsInt(const char * inVal, int*outVal);33 int boolIntFromPyObject ( PyObject * inPyObj, const char*defaultVal,34 const char * argName, int*boolVal);35 int getArgCount ( PyObject * args, PyObject* keywds, int*argc);30 RpLibrary * RpLibraryObject_AsLibrary(PyObject *lib); 31 static PyObject * RpLibraryObject_FromLibrary(RpLibrary *lib); 32 int boolAsInt(const char *inVal, int *outVal); 33 int boolIntFromPyObject ( PyObject *inPyObj, const char *defaultVal, 34 const char *argName, int *boolVal); 35 int getArgCount ( PyObject *args, PyObject *keywds, int *argc); 36 36 37 37 typedef struct { 38 38 PyObject_HEAD 39 RpLibrary *lib;39 RpLibrary *lib; 40 40 } RpLibraryObject; 41 41 … … 87 87 } 88 88 89 static PyObject *89 static PyObject * 90 90 RpLibraryObject_new(PyTypeObject *type, PyObject *args, PyObject *kwds) 91 91 { … … 149 149 delete(self->lib); 150 150 } 151 self->ob_type->tp_free((PyObject *) self);151 self->ob_type->tp_free((PyObject *) self); 152 152 } 153 153 } … … 169 169 "); 170 170 171 static PyObject *171 static PyObject * 172 172 RpLibraryObject_copy(RpLibraryObject *self, PyObject *args, PyObject *keywds) 173 173 { … … 178 178 PyObject *fromobj = (PyObject *) self; 179 179 180 static char *kwlist[] = { 181 182 183 (char *)"fromobj", 184 180 static char *kwlist[] = { 181 (char *)"topath", 182 (char *)"frompath", 183 (char *)"fromobj", 184 NULL 185 185 }; 186 186 … … 252 252 "); 253 253 254 static PyObject *254 static PyObject * 255 255 RpLibraryObject_element(RpLibraryObject *self, PyObject *args, PyObject *keywds) 256 256 { … … 263 263 264 264 static char *kwlist[] = { 265 (char *)"path", 266 (char *)"as", 267 265 (char *)"path", 266 (char *)"as", 267 NULL 268 268 }; 269 269 … … 340 340 "); 341 341 342 static PyObject *342 static PyObject * 343 343 RpLibraryObject_get(RpLibraryObject *self, PyObject *args, PyObject *keywds) 344 344 { … … 356 356 357 357 static char *kwlist[] = { 358 359 (char *)"decode", 360 358 (char *)"path", 359 (char *)"decode", 360 NULL 361 361 }; 362 362 … … 432 432 "); 433 433 434 static PyObject *434 static PyObject * 435 435 RpLibraryObject_parent(RpLibraryObject *self, PyObject *args, PyObject *keywds) 436 436 { … … 443 443 444 444 static char *kwlist[] = { 445 (char *)"path", 446 (char *)"as", 447 445 (char *)"path", 446 (char *)"as", 447 NULL 448 448 }; 449 449 … … 531 531 "); 532 532 533 static PyObject *533 static PyObject * 534 534 RpLibraryObject_put(RpLibraryObject *self, PyObject *args, PyObject *keywds) 535 535 { … … 555 555 556 556 static char *kwlist[] = { 557 558 559 560 561 562 (char *)"compress", 563 557 (char *)"path", 558 (char *)"value", 559 (char *)"id", 560 (char *)"append", 561 (char *)"type", 562 (char *)"compress", 563 NULL 564 564 }; 565 565 … … 827 827 * used to create a RpLibrary object from a PyObject 828 828 */ 829 RpLibrary *829 RpLibrary * 830 830 RpLibraryObject_AsLibrary(PyObject *lib) 831 831 { 832 RpLibrary *retval = NULL;832 RpLibrary *retval = NULL; 833 833 834 834 if (lib != NULL) { … … 843 843 * used to create a PyObject from a RpLibrary object 844 844 */ 845 PyObject *845 PyObject * 846 846 RpLibraryObject_FromLibrary(RpLibrary *lib) 847 847 { … … 883 883 884 884 int 885 boolAsInt(const char * inVal, int*outVal)885 boolAsInt(const char *inVal, int *outVal) 886 886 { 887 887 int len = 0; … … 936 936 int 937 937 boolIntFromPyObject ( 938 PyObject *inPyObj,939 const char *defaultVal,940 const char *argName,941 int *boolVal938 PyObject *inPyObj, 939 const char *defaultVal, 940 const char *argName, 941 int *boolVal 942 942 ) 943 943 { 944 944 int status = -1; 945 PyObject *inStrObj = NULL;946 char *inStr = NULL;945 PyObject *inStrObj = NULL; 946 char *inStr = NULL; 947 947 948 948 if ( (defaultVal == NULL) || … … 983 983 984 984 int getArgCount ( 985 PyObject *args,986 PyObject *keywds,987 int *argc985 PyObject *args, 986 PyObject *keywds, 987 int *argc 988 988 ) 989 989 {
Note: See TracChangeset
for help on using the changeset viewer.