This file can be used on its own (i.e. without ind_types.c) if none of the actual functions defined in ind_types.c are used.
Definition in file ind_types.h.
#include <limits.h>
#include <float.h>
Include dependency graph for ind_types.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | NO_ERROR 0 |
| #define | MIN(x, y) (((x) < (y)) ? (x) : (y)) |
| #define | MAX(x, y) (((x) > (y)) ? (x) : (y)) |
| #define | INT_MAX 2147483647 |
| #define | INT_MIN -2147483647 |
| #define | EXTERNAL_C_LINKAGE extern "C" |
| Put this before any external C functions called so that they will work with both C and C++. | |
| #define | NO_I64 |
| #define | ROUND(a) (floor((0.5+(a)))) |
| #define | TEMPNAME tempnam |
| #define | SNPRINTF snprintf |
| #define | swap_endian_proto(type) type type ## _swap_endian(type num) |
Typedefs | |
| typedef char | i8 |
| typedef short | i16 |
| typedef long | i32 |
| typedef float | f32 |
| typedef double | f64 |
Functions | |
| int | check_ind_types (int warn_if_missing) |
| int | endianness (void) |
| Returns 0 for little-endian, 1 for big-endian, and -1 for unknown. | |
| swap_endian_proto (i32) | |
|
|
Returns 0 for little-endian, 1 for big-endian, and -1 for unknown. Many compilers (e.g. GCC) define a compile-time constant for endianness, but this routine allows it to be checked, and should work on most ordinary architectures Definition at line 92 of file ind_types.c. References endtype. |
1.3-rc2