version 1.7, 2014/07/20 06:24:19 |
version 1.8, 2014/07/20 08:12:46 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
#include "telnet_locl.h" |
#include <string.h> |
|
#include "ring.h" |
|
|
/* |
/* |
* This defines a structure for a ring buffer. |
* This defines a structure for a ring buffer. |
|
|
* to ZERO on allocation, we need to make sure, when interpreting the |
* to ZERO on allocation, we need to make sure, when interpreting the |
* clock, that when the times are EQUAL, then the buffer is FULL. |
* clock, that when the times are EQUAL, then the buffer is FULL. |
*/ |
*/ |
static u_long ring_clock = 0; |
static unsigned long ring_clock = 0; |
|
|
|
|
#define ring_empty(d) (((d)->consume == (d)->supply) && \ |
#define ring_empty(d) (((d)->consume == (d)->supply) && \ |