ZEDA  1.6.18
Macros | Typedefs | Enumerations
zeda_defs.h File Reference

base definitions. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <zeda/zeda_compat.h>
Include dependency graph for zeda_defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __BEGIN_DECLS
 
#define __END_DECLS
 
#define BUFSIZ   512
 default buffer size. More...
 
#define INT_BIT   ( sizeof(int) << 3 )
 
#define INT_MAX   ( ( ( ( 1 << ( ( INT_BIT >> 1 ) - 1 ) ) - 1 ) << ( INT_BIT >> 1 ) ) | ( ( 1 << ( INT_BIT >> 1 ) ) - 1 ) )
 
#define UINT_MAX   ( (uint)( ( ( ( 1 << ( INT_BIT >> 1 ) ) - 1 ) << ( INT_BIT >> 1 ) ) | ( ( 1 << ( INT_BIT >> 1 ) ) - 1 ) ) )
 
#define zBoolStr(b)   ( (b) ? "true" : "false" )
 

Typedefs

typedef unsigned char uint8_t
 
typedef unsigned short int uint16_t
 
typedef unsigned int uint32_t
 
typedef unsigned long long int uint64_t
 
typedef signed char int8_t
 
typedef short int int16_t
 
typedef int int32_t
 
typedef long long int int64_t
 
typedef int8_t byte
 
typedef int16_t word
 
typedef int32_t dword
 
typedef uint8_t ubyte
 
typedef uint16_t uword
 
typedef uint32_t udword
 
typedef unsigned int uint
 
typedef unsigned long ulong
 
typedef ubyte bool
 boolean type (for Language C). More...
 

Enumerations

enum  { false = 0, true = 1 }
 

Detailed Description

base definitions.

Author
Zhidao

Macro Definition Documentation

◆ __BEGIN_DECLS

#define __BEGIN_DECLS

◆ __END_DECLS

#define __END_DECLS

◆ BUFSIZ

#define BUFSIZ   512

default buffer size.

BUFSIZ is defined in the standard C library. This macro is validated in non-standard C environments rather as a moderate value.

◆ INT_BIT

#define INT_BIT   ( sizeof(int) << 3 )

◆ INT_MAX

#define INT_MAX   ( ( ( ( 1 << ( ( INT_BIT >> 1 ) - 1 ) ) - 1 ) << ( INT_BIT >> 1 ) ) | ( ( 1 << ( INT_BIT >> 1 ) ) - 1 ) )

◆ UINT_MAX

#define UINT_MAX   ( (uint)( ( ( ( 1 << ( INT_BIT >> 1 ) ) - 1 ) << ( INT_BIT >> 1 ) ) | ( ( 1 << ( INT_BIT >> 1 ) ) - 1 ) ) )

◆ zBoolStr

#define zBoolStr (   b)    ( (b) ? "true" : "false" )

convert a boolean value to a string.

Typedef Documentation

◆ uint8_t

typedef unsigned char uint8_t

8-bit unsigned integer

◆ uint16_t

typedef unsigned short int uint16_t

16-bit unsigned integer

◆ uint32_t

typedef unsigned int uint32_t

32-bit unsigned integer

◆ uint64_t

typedef unsigned long long int uint64_t

64-bit unsigned integer

◆ int8_t

typedef signed char int8_t

8-bit signed integer

◆ int16_t

typedef short int int16_t

16-bit signed integer

◆ int32_t

typedef int int32_t

32-bit signed integer

◆ int64_t

typedef long long int int64_t

64-bit signed integer

◆ byte

typedef int8_t byte

signed one-byte data.

◆ word

typedef int16_t word

signed two-byte data.

◆ dword

typedef int32_t dword

signed four-byte data.

◆ ubyte

typedef uint8_t ubyte

unsigned one-byte data.

◆ uword

typedef uint16_t uword

unsigned two-byte data.

◆ udword

typedef uint32_t udword

unsigned four-byte data.

◆ uint

typedef unsigned int uint

unsigned integer.

◆ ulong

typedef unsigned long ulong

unsigned long integer.

◆ bool

typedef ubyte bool

boolean type (for Language C).

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

these values are available for boolean.

Enumerator
false 
true