0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 10:11:53 +00:00

Add header wrap defines to lib/buffer.h

This commit is contained in:
Pavel Tvrdík 2015-03-19 18:42:33 +01:00
parent ae111d04c5
commit 99d14b1ab3

View File

@ -1,3 +1,13 @@
/*
* BIRD Library -- Buffer
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#ifndef _BIRD_BUFFER_H_
#define _BIRD_BUFFER_H_
#include "lib/resource.h"
#define BUFFER(type) struct { type *data; uint used, size; } #define BUFFER(type) struct { type *data; uint used, size; }
@ -32,4 +42,4 @@
#define BUFFER_FLUSH(v) ({ (v).used = 0; }) #define BUFFER_FLUSH(v) ({ (v).used = 0; })
#endif /* _BIRD_BUFFER_H_ */