Changeset 326 for trunk/nom/include
- Timestamp:
- Apr 9, 2008, 10:22:08 PM (18 years ago)
- Location:
- trunk/nom/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nom/include/nom.h
r281 r326 43 43 #define NOMEXTERN extern "C" 44 44 #else 45 45 #define NOMEXTERN extern 46 46 #endif 47 47 #endif … … 65 65 #define NOMDLINK 66 66 67 /** @def NOMDLLEXPORT 68 * Used for exporting a symbol. 69 * See __declspec(dllexport) in the Visual C++ reference for details. */ 70 /** @def NOMDLLIMPORT 71 * Used for importing a symbol from a DLL/so. 72 * See __declspec(dllimport) in the Visual C++ reference for details. */ 73 #if defined(_WIN32) || (defined(__OS2__) && defined(__GNUC__) && defined(__declspec)) 74 # define NOMDLLEXPORT __declspec(dllexport) 75 # define NOMDLLIMPORT __declspec(dllimport) 76 #elif defined(__GNUC__) 77 # if __GNUC__ >= 4 78 # define NOMDLLEXPORT __attribute__((visibility("default"))) 79 # else 80 # define NOMDLLEXPORT 81 # endif 82 # define NOMDLLIMPORT 83 #else 84 # define NOMDLLEXPORT 85 # define NOMDLLIMPORT 86 #endif 87 67 88 typedef void* NOMLINK nomMethodProc(void*); 68 89 69 90 #ifndef NULL 70 #define NULL ((void *) 0) 91 # ifdef __cplusplus 92 # define NULL 0 93 # else 94 # define NULL ((void *) 0) 95 # endif 71 96 #endif 72 97 -
trunk/nom/include/nomapi.h
r294 r326 91 91 typedef struct nomStaticMethodDescStruct { 92 92 nomMToken *nomMAddressInClassData; /* Method token in class data struct */ 93 nomID nomMethodId; /* This is a 'gchar**' pointing to something like 93 nomID nomMethodId; /* This is a 'gchar**' pointing to something like 94 94 "wpQueryContainerHandle" */ 95 95 char** chrMethodDescriptor; /* This points to something like: 96 96 "WPFolderWindow:wpQueryContainerHandle" */ 97 nomMethodProc *nomMethod; /* Address of the function implementing this 97 nomMethodProc *nomMethod; /* Address of the function implementing this 98 98 method. */ 99 99 nomParmInfo *pParamInfo; /* Information about the parameter types */ … … 140 140 typedef struct 141 141 { 142 ULONGthunk[4];142 gulong thunk[4]; 143 143 }nomMethodThunk; 144 144 … … 150 150 data and methods. Note that the name may be slightly misleading. This structure is not 151 151 limited to objects/classes which are related to NOMClass. It's a structure used by every NOM 152 class (be it a normal class or a meta class). 152 class (be it a normal class or a meta class). 153 153 */ 154 typedef struct 154 typedef struct 155 155 { 156 156 nomMethodTab *mtab; /* This is the mtab for this class it points to thisMtab at the … … 164 164 nomStaticClassInfo *sci; /* Class description */ 165 165 /* FIXME: the following list may be obsolete maybe when we just use the parentMtabStruc?? */ 166 nomMethodTabList mtabList; /* The (private) internal list of mtabs we maintain 166 nomMethodTabList mtabList; /* The (private) internal list of mtabs we maintain 167 167 struct nomMethodTabList { 168 168 nomMethodTab *mtab; /mtab for this class … … 189 189 gulong fFlags; 190 190 gpointer pReserved1; 191 gpointer pReserved2; 191 gpointer pReserved2; 192 192 }nomEnvironment; 193 193 -
trunk/nom/include/nomgc.h
r284 r326 39 39 { 40 40 GSList* dllList; 41 #ifdef __OS2__ 41 42 qsPtrRec_t * pMainAnchor; 43 #endif 42 44 }REGDLL,*HREGDLL; 43 45 44 46 /* Garbage collector */ 47 #ifdef __OS2__ 45 48 void _System nomInitGarbageCollection(void* pMemPtr); //The parameter will go away 49 #else 50 void nomInitGarbageCollection(void* pMemPtr); //The parameter will go away 51 #endif 46 52 NOMEXTERN HREGDLL NOMLINK nomBeginRegisterDLLWithGC(void); 47 53 NOMEXTERN void NOMLINK nomEndRegisterDLLWithGC(const HREGDLL hRegisterDLL ); 48 NOMEXTERN BOOLNOMLINK nomRegisterDLLByName(const HREGDLL hRegisterDLL, const char* chrDLLName);54 NOMEXTERN gboolean NOMLINK nomRegisterDLLByName(const HREGDLL hRegisterDLL, const char* chrDLLName); 49 55 NOMEXTERN void NOMLINK nomRegisterDataAreaForGC(char* pStart, char* pEnd); 50 56 #if 0 51 NOMEXTERN BOOLNOMLINK nomRegisterDLLByHandle(const HREGDLL hRegisterDLL, const gpointer pDLLHandle);57 NOMEXTERN gboolean NOMLINK nomRegisterDLLByHandle(const HREGDLL hRegisterDLL, const gpointer pDLLHandle); 52 58 #endif 53 59 54 NOMEXTERN BOOLNOMLINK nomQueryUsingNameIsDLLRegistered(const gchar *chrName);60 NOMEXTERN gboolean NOMLINK nomQueryUsingNameIsDLLRegistered(const gchar *chrName); 55 61 56 62 #endif /* NOMGC_H_INCLUDED */ -
trunk/nom/include/nomtk.h
r255 r326 46 46 /* That's the base structure of all the SOM stuff */ 47 47 typedef struct _nomEnv { 48 ULONG cbSize; /* Size of this struct */ 49 PVOID pMemPool; /* Shared memory heap for sub alloc */ 48 gulong cbSize; /* Size of this struct */ 49 void *pMemPool; /* Shared memory heap for sub alloc */ 50 #ifdef __OS2__ 50 51 HMTX hmtx_obsolete; /* Mutex sem to protect this structure -Will go away! */ 51 ULONG ulNumRegIds; /* Number of registered somIDs */ 52 #else 53 /* PORTME */ 54 #endif 55 gulong ulNumRegIds; /* Number of registered somIDs */ 52 56 NOMClassPriv *ncpNOMObject; /* This is for NOMObject*/ 53 57 nomClasses livingMetaClasses; /* List of created meta classes. */ … … 65 69 NOMEXTERN PNOM_ENV NOMLINK nomTkInit(void); 66 70 67 NOMEXTERN nomToken NOMLINK NOMMalloc(const ULONGsize);71 NOMEXTERN nomToken NOMLINK NOMMalloc(const gulong size); 68 72 NOMEXTERN boolean NOMLINK NOMFree(const nomToken memPtr); 69 NOMEXTERN nomToken NOMLINK NOMCalloc(const ULONG num, const ULONGsize);73 NOMEXTERN nomToken NOMLINK NOMCalloc(const gulong num, const gulong size); 70 74 //NOMEXTERN gboolean NOMLINK nomIsObj(NOMObject * nomObj); 71 75 NOMEXTERN gboolean NOMLINK nomIsObj(gpointer nomObj); … … 80 84 81 85 /* Functions used by nomBuildClass() */ 82 ULONGpriv_requestSomEnvMutex(PNOM_ENV pEnv);83 ULONGpriv_releaseSomEnvMutex(PNOM_ENV pEnv);84 BOOLpriv_addPrivClassToGlobalClassList(PNOM_ENV pEnv, NOMClassPriv * nClass);86 gulong priv_requestSomEnvMutex(PNOM_ENV pEnv); 87 gulong priv_releaseSomEnvMutex(PNOM_ENV pEnv); 88 gboolean priv_addPrivClassToGlobalClassList(PNOM_ENV pEnv, NOMClassPriv * nClass); 85 89 NOMClassPriv* priv_findPrivClassInGlobalClassListFromName(PNOM_ENV pEnv, char* nClass); 86 90 … … 114 118 #endif 115 119 116 void _dumpClassDataStruct(nomClassDataStructure* cds, ULONGulNumMethods);120 void _dumpClassDataStruct(nomClassDataStructure* cds, gulong ulNumMethods); 117 121 void _dumpSci(nomStaticClassInfo* sci); 118 122 void _dumpMtab(nomMethodTab* mtab);
Note:
See TracChangeset
for help on using the changeset viewer.