#ifndef __BASIC_H__
#define __BASIC_H__

typedef int boolean;

enum {false = 0, true = 1};
enum {error = -1, success = 0};

#define circInc(x,lo,hi) ((x == hi) ? x=lo : x++ )
#define circDec(x,lo,hi) ((x == lo) ? x=hi : x-- )

#define circInc2(x,max)(x = (x+1) & (max-1))

#ifndef NULL
#define NULL (0)
#endif

#endif /* __BASIC_H__ */
