Changeset 326 for trunk/nom/src/nomtkinit.c
- Timestamp:
- Apr 9, 2008, 10:22:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/src/nomtkinit.c
r284 r326 33 33 * ***** END LICENSE BLOCK ***** */ 34 34 35 #define INCL_DOS 36 #define INCL_DOSERRORS 37 #define INCL_DOSMEMMGR 38 #include <os2.h> 35 #ifdef __OS2__ 36 # define INCL_DOS 37 # define INCL_DOSERRORS 38 # define INCL_DOSMEMMGR 39 # include <os2.h> 40 #endif /* __OS2__ */ 39 41 40 42 #include <stdarg.h> … … 59 61 PNOM_ENV pGlobalNomEnv; 60 62 /* Global class manager object */ 61 NOMClassMgr* NOMClassMgrObject=NULL HANDLE; /* Referenced from different files */63 NOMClassMgr* NOMClassMgrObject=NULL; /* Referenced from different files */ 62 64 63 65 gboolean fInitialized=FALSE; … … 80 82 { 81 83 if(NOMClassMgrObject) 82 return NOMClassMgr_nomIsObject(NOMClassMgrObject, (PNOMObject)nomObj, NULL HANDLE);84 return NOMClassMgr_nomIsObject(NOMClassMgrObject, (PNOMObject)nomObj, NULL); 83 85 84 86 if(!nomObj) … … 104 106 NOMEXTERN PNOM_ENV NOMLINK nomTkInit(void) 105 107 { 106 PVOIDmemPtr;108 void *memPtr; 107 109 108 110 if(pGlobalNomEnv) … … 170 172 171 173 /* Now register the classes we already have */ 172 _nomClassReady(pGlobalNomEnv->defaultMetaClass, NULL HANDLE); //NOMClass173 _nomClassReady( _NOMClassMgr, NULL HANDLE); //NOMClassMgr174 _nomClassReady(pGlobalNomEnv->defaultMetaClass, NULL); //NOMClass 175 _nomClassReady( _NOMClassMgr, NULL); //NOMClassMgr 174 176 ncPriv=(NOMClassPriv*)pGlobalNomEnv->nomObjectMetaClass->mtab->nomClsInfo; 175 177 176 178 /* Do not register the NOMObject metaclass here. It's already registered because it's 177 179 NOMClass in fact. */ 178 _nomClassReady(_NOMObject, NULL HANDLE); //NOMObject180 _nomClassReady(_NOMObject, NULL); //NOMObject 179 181 180 182 … … 186 188 187 189 nomPrintf("\nCalling _nomTestFunc_NOMTest2() 1\n", nomTst2Obj); 188 _nomTestFunc_NOMTest2(nomTst2Obj, NULL HANDLE);190 _nomTestFunc_NOMTest2(nomTst2Obj, NULL); 189 191 nomPrintf("\nCalling _nomTestFuncString_NOMTest2() 1\n", nomTst2Obj); 190 nomPrintf("--> %s\n",_nomTestFuncString_NOMTest2(nomTst2Obj, NULL HANDLE));192 nomPrintf("--> %s\n",_nomTestFuncString_NOMTest2(nomTst2Obj, NULL)); 191 193 nomPrintf("\nCalling _nomTestFunc_NOMTest2() 2\n", nomTst2Obj); 192 _nomTestFunc_NOMTest2(nomTst2Obj, NULL HANDLE);194 _nomTestFunc_NOMTest2(nomTst2Obj, NULL); 193 195 194 196 nomPrintf("\nCalling _nomTestFunc() with NOMTest2 object: %x\n", nomTst2Obj); 195 _nomTestFunc(nomTst2Obj, NULL HANDLE);197 _nomTestFunc(nomTst2Obj, NULL); 196 198 nomPrintf("\nCalling _nomTestFuncString() with NOMTest2: %x\n", nomTst2Obj); 197 nomPrintf("--> %s\n",_nomTestFuncString(nomTst2Obj, NULL HANDLE));199 nomPrintf("--> %s\n",_nomTestFuncString(nomTst2Obj, NULL)); 198 200 nomPrintf("\n"); 199 _nomTestFunc(nomTst2Obj, NULL HANDLE);200 _nomTestFunc_NOMTest2(nomTst2Obj, NULL HANDLE);201 _nomTestFunc(nomTst2Obj, NULL); 202 _nomTestFunc_NOMTest2(nomTst2Obj, NULL); 201 203 #endif 202 204 /* This must be done last! */
Note:
See TracChangeset
for help on using the changeset viewer.