Commit 66f00cdd authored by Maria Matejka's avatar Maria Matejka
Browse files

Lib: Include fixes to better split lib from nest

parent 5ce881be
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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 */
+0 −1
Original line number Original line Diff line number Diff line
@@ -26,7 +26,6 @@


#define _BIRD_LISTS_C_
#define _BIRD_LISTS_C_


#include "nest/bird.h"
#include "lib/lists.h"
#include "lib/lists.h"


/**
/**
+2 −0
Original line number Original line Diff line number Diff line
@@ -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
+1 −1
Original line number Original line Diff line number Diff line
@@ -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"


+3 −3
Original line number Original line Diff line number Diff line
@@ -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);
Loading