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 | |||
#define art_alloc malloc | void *art_alloc(size_t size); | |||
#define art_free free | void art_free(void *ptr); | |||
#define art_realloc realloc | void *art_realloc(void *ptr, size_t size); | |||
/* 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. */ | |||
skipping to change at line 69 | skipping to change at line 69 | |||
#endif /* M_PI */ | #endif /* M_PI */ | |||
#ifndef M_SQRT2 | #ifndef M_SQRT2 | |||
#define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ | #define M_SQRT2 1.41421356237309504880 /* sqrt(2) */ | |||
#endif /* M_SQRT2 */ | #endif /* M_SQRT2 */ | |||
/* Provide macros to feature the GCC function attribute. | /* Provide macros to feature the GCC function attribute. | |||
*/ | */ | |||
#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)) | #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)) | |||
#define ART_GNUC_PRINTF( format_idx, arg_idx ) \ | #define ART_GNUC_PRINTF( format_idx, arg_idx ) \ | |||
__attribute__((format (printf, format_idx, arg_idx))) | __attribute__((__format__ (__printf__, format_idx, arg_idx))) | |||
#define ART_GNUC_NORETURN \ | #define ART_GNUC_NORETURN \ | |||
__attribute__((noreturn)) | __attribute__((__noreturn__)) | |||
#else /* !__GNUC__ */ | #else /* !__GNUC__ */ | |||
#define ART_GNUC_PRINTF( format_idx, arg_idx ) | #define ART_GNUC_PRINTF( format_idx, arg_idx ) | |||
#define ART_GNUC_NORETURN | #define ART_GNUC_NORETURN | |||
#endif /* !__GNUC__ */ | #endif /* !__GNUC__ */ | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
void ART_GNUC_NORETURN | void ART_GNUC_NORETURN | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 5 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 (17) | #define LIBART_MICRO_VERSION (3) | |||
#define LIBART_VERSION "2.3.17" | #define LIBART_VERSION "2.3.18" | |||
#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 | |||