Changeset 1077 for trunk/dll/fortify.h
- Timestamp:
- Jul 18, 2008, 8:11:54 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/dll/fortify.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/fortify.h
r1072 r1077 42 42 43 43 /* 06 May 08 SHL Rework scope logic to be MT capable 44 17 Jul 08 SHL Add Fortify_SetOwner Fortify_ChangeOwner 44 17 Jul 08 SHL Add Fortify_SetOwner Fortify_ChangeOwner Fortify_ChangeScope 45 45 */ 46 46 … … 190 190 191 191 #ifdef MT_SCOPES 192 void Fortify_SetOwner(long lOwnerTID); 193 void Fortify_ChangeOwner(void *pBlock); 192 void Fortify_SetOwner(long lOwnerTID); 193 void Fortify_ChangeOwner(void *pBlock); 194 void Fortify_ChangeScope(void *pBlock, int delta); 194 195 #endif 195 196 … … 228 229 */ 229 230 #ifdef FORTIFY_PROVIDE_ARRAY_NEW 230 void *operator new[](size_t size);231 void *operator new[](size_t size, const char *file, unsigned long line); // 16 Jan 08 SHL231 void *operator new[](size_t size); 232 void *operator new[](size_t size, const char *file, unsigned long line); // 16 Jan 08 SHL 232 233 #endif 233 234 … … 236 237 */ 237 238 #ifdef FORTIFY_PROVIDE_ARRAY_DELETE 238 void operator delete[](void *pointer);239 void operator delete[](void *pointer); 239 240 #endif 240 241 … … 266 267 /* Fortify versions of some non-ANSI C memory allocation functions */ 267 268 #ifdef FORTIFY_STRDUP 268 #define strdup(ptr) Fortify_strdup(ptr, __FILE__, __LINE__)269 #define strdup(ptr) Fortify_strdup(ptr, __FILE__, __LINE__) 269 270 #endif 270 271 271 272 /* Fortify versions of new and delete */ 272 273 #ifdef __cplusplus 273 #define Fortify_New new(__FILE__, __LINE__)274 #define Fortify_Delete for(gbl_FortifyMagic = 1, \275 Fortify_PreDelete(__FILE__, __LINE__); \276 gbl_FortifyMagic; Fortify_PostDelete()) \277 gbl_FortifyMagic = 0, delete278 #define new Fortify_New279 #define delete Fortify_Delete274 #define Fortify_New new(__FILE__, __LINE__) 275 #define Fortify_Delete for(gbl_FortifyMagic = 1, \ 276 Fortify_PreDelete(__FILE__, __LINE__); \ 277 gbl_FortifyMagic; Fortify_PostDelete()) \ 278 gbl_FortifyMagic = 0, delete 279 #define new Fortify_New 280 #define delete Fortify_Delete 280 281 #endif /* __cplusplus */ 281 282
Note:
See TracChangeset
for help on using the changeset viewer.
