add standard header

This commit is contained in:
2026-01-15 17:22:38 -05:00
parent 1b980b2720
commit 3e346312e2
3 changed files with 31 additions and 10 deletions

29
include/nickel.h Normal file
View File

@@ -0,0 +1,29 @@
#ifndef __NICKEL_H_
#define __NICKEL_H_
/* common includes across the project */
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
/* 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_ */

View File

@@ -1,10 +1,7 @@
#ifndef __NICKEL_LINKEDLIST_H_
#define __NICKEL_LINKEDLIST_H_
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include "nickel.h"
#ifdef __cplusplus
extern "C" {

View File

@@ -1,12 +1,7 @@
#ifndef __NICKEL_XALLOC_H_
#define __NICKEL_XALLOC_H_
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "nickel.h"
#ifdef __cplusplus
extern "C" {