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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.