Comparison

util-src/ringbuffer.c @ 7827:db15e9f6d77f

util.ringbuffer: Remove unused macros
author Kim Alvefur <zash@zash.se>
date Sun, 22 Jan 2017 04:05:41 +0100
parent 7818:54669df178c2
child 7828:b4a08a514ebc
comparison
equal deleted inserted replaced
7826:7702ce682427 7827:db15e9f6d77f
5 #include <string.h> 5 #include <string.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 7
8 #include <lua.h> 8 #include <lua.h>
9 #include <lauxlib.h> 9 #include <lauxlib.h>
10
11 #define MIN(a, b) ((a)>(b)?(b):(a))
12 #define MAX(a, b) ((a)>(b)?(a):(b))
13 10
14 typedef struct { 11 typedef struct {
15 size_t rpos; /* read position */ 12 size_t rpos; /* read position */
16 size_t wpos; /* write position */ 13 size_t wpos; /* write position */
17 size_t alen; /* allocated size */ 14 size_t alen; /* allocated size */