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 | |||
libart-features.h | libart-features.h | |||
---|---|---|---|---|
#ifndef LIBART_FEATURES_H | #ifndef LIBART_FEATURES_H | |||
#define LIBART_FEATURES_H 1 | #define LIBART_FEATURES_H 1 | |||
#define LIBART_MAJOR_VERSION (2) | #define LIBART_MAJOR_VERSION (2) | |||
#define LIBART_MINOR_VERSION (3) | #define LIBART_MINOR_VERSION (3) | |||
#define LIBART_MICRO_VERSION (19) | #define LIBART_MICRO_VERSION (20) | |||
#define LIBART_VERSION "2.3.19" | #define LIBART_VERSION "2.3.20" | |||
#ifdef _WIN32 | #ifdef _WIN32 | |||
# ifdef LIBART_COMPILATION | # ifdef LIBART_COMPILATION | |||
# define LIBART_VAR __declspec(dllexport) | # define LIBART_VAR __declspec(dllexport) | |||
# else | # else | |||
# define LIBART_VAR extern __declspec(dllimport) | # define LIBART_VAR extern __declspec(dllimport) | |||
# endif | # endif | |||
#else | #else | |||
# define LIBART_VAR extern | # define LIBART_VAR extern | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||