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 Diff line number Diff line
@@ -9,6 +9,7 @@
#ifndef _BIRD_BIRDLIB_H_
#define _BIRD_BIRDLIB_H_

#include "sysdep/config.h"
#include "lib/alloca.h"

/* Ugly structure offset handling macros */
+0 −1
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@

#define _BIRD_LISTS_C_

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

/**
+2 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@
#ifndef _BIRD_LISTS_H_
#define _BIRD_LISTS_H_

#include "lib/birdlib.h"

/*
 * 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
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
#include <stdlib.h>
#include <stdint.h>

#include "nest/bird.h"
#include "lib/birdlib.h"
#include "lib/resource.h"
#include "lib/string.h"

+3 −3
Original line number Diff line number Diff line
@@ -9,11 +9,11 @@
#ifndef _BIRD_STRING_H_
#define _BIRD_STRING_H_

#include "lib/birdlib.h"
#include "lib/resource.h"

#include <stdarg.h>
#include <string.h>
#include <strings.h>

#include "lib/resource.h"

int bsprintf(char *str, const char *fmt, ...);
int bvsprintf(char *str, const char *fmt, va_list args);
Loading