forked from CZ-NIC/bird
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ondrej Zajicek (work)
committed
Nov 8, 2016
1 parent
920a86e
commit c8cafc8
Showing
13 changed files
with
81 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
/* | ||
* BIRD Library -- Generic Buffer Structure | ||
* | ||
* (c) 2013 Ondrej Zajicek <[email protected]> | ||
* (c) 2013 CZ.NIC z.s.p.o. | ||
* | ||
* 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" | ||
#include "sysdep/config.h" | ||
|
||
#define BUFFER(type) struct { type *data; uint used, size; } | ||
|
||
|
@@ -32,4 +46,4 @@ | |
|
||
#define BUFFER_FLUSH(v) ({ (v).used = 0; }) | ||
|
||
|
||
#endif /* _BIRD_BUFFER_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
|
||
/* | ||
* BIRD Library -- Generic Hash Table | ||
* | ||
* (c) 2013 Ondrej Zajicek <[email protected]> | ||
* (c) 2013 CZ.NIC z.s.p.o. | ||
* | ||
* Can be freely distributed and used under the terms of the GNU GPL. | ||
*/ | ||
|
||
#ifndef _BIRD_HASH_H_ | ||
#define _BIRD_HASH_H_ | ||
|
||
#define HASH(type) struct { type **data; uint count, order; } | ||
#define HASH_TYPE(v) typeof(** (v).data) | ||
|
@@ -178,3 +188,4 @@ | |
|
||
#define HASH_WALK_FILTER_END } while (0) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters