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

Lib: Include fixes to better split lib from nest

This commit is contained in:
Maria Matejka 2019-10-24 12:38:48 +02:00
parent 5ce881be82
commit 66f00cdd80
6 changed files with 7 additions and 6 deletions

View File

@ -9,6 +9,7 @@
#ifndef _BIRD_BIRDLIB_H_ #ifndef _BIRD_BIRDLIB_H_
#define _BIRD_BIRDLIB_H_ #define _BIRD_BIRDLIB_H_
#include "sysdep/config.h"
#include "lib/alloca.h" #include "lib/alloca.h"
/* Ugly structure offset handling macros */ /* Ugly structure offset handling macros */

View File

@ -26,7 +26,6 @@
#define _BIRD_LISTS_C_ #define _BIRD_LISTS_C_
#include "nest/bird.h"
#include "lib/lists.h" #include "lib/lists.h"
/** /**

View File

@ -9,6 +9,8 @@
#ifndef _BIRD_LISTS_H_ #ifndef _BIRD_LISTS_H_
#define _BIRD_LISTS_H_ #define _BIRD_LISTS_H_
#include "lib/birdlib.h"
/* /*
* I admit the list structure is very tricky and also somewhat awkward, * I admit the list structure is very tricky and also somewhat awkward,
* but it's both efficient and easy to manipulate once one understands the * but it's both efficient and easy to manipulate once one understands the

View File

@ -10,7 +10,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#include "nest/bird.h" #include "lib/birdlib.h"
#include "lib/resource.h" #include "lib/resource.h"
#include "lib/string.h" #include "lib/string.h"

View File

@ -9,11 +9,11 @@
#ifndef _BIRD_STRING_H_ #ifndef _BIRD_STRING_H_
#define _BIRD_STRING_H_ #define _BIRD_STRING_H_
#include "lib/birdlib.h"
#include "lib/resource.h"
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <strings.h>
#include "lib/resource.h"
int bsprintf(char *str, const char *fmt, ...); int bsprintf(char *str, const char *fmt, ...);
int bvsprintf(char *str, const char *fmt, va_list args); int bvsprintf(char *str, const char *fmt, va_list args);

View File

@ -9,7 +9,6 @@
#ifndef _BIRD_BIRD_H_ #ifndef _BIRD_BIRD_H_
#define _BIRD_BIRD_H_ #define _BIRD_BIRD_H_
#include "sysdep/config.h"
#include "lib/birdlib.h" #include "lib/birdlib.h"
#include "lib/ip.h" #include "lib/ip.h"
#include "lib/net.h" #include "lib/net.h"