X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=NetWare%2Fnwtinfo.h;h=25d78a720fb6b394eb1907ed77ddd0b00c3849f4;hb=c067b4bea65bd7b97b0ae4f7b058dd94b44a4c48;hp=6930e05ebe08b84882eaa7f5c91e2ec5282b120d;hpb=2986a63f7e513cf37f46db9f211b77071260031f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/NetWare/nwtinfo.h b/NetWare/nwtinfo.h index 6930e05..25d78a7 100644 --- a/NetWare/nwtinfo.h +++ b/NetWare/nwtinfo.h @@ -8,11 +8,11 @@ */ /* - * FILENAME : NWTInfo.h - * DESCRIPTION : Thread-local storage for Perl. - * Author : SGP, HYAK - * Date : January 2001. - * + * FILENAME : NWTInfo.h + * DESCRIPTION : Thread-local storage for Perl. + * Author : SGP, HYAK + * Date Created : January 2001. + * Date Modified: July 2nd 2001. */ @@ -31,18 +31,27 @@ typedef struct tagThreadInfo void* m_allocList; }ThreadInfo; - void fnInitializeThreadInfo(void); BOOL fnTerminateThreadInfo(void); -BOOL fnRegisterWithThreadTable(void); -BOOL fnUnregisterWithThreadTable(void); ThreadInfo* fnAddThreadInfo(int tid); BOOL fnRemoveThreadInfo(int tid); ThreadInfo* fnGetThreadInfo(int tid); -//For storing and retrieving Watcom Hash list address -BOOL fnInsertHashListAddrs(void *addrs, BOOL dontTouchHashList); +#ifdef __cplusplus + //For storing and retrieving Watcom Hash list address + extern "C" BOOL fnInsertHashListAddrs(void *addrs, BOOL dontTouchHashList); + //Registering with the Thread table + extern "C" BOOL fnRegisterWithThreadTable(void); + extern "C" BOOL fnUnregisterWithThreadTable(void); +#else + //For storing and retrieving Watcom Hash list address + BOOL fnInsertHashListAddrs(void *addrs, BOOL dontTouchHashList); + //Registering with the Thread table + BOOL fnRegisterWithThreadTable(void); + BOOL fnUnregisterWithThreadTable(void); +#endif + BOOL fnGetHashListAddrs(void **addrs, BOOL *dontTouchHashList); //New TLS to set and get the thread contex - may be redundant,