Changeset 185 for trunk/nom


Ignore:
Timestamp:
Jan 13, 2007, 12:33:14 PM (19 years ago)
Author:
cinc
Message:

Fixes and enhancements.

Location:
trunk/nom
Files:
7 edited

Legend:

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

    r179 r185  
    8585}
    8686
     87/*
     88  Gets the class object of this object.
     89*/
    8790NOM_Scope PNOMClass NOMLINK impl_NOMObject_nomGetClass(NOMObject* nomSelf, CORBA_Environment *ev)
    8891{
     
    9497/*
    9598  Create a new class of the kind the caller is. This method ensures that subclasses
    96   are properly handled without the need to override this class in every subclass.
     99  are properly handled without the need to override this method in every subclass.
    97100 */
    98101NOM_Scope PNOMObject NOMLINK impl_NOMObject_new(NOMObject* nomSelf, CORBA_Environment *ev)
  • trunk/nom/exports.def

    r159 r185  
    88        NOMCalloc               @3
    99        NOMFree         
    10 ;       somIsObj               
     10        nomIsObj               
    1111
    1212        nomInitGarbageCollection
  • trunk/nom/idl/nombase.idl

    r179 r185  
    7272native  gpointer;
    7373native  PGData;
     74native  PGTree;
     75
    7476native  nomId; /* This is a typedef for a GQuark */
     77
    7578#endif /* NOMBASE_IDL_INCLUDED */
    7679
  • trunk/nom/include/nom.h

    r179 r185  
    109109typedef GQuark nomId;
    110110
    111 typedef GData* PGData;
     111typedef GData*  PGData;
    112112typedef gulong* pgulong;
     113typedef GTree*  PGTree;
    113114
    114115typedef gchar **nomID;                 /* This will be reomoved later. Don't use anymore */
  • trunk/nom/include/nomapi.h

    r94 r185  
    154154                                            gulong ulMajorVersion,
    155155                                            gulong ulMinorVersion);
     156
     157//#define nomIsObj(a) ((a)!= 0)
    156158#endif /* NOMAPI_H_INCLUDED */
    157159
  • trunk/nom/include/nomtk.h

    r160 r185  
    6868NOMEXTERN boolean NOMLINK NOMFree(const nomToken memPtr);
    6969NOMEXTERN nomToken NOMLINK  NOMCalloc(const ULONG num, const ULONG size);
    70 NOMEXTERN boolean NOMLINK nomIsObj(NOMObject * nomObj);
     70NOMEXTERN gboolean NOMLINK nomIsObj(NOMObject * nomObj);
    7171NOMEXTERN int NOMLINK nomPrintf(string chrFormat, ...);
    7272NOMEXTERN NOMClassMgr * NOMLINK nomEnvironmentNew (void);
  • trunk/nom/src/nomtkinit.c

    r158 r185  
    6969
    7070/*
    71 
     71  Some of these functions should be moved to other source files...
    7272 */
     73
     74NOMEXTERN gboolean NOMLINK nomIsObj(NOMObject*nomObj)
     75{
     76  if(!nomObj)
     77    return FALSE;
     78
     79  return TRUE;
     80}
     81
    7382NOMEXTERN int NOMLINK nomPrintf(string chrFormat, ...)
    7483{
Note: See TracChangeset for help on using the changeset viewer.