Eliminate non-standard NULL definitions

Revises kernel so that it uses the standard NULL symbol defined
for C99, rather than having its own custom symbol.

Change-Id: I74342f192e95899a83db879e8b1c8fe89ac8b92d
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2015-05-29 17:51:07 -04:00 committed by Anas Nashif
commit 60f6a74efe
5 changed files with 2 additions and 13 deletions

View file

@ -744,10 +744,6 @@ typedef struct s_NANO {
#define STACK_ROUND_UP(x) ROUND_UP(x, STACK_ALIGN_SIZE)
#define STACK_ROUND_DOWN(x) ROUND_DOWN(x, STACK_ALIGN_SIZE)
#ifndef NULL
#define NULL (void *)0
#endif
/* variable declarations */
/*

View file

@ -54,11 +54,6 @@ struct List {
};
#ifndef NULL
#define NULL (void *)0
#endif
#ifndef INLINED
extern void InitList(struct list_head *list);
extern unsigned int TestListEmpty(struct list_head *list);

View file

@ -58,10 +58,6 @@ extern "C" {
#define INLINE
#endif
#ifndef NULL
#define NULL ((void *)0)
#endif
#ifndef max
#define max(a, b) (((a) > (b)) ? (a) : (b))
#endif

View file

@ -33,6 +33,7 @@
#ifndef __NANOKERNEL_H__
#define __NANOKERNEL_H__
#include <stddef.h>
#include <stdint.h>
#include <toolchain.h> /* compiler specific configuration options */

View file

@ -33,6 +33,7 @@
#ifndef MINIK_H
#define MINIK_H
#include <stddef.h>
#include <kernel_struct.h>
#include <kernel_main.h>
#include <clock_vars.h>