Nilorea Library

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Macros Groups
Data Structures | Macros | Typedefs | Functions | Variables
n_common.h File Reference
`#include <errno.h>`
`#include <stdio.h>`
`#include <stdlib.h>`
`#include <stdarg.h>`
`#include <unistd.h>`
`#include <string.h>`
`#include <strings.h>`
`#include <ctype.h>`
`#include <malloc.h>`
`#include <math.h>`
`#include <time.h>`
`#include <dirent.h>`
`#include <sys/stat.h>`
`#include <sys/types.h>`
`#include <limits.h>`
`#include <allegro.h>`
`#include <winalleg.h>`
`#include <pthread.h>`
`#include "lexmenu.h"`
Include dependency graph for n_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures

struct | N_TIME

## Macros

#define | __EXTENSIONS__
#define | ALLEGRO_ALREADY_INLUDED
#define | true (1==1)
#define | TRUE true
#define | false (1==0)
#define | FALSE false
#define | EMPTY 2
#define | _str(__PTR) ((__PTR)?(__PTR):"NULL")
#define | _strw(__PTR) ((__PTR)?(__PTR):"NULL")
#define | _nstr(__PTR) ((__PTR&&__PTR->data)?(__PTR->data):"NULL")
#define | Malloc(__ptr, __struct, __size)
#define | Free(__ptr)
#define | FreeNoLog(__ptr)
#define | Realloc(__ptr, __struct, __size)
#define | Reallocz(__ptr, __struct, __old_size, __size)
#define | _assert(__ptr, __ret)
#define | SET 1234
#define | GET 4321
#define | DEFAULT 1000
#define | RUNNING 1001
#define | STOPWANTED 1002
#define | STOPPED 1003
#define | PAUSED 1004
#define | randomize() { srand((unsigned)time(NULL)); rand(); }
#define | MIN(a, b) (((a)<(b))?(a):(b))
#define | MAX(a, b) (((a)>(b))?(a):(b))

## Typedefs

typedef unsigned int | uint
typedef unsigned long | ulong
typedef unsigned short | ushort
typedef unsigned char | uchar
typedef struct N_TIME | N_TIME

## Functions

void | PAUSE ()
| make a pause in a terminal More...
int | start_HiTimer (N_TIME *timer)
| Initialize or restart from zero any N_TIME HiTimer. More...
time_t | get_usec (N_TIME *timer)
| Poll any N_TIME HiTimer, returning usec, and moving currentTime to startTime. More...
time_t | get_msec (N_TIME *timer)
| Poll any N_TIME HiTimer, returning msec, and moving currentTime to startTime. More...
time_t | get_sec (N_TIME *timer)
| Poll any N_TIME HiTimer, returning sec, and moving currentTime to startTime. More...
void | get_keyboard (char *keybuf, int *cur, int min, int max)
| Function for getting a keyboard input, unicode. More...

## Variables

FONT * | allegro_font

## Detailed Description

common headers and low-level hugly functions & define

Author
  Castagnier Mickael

Version
  1.0

Date
  24/03/05

Definition in file n_common.h.