Changeset 326 for trunk/nom/src/nomdebug.c
- Timestamp:
- Apr 9, 2008, 10:22:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/src/nomdebug.c
r281 r326 33 33 * ***** END LICENSE BLOCK ***** */ 34 34 35 #define INCL_DOS 36 #define INCL_DOSFILEMGR 37 #define INCL_DOSERRORS 38 #define INCL_WIN 39 #define INCL_WINWORKPLACE 40 #define INCL_OS2MM 41 #define INCL_MMIOOS2 42 #define INCL_MCIOS2 43 #define INCL_GPI 44 #define INCL_PM 45 46 #include <os2.h> 35 #ifdef __OS2__ 36 # define INCL_DOS 37 # define INCL_DOSFILEMGR 38 # define INCL_DOSERRORS 39 # define INCL_WIN 40 # define INCL_WINWORKPLACE 41 # define INCL_OS2MM 42 # define INCL_MMIOOS2 43 # define INCL_MCIOS2 44 # define INCL_GPI 45 # define INCL_PM 46 # include <os2.h> 47 #endif /* __OS2__ */ 48 47 49 #include <stdarg.h> 48 50 #include <stdio.h> … … 65 67 g_error("The object used to call the method %s is not a valid NOM object. ", chrMethodName); 66 68 else 67 g_error("The object for which the method %s should be called is not valid for this method.\nThe object must be some instance of class %s (or of a subclass) but is a %s.", chrMethodName, NOMClass_nomGetCreatedClassName(nomClass, NULL HANDLE),68 NOMObject_nomGetClassName(nomObject, NULL HANDLE));69 g_error("The object for which the method %s should be called is not valid for this method.\nThe object must be some instance of class %s (or of a subclass) but is a %s.", chrMethodName, NOMClass_nomGetCreatedClassName(nomClass, NULL), 70 NOMObject_nomGetClassName(nomObject, NULL)); 69 71 } 70 72 } … … 114 116 115 117 // g_message("In %s with %s %px nomClass: %px (%s)", __FUNCTION__, chrMethodName, nomSelf, nomClass, nomClass->mtab->nomClassName); 116 if(!nomIsObj(nomSelf) || !_nomIsANoClsCheck(nomSelf, nomClass, NULL HANDLE))118 if(!nomIsObj(nomSelf) || !_nomIsANoClsCheck(nomSelf, nomClass, NULL)) 117 119 { 118 120 nomPrintObjectPointerErrorMsg(nomSelf, nomClass, chrMethodName); … … 154 156 nomPrintf("----- %s ----- NOMClassMgrObject: %lx\n", __FUNCTION__, NOMClassMgrObject); 155 157 156 pgdata=_nomGetClassList(NOMClassMgrObject, NULL HANDLE);158 pgdata=_nomGetClassList(NOMClassMgrObject, NULL); 157 159 if(pgdata){ 158 160 nomPrintf("%s: classlist: %lx\n", __FUNCTION__, pgdata); … … 176 178 nomPrintf("explicitMetaId (meta class): %s\n", *sci->nomExplicitMetaId); 177 179 else 178 nomPrintf("explicitMetaId (meta class): NULL HANDLE\n");180 nomPrintf("explicitMetaId (meta class): NULL\n"); 179 181 // somPrintf("*parents: 0x%x\n", sci->parents); 180 182 nomPrintf("somClassDataStructure cds: 0x%x\n",sci->nomCds); … … 190 192 191 193 192 void _dumpClassDataStruct(nomClassDataStructure* cds, ULONGulNumMethods)194 void _dumpClassDataStruct(nomClassDataStructure* cds, gulong ulNumMethods) 193 195 { 194 196 int a; … … 215 217 nomPrintf(" instanceSize (this and all parents): %d 0x%x\n", mtab->ulInstanceSize, mtab->ulInstanceSize); 216 218 nomPrintf(" mtabSize: %d 0x%x\n", mtab->mtabSize, mtab->mtabSize); 217 nomPrintf(" somMethodProcs: (%ld)\n", (mtab->mtabSize-( LONG)sizeof(nomMethodTab))/4);219 nomPrintf(" somMethodProcs: (%ld)\n", (mtab->mtabSize-(glong)sizeof(nomMethodTab))/4); 218 220 // entries=sObj->mtab->entries[0]; 219 221 for(a=0; a<=(mtab->mtabSize-sizeof(nomMethodTab))/4; a++) … … 234 236 nomPrintf("*classInfo: 0x%x\n", *sObj->mtab->nomClsInfo); 235 237 236 so=( ULONG*)sObj->mtab->classInfo;238 so=(gulong*)sObj->mtab->classInfo; 237 239 #endif 238 240 nomPrintf("className: %s\n", sObj->mtab->nomClassName); … … 249 251 250 252 #if 0 251 void _dumpStaticMTab(somStaticMethod_t* smt, ULONGulMethod)253 void _dumpStaticMTab(somStaticMethod_t* smt, gulong ulMethod) 252 254 { 253 255 somStaticMethod_t* tmpSmt=&smt[ulMethod]; … … 262 264 } 263 265 264 void _dumpOverrideMTab(somOverrideMethod_t* omt, ULONGulMethod)266 void _dumpOverrideMTab(somOverrideMethod_t* omt, gulong ulMethod) 265 267 { 266 268 somOverrideMethod_t* tmpOmt=&omt[ulMethod]; … … 300 302 tempPtr=(void*)tempPtr->next->mtab; 301 303 else 302 tempPtr=NULL HANDLE;304 tempPtr=NULL; 303 305 } 304 306 … … 400 402 somPrintf(" instanceSize (this and all parents): %d 0x%x\n", sObj->mtab->instanceSize, sObj->mtab->instanceSize); 401 403 somPrintf(" mtabSize: %d 0x%x\n", sObj->mtab->mtabSize, sObj->mtab->mtabSize); 402 somPrintf(" somMethodProcs: (%ld)\n", (sObj->mtab->mtabSize-( LONG)sizeof(somMethodTab))/4);404 somPrintf(" somMethodProcs: (%ld)\n", (sObj->mtab->mtabSize-(glong)sizeof(somMethodTab))/4); 403 405 // entries=sObj->mtab->entries[0]; 404 406 for(a=0; a<=(sObj->mtab->mtabSize-sizeof(somMethodTab))/4; a++)
Note:
See TracChangeset
for help on using the changeset viewer.