From 3e346312e24d3a792fd6f83be1bb45f0e77bcfe6 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Thu, 15 Jan 2026 17:22:38 -0500 Subject: [PATCH] add standard header --- include/nickel.h | 29 +++++++++++++++++++++++++++++ include/nickel/linkedlist.h | 5 +---- include/nickel/xalloc.h | 7 +------ 3 files changed, 31 insertions(+), 10 deletions(-) create mode 100644 include/nickel.h diff --git a/include/nickel.h b/include/nickel.h new file mode 100644 index 0000000..0a1ae54 --- /dev/null +++ b/include/nickel.h @@ -0,0 +1,29 @@ +#ifndef __NICKEL_H_ +#define __NICKEL_H_ + +/* common includes across the project */ +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +/* includes from internal to the project */ +// ... + +#ifdef __cplusplus +extern "C" { +#endif + +// any thing we need in the top level here + +#ifdef __cplusplus +} +#endif + +#endif /* __NICKEL_H_ */ \ No newline at end of file diff --git a/include/nickel/linkedlist.h b/include/nickel/linkedlist.h index 5ac4121..27ef98a 100644 --- a/include/nickel/linkedlist.h +++ b/include/nickel/linkedlist.h @@ -1,10 +1,7 @@ #ifndef __NICKEL_LINKEDLIST_H_ #define __NICKEL_LINKEDLIST_H_ -#include -#include -#include -#include +#include "nickel.h" #ifdef __cplusplus extern "C" { diff --git a/include/nickel/xalloc.h b/include/nickel/xalloc.h index 122f8d8..ce961af 100644 --- a/include/nickel/xalloc.h +++ b/include/nickel/xalloc.h @@ -1,12 +1,7 @@ #ifndef __NICKEL_XALLOC_H_ #define __NICKEL_XALLOC_H_ -#include -#include - -#include -#include -#include +#include "nickel.h" #ifdef __cplusplus extern "C" {