Changeset 222 for trunk/nom/class_c
- Timestamp:
- Feb 4, 2007, 10:26:27 AM (19 years ago)
- Location:
- trunk/nom/class_c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/class_c/nomclassmanager.c
r221 r222 89 89 mtab=g_datalist_get_data(&_gdataClassList, className); 90 90 91 nomPrintf("-----> %s %s %x\n", __FUNCTION__, className, mtab);91 //nomPrintf("-----> %s %s %x\n", __FUNCTION__, className, mtab); 92 92 93 93 if(mtab){ … … 225 225 } 226 226 227 /** 228 \brief Function which implements the nomSubstituteClass() method of NOMClassMgr. 229 */ 230 NOM_Scope CORBA_boolean NOMLINK impl_NOMClassMgr_nomSubstituteClass(NOMClassMgr* nomSelf, 231 const CORBA_char * oldClass, 232 const CORBA_char * replacementClass, 233 CORBA_Environment *ev) 234 { 235 /* NOMClassMgrData* nomThis=NOMClassMgrGetData(nomSelf); */ 236 NOMObject* oClass; 237 NOMObject* rClass; 238 239 if((oClass=_nomFindClassFromName( nomSelf, oldClass, 0, 0, NULLHANDLE))==NULLHANDLE) 240 return FALSE; 241 242 if((rClass=_nomFindClassFromName( nomSelf, replacementClass, 0, 0, NULLHANDLE))==NULLHANDLE) 243 return FALSE; 244 245 /* Save old class object pointer. Hmm, maybe not it's still in the old parentMtab */ 246 247 /* Change the class object pointer in the nomClassDataStructure */ 248 249 /* Reregister old class with new mtab in the internal list. Make sure we don't get 250 a warning by GLib */ 251 252 return FALSE; 253 } 254 227 255 static 228 256 int nomClassMgrCompareFunc(gconstpointer a, gconstpointer b) -
trunk/nom/class_c/nomobj.c
r219 r222 45 45 46 46 #include "nomobj.ih" 47 48 #include "gc.h" 47 49 48 50 /** … … 95 97 { 96 98 /* NOMObjectData* nomThis=NOMObjectGetData(nomSelf); */ 99 GC_PTR oldData; 100 GC_finalization_proc oldFinalizerFunc; 101 NOMClassPriv *ncp; 102 103 /* Unregister finalizer if the class uses nomUnInit. This is done so nomUnInit isn't 104 called again when the memory is eventually collected by the GC. */ 105 ncp=(NOMClassPriv*)nomSelf->mtab->nomClsInfo; 106 if(ncp->ulClassFlags & NOM_FLG_NOMUNINIT_OVERRIDEN){ 107 /* A NULL finalizer function removes the finalizer */ 108 GC_register_finalizer(nomSelf, NULL, NULL, &oldFinalizerFunc, &oldData); 109 } 97 110 98 111 /* Give object the chance to free resources */
Note:
See TracChangeset
for help on using the changeset viewer.