| art_misc.h | | art_misc.h | |
| | | | |
| skipping to change at line 37 | | skipping to change at line 37 | |
| | | | |
| /* The art_config.h file is automatically generated by | | /* The art_config.h file is automatically generated by | |
| gen_art_config.c and contains definitions of | | gen_art_config.c and contains definitions of | |
| ART_SIZEOF_{CHAR,SHORT,INT,LONG} and art_u{8,16,32}. */ | | ART_SIZEOF_{CHAR,SHORT,INT,LONG} and art_u{8,16,32}. */ | |
| #ifdef LIBART_COMPILATION | | #ifdef LIBART_COMPILATION | |
| #include "art_config.h" | | #include "art_config.h" | |
| #else | | #else | |
| #include <libart_lgpl/art_config.h> | | #include <libart_lgpl/art_config.h> | |
| #endif | | #endif | |
| | | | |
|
| | | #ifdef __cplusplus | |
| | | extern "C" { | |
| | | #endif | |
| void *art_alloc(size_t size); | | void *art_alloc(size_t size); | |
| void art_free(void *ptr); | | void art_free(void *ptr); | |
| void *art_realloc(void *ptr, size_t size); | | void *art_realloc(void *ptr, size_t size); | |
|
| | | #ifdef __cplusplus | |
| | | } | |
| | | #endif /* __cplusplus */ | |
| | | | |
| /* These aren't, strictly speaking, configuration macros, but they're | | /* These aren't, strictly speaking, configuration macros, but they're | |
| damn handy to have around, and may be worth playing with for | | damn handy to have around, and may be worth playing with for | |
| debugging. */ | | debugging. */ | |
| #define art_new(type, n) ((type *)art_alloc ((n) * sizeof(type))) | | #define art_new(type, n) ((type *)art_alloc ((n) * sizeof(type))) | |
| | | | |
| #define art_renew(p, type, n) ((type *)art_realloc (p, (n) * sizeof(type))) | | #define art_renew(p, type, n) ((type *)art_realloc (p, (n) * sizeof(type))) | |
| | | | |
| /* This one must be used carefully - in particular, p and max should | | /* This one must be used carefully - in particular, p and max should | |
| be variables. They can also be pstruct->el lvalues. */ | | be variables. They can also be pstruct->el lvalues. */ | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 6 lines changed or added | |
|