#include <stdint.h>Макросы | |
| #define | LEPT_DLL |
| #define | HAVE_LIBJPEG 1 |
| #define | HAVE_LIBTIFF 1 |
| #define | HAVE_LIBPNG 1 |
| #define | HAVE_LIBZ 1 |
| #define | HAVE_LIBGIF 0 |
| #define | HAVE_LIBUNGIF 0 |
| #define | HAVE_FMEMOPEN 0 |
| #define | USE_BMPIO 1 |
| #define | USE_PNMIO 1 |
| #define | USE_PSIO 1 |
| #define | L_MIN(x, y) (((x) < (y)) ? (x) : (y)) |
| #define | L_MAX(x, y) (((x) > (y)) ? (x) : (y)) |
| #define | L_ABS(x) (((x) < 0) ? (-1 * (x)) : (x)) |
| #define | L_SIGN(x) (((x) < 0) ? -1 : 1) |
| #define | UNDEF -1 |
| #define | NULL 0 |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | MALLOC(blocksize) malloc(blocksize) |
| #define | CALLOC(numelem, elemsize) calloc(numelem, elemsize) |
| #define | REALLOC(ptr, blocksize) realloc(ptr, blocksize) |
| #define | FREE(ptr) free(ptr) |
| #define | PROCNAME(name) static const char procName[] = name |
| #define | ERROR_PTR(a, b, c) returnErrorPtr((a),(b),(c)) |
| #define | ERROR_INT(a, b, c) returnErrorInt((a),(b),(c)) |
| #define | ERROR_FLOAT(a, b, c) returnErrorFloat((a),(b),(c)) |
| #define | ERROR_VOID(a, b) returnErrorVoid((a),(b)) |
| #define | L_ERROR(a, b) l_error((a),(b)) |
| #define | L_ERROR_STRING(a, b, c) l_errorString((a),(b),(c)) |
| #define | L_ERROR_INT(a, b, c) l_errorInt((a),(b),(c)) |
| #define | L_ERROR_FLOAT(a, b, c) l_errorFloat((a),(b),(c)) |
| #define | L_WARNING(a, b) l_warning((a),(b)) |
| #define | L_WARNING_STRING(a, b, c) l_warningString((a),(b),(c)) |
| #define | L_WARNING_INT(a, b, c) l_warningInt((a),(b),(c)) |
| #define | L_WARNING_FLOAT(a, b, c) l_warningFloat((a),(b),(c)) |
| #define | L_INFO(a, b) l_info((a),(b)) |
| #define | L_INFO_STRING(a, b, c) l_infoString((a),(b),(c)) |
| #define | L_INFO_INT(a, b, c) l_infoInt((a),(b),(c)) |
| #define | L_INFO_INT2(a, b, c, d) l_infoInt2((a),(b),(c),(d)) |
| #define | L_INFO_FLOAT(a, b, c) l_infoFloat((a),(b),(c)) |
| #define | L_INFO_FLOAT2(a, b, c, d) l_infoFloat2((a),(b),(c),(d)) |
Определения типов | |
| typedef intptr_t | l_intptr_t |
| typedef uintptr_t | l_uintptr_t |
| typedef signed char | l_int8 |
| typedef unsigned char | l_uint8 |
| typedef short | l_int16 |
| typedef unsigned short | l_uint16 |
| typedef int | l_int32 |
| typedef unsigned int | l_uint32 |
| typedef float | l_float32 |
| typedef double | l_float64 |
Перечисления | |
| enum | { L_NOT_FOUND = 0, L_FOUND = 1 } |
| #define CALLOC | ( | numelem, | |||
| elemsize | ) | calloc(numelem, elemsize) |
| #define ERROR_FLOAT | ( | a, | |||
| b, | |||||
| c | ) | returnErrorFloat((a),(b),(c)) |
| #define ERROR_INT | ( | a, | |||
| b, | |||||
| c | ) | returnErrorInt((a),(b),(c)) |
| #define ERROR_PTR | ( | a, | |||
| b, | |||||
| c | ) | returnErrorPtr((a),(b),(c)) |
| #define ERROR_VOID | ( | a, | |||
| b | ) | returnErrorVoid((a),(b)) |
| #define FALSE 0 |
| #define FREE | ( | ptr | ) | free(ptr) |
| #define HAVE_FMEMOPEN 0 |
| #define HAVE_LIBGIF 0 |
| #define HAVE_LIBJPEG 1 |
| #define HAVE_LIBPNG 1 |
| #define HAVE_LIBTIFF 1 |
| #define HAVE_LIBUNGIF 0 |
| #define HAVE_LIBZ 1 |
| #define L_ABS | ( | x | ) | (((x) < 0) ? (-1 * (x)) : (x)) |
| #define L_ERROR | ( | a, | |||
| b | ) | l_error((a),(b)) |
| #define L_ERROR_FLOAT | ( | a, | |||
| b, | |||||
| c | ) | l_errorFloat((a),(b),(c)) |
| #define L_ERROR_INT | ( | a, | |||
| b, | |||||
| c | ) | l_errorInt((a),(b),(c)) |
| #define L_ERROR_STRING | ( | a, | |||
| b, | |||||
| c | ) | l_errorString((a),(b),(c)) |
| #define L_INFO | ( | a, | |||
| b | ) | l_info((a),(b)) |
| #define L_INFO_FLOAT | ( | a, | |||
| b, | |||||
| c | ) | l_infoFloat((a),(b),(c)) |
| #define L_INFO_FLOAT2 | ( | a, | |||
| b, | |||||
| c, | |||||
| d | ) | l_infoFloat2((a),(b),(c),(d)) |
| #define L_INFO_INT | ( | a, | |||
| b, | |||||
| c | ) | l_infoInt((a),(b),(c)) |
| #define L_INFO_INT2 | ( | a, | |||
| b, | |||||
| c, | |||||
| d | ) | l_infoInt2((a),(b),(c),(d)) |
| #define L_INFO_STRING | ( | a, | |||
| b, | |||||
| c | ) | l_infoString((a),(b),(c)) |
| #define L_MAX | ( | x, | |||
| y | ) | (((x) > (y)) ? (x) : (y)) |
| #define L_MIN | ( | x, | |||
| y | ) | (((x) < (y)) ? (x) : (y)) |
| #define L_SIGN | ( | x | ) | (((x) < 0) ? -1 : 1) |
| #define L_WARNING | ( | a, | |||
| b | ) | l_warning((a),(b)) |
| #define L_WARNING_FLOAT | ( | a, | |||
| b, | |||||
| c | ) | l_warningFloat((a),(b),(c)) |
| #define L_WARNING_INT | ( | a, | |||
| b, | |||||
| c | ) | l_warningInt((a),(b),(c)) |
| #define L_WARNING_STRING | ( | a, | |||
| b, | |||||
| c | ) | l_warningString((a),(b),(c)) |
| #define LEPT_DLL |
| #define MALLOC | ( | blocksize | ) | malloc(blocksize) |
| #define NULL 0 |
| #define PROCNAME | ( | name | ) | static const char procName[] = name |
| #define REALLOC | ( | ptr, | |||
| blocksize | ) | realloc(ptr, blocksize) |
| #define TRUE 1 |
| #define UNDEF -1 |
| #define USE_BMPIO 1 |
| #define USE_PNMIO 1 |
| #define USE_PSIO 1 |
| typedef float l_float32 |
| typedef double l_float64 |
| typedef short l_int16 |
| typedef int l_int32 |
| typedef signed char l_int8 |
| typedef intptr_t l_intptr_t |
| typedef unsigned short l_uint16 |
| typedef unsigned int l_uint32 |
| typedef unsigned char l_uint8 |
| typedef uintptr_t l_uintptr_t |
1.5.9