smartall.h
来自「快速傅立叶变换程序代码,学信号的同学,可要注意了」· C头文件 代码 · 共 37 行
H
37 行
/* Definitions for the smart memory allocator*/#ifdef SMARTALLOCextern char *sm_malloc(), *sm_calloc(), *sm_realloc(), *actuallymalloc(), *actuallycalloc(), *actuallyrealloc();extern void sm_free(), actuallyfree(), sm_dump(), sm_static();/* Redefine standard memory allocator calls to use our routines instead. */#define free sm_free#define cfree sm_free#define malloc(x) sm_malloc(__FILE__, __LINE__, (x))#define calloc(n,e) sm_calloc(__FILE__, __LINE__, (n), (e))#define realloc(p,x) sm_realloc(__FILE__, __LINE__, (p), (x))#elseextern char *malloc(), *calloc(), *realloc();extern void free();/* If SMARTALLOC is disabled, define its special calls to default to the standard routines. */#define actuallyfree(x) free(x)#define actuallymalloc(x) malloc(x)#define actuallycalloc(x,y) calloc(x,y)#define actuallyrealloc(x,y) realloc(x,y)#define sm_dump(x)#define sm_static(x)#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?