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:
parent
ae111d04c5
commit
99d14b1ab3
12
lib/buffer.h
12
lib/buffer.h
@ -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_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user