Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ind_types.h File Reference


Detailed Description

Define platform-independent types and other platform-specific support.

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.

Header
/u/nn/cvsroot/lissom/src/ind_types.h,v 1.36 2001/12/01 07:33:41 jbednar Exp

Definition in file ind_types.h.

#include <limits.h>
#include <float.h>

Include dependency graph for ind_types.h:

Include dependency graph

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

Included by dependency graph

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)


Function Documentation

int endianness void   
 

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.


Generated on Mon Jan 20 02:36:07 2003 for RF-LISSOM by doxygen1.3-rc2