Back to index

tetex-bin  3.0
Defines
fifo_defs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define head   SP->_fifohead
#define tail   SP->_fifotail
#define peek   SP->_fifopeek
#define h_inc()   { head == FIFO_SIZE-1 ? head = 0 : head++; if (head == tail) head = -1, tail = 0;}
#define h_dec()   { head == 0 ? head = FIFO_SIZE-1 : head--; if (head == tail) tail = -1;}
#define t_inc()   { tail == FIFO_SIZE-1 ? tail = 0 : tail++; if (tail == head) tail = -1;}
#define t_dec()   { tail == 0 ? tail = FIFO_SIZE-1 : tail--; if (head == tail) fifo_clear();}
#define p_inc()   { peek == FIFO_SIZE-1 ? peek = 0 : peek++;}
#define cooked_key_in_fifo()   ((head != -1) && (peek != head))
#define raw_key_in_fifo()   ((head != -1) && (peek != tail))

Define Documentation

#define cooked_key_in_fifo ( )    ((head != -1) && (peek != head))

Definition at line 54 of file fifo_defs.h.

#define h_dec ( )    { head == 0 ? head = FIFO_SIZE-1 : head--; if (head == tail) tail = -1;}

Definition at line 49 of file fifo_defs.h.

#define h_inc ( )    { head == FIFO_SIZE-1 ? head = 0 : head++; if (head == tail) head = -1, tail = 0;}

Definition at line 48 of file fifo_defs.h.

#define head   SP->_fifohead

Definition at line 43 of file fifo_defs.h.

#define p_inc ( )    { peek == FIFO_SIZE-1 ? peek = 0 : peek++;}

Definition at line 52 of file fifo_defs.h.

#define peek   SP->_fifopeek

Definition at line 46 of file fifo_defs.h.

#define raw_key_in_fifo ( )    ((head != -1) && (peek != tail))

Definition at line 55 of file fifo_defs.h.

#define t_dec ( )    { tail == 0 ? tail = FIFO_SIZE-1 : tail--; if (head == tail) fifo_clear();}

Definition at line 51 of file fifo_defs.h.

#define t_inc ( )    { tail == FIFO_SIZE-1 ? tail = 0 : tail++; if (tail == head) tail = -1;}

Definition at line 50 of file fifo_defs.h.

#define tail   SP->_fifotail

Definition at line 44 of file fifo_defs.h.