27 #ifdef _DEBUG_OS_ALLOC
60 typedef struct st_Alloc_elt
65 APP_DWORD dwLineNumber;
67 }ST_ALLOC_ELT, * PST_ALLOC_ELT , APP_FAR * LPST_ALLOC_ELT;
69 #define ALLOC_TAKE_MUTEX StackEnterX(OS_MUTEX_USER1)
70 #define ALLOC_GIVE_MUTEX StackExitX(OS_MUTEX_USER1)
72 typedef struct _st_alloc_debug_elt
75 ST_ALLOC_ELT stFspmElt[_DEBUG_MAX_ALLOC_];
79 APP_WORD FreeAllocList (APP_VOID);
80 extern st_alloc_debug_elt _alloc_debug_elt;
81 #define OsAlloc(a,b,c) _OsAllocDebug(a,b,c,__FILE__,__LINE__)
82 #define OsFree(a) _OsFreeDebug(a,__FILE__,__LINE__)
85 #define OsAlloc(a,b,c) _OsAlloc(a,b,c)
86 #define OsFree(a) _OsFree(a)
90 APP_VOID APP_FAR list_node_destroy (APP_LPVOID pData);
91 APP_VOID StackEnterX(APP_DWORD dwSyncId);
92 APP_VOID StackExitX(APP_DWORD dwSyncId);
95 #define OS_ENTER() StackEnterX(OS_MUTEX_MSG)
96 #define OS_EXIT() StackExitX(OS_MUTEX_MSG)
Definition: schedule.h:96