mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 02:01:55 +00:00
Lib: Include fixes to better split lib from nest
This commit is contained in:
parent
5ce881be82
commit
66f00cdd80
@ -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 */
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
#define _BIRD_LISTS_C_
|
#define _BIRD_LISTS_C_
|
||||||
|
|
||||||
#include "nest/bird.h"
|
|
||||||
#include "lib/lists.h"
|
#include "lib/lists.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user