Changeset 101 for trunk/nom


Ignore:
Timestamp:
Nov 25, 2006, 5:26:24 PM (19 years ago)
Author:
cinc
Message:

Call nomInit() on new class objects and object instances.

Location:
trunk/nom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom/class_c/nomcls.c

    r94 r101  
    4444
    4545#include "nomcls.ih"
    46 
    4746#include "nomclassmanager.h"
    4847
     
    7372    return NULLHANDLE;
    7473
     74  /* _nomInit() is called in _nomRenew() */
    7575  return _nomRenew(nomSelf, (CORBA_Object)nObj, NULLHANDLE); /* This will also init the object */
    7676}
     
    9999NOM_Scope CORBA_Object NOMLINK impl_NOMClass_nomRenew(NOMClass* nomSelf, const CORBA_Object nomObj, CORBA_Environment *ev)
    100100{
    101 
    102101  _nomRenewNoInit(nomSelf, nomObj, NULLHANDLE);
    103102
    104   /* call somDefaultInit() for initialization */
    105   /* _somDefaultInit((SOMObject*)obj); */
    106  
    107 #warning !!!!! No _nomInitialize() for new objects !!!!!
    108103  /* And now give the object the possibility to initialize... */
    109   //_nomInitialize((NOMObject*)nomObj);
     104  _nomInit((NOMObject*)nomObj, NULLHANDLE);
    110105 
    111106  return nomObj;
  • trunk/nom/src/nombuildclass.c

    r94 r101  
    5252
    5353/* Define if you want to have messages from somBuildClass() and friends */
    54 //#define DEBUG_NOMBUILDCLASS
     54#define DEBUG_NOMBUILDCLASS
    5555/* Define if you want to have messages from building NOMObject */
    5656//#define DEBUG_BUILDNOMOBJECT
     
    639639#endif
    640640
    641   /* nomClassReady() is called in nomBuildClass(), so don't call it here. */
     641  /* nomClassReady() is called in nomBuildClass(), so don't call it here. Same goes for _nomInit(). */
    642642  return nomClass;
    643643}
     
    857857#ifdef DEBUG_NOMBUILDCLASS
    858858          nomPrintf("%s: class is %x\n", nomClass->mtab->nomClassName, nomClass);
    859 #endif     
     859#endif   
     860          _nomInit(nomClass, NULLHANDLE);
    860861          _nomClassReady(nomClass, NULLHANDLE);
    861862        }
     
    873874        //#warning !!!!! No call of  _nomClassReady() here !!!!!
    874875        //#if 0
     876        _nomInit(nomClass, NULLHANDLE);
    875877        _nomClassReady(nomClass, NULLHANDLE);   
    876878        //#endif
     
    965967
    966968  //priv_addPrivClassToGlobalClassList(pGlobalNomEnv, nClass);
    967 
     969  _nomInit(nomClass, NULLHANDLE);
    968970  _nomClassReady(nomClass, NULLHANDLE);
    969971  return nomClass;
Note: See TracChangeset for help on using the changeset viewer.