Remove the private NULL, TRUE and FALSE macros

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-07-31 21:53:52 +08:00 committed by Petro Karashchenko
parent ec59125ad3
commit c26bb35843
24 changed files with 0 additions and 200 deletions

View file

@ -41,10 +41,6 @@
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((void * ) 0)
#endif
#define TRUE_T (1) /* true */
#define FALSE_T (0) /* false */

View file

@ -39,10 +39,6 @@
* Private types
****************************************************************************/
#ifndef NULL
#define NULL 0L
#endif
/* Declare the version numbers */
#define LIBRARY_VERSION_MAJOR (1)

View file

@ -128,18 +128,6 @@ typedef uint8 halDataAlign_t; /* !< Used for byte alignment */
* ------------------------------------------------------------------------
*/
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef NULL
#define NULL 0
#endif
#define HAL_WAIT_CONDITION(condition) {while(!(condition)){}}
#define HAL_WAIT_CONDITION_TIMEOUT(condition, timeout) {\

View file

@ -46,10 +46,6 @@
#define TRENTRY(id,ehci,fmt1,string) {string}
#ifndef NULL
# define NULL ((void *)0)
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View file

@ -42,10 +42,6 @@
#define TRENTRY(id,fmt1,string) {string}
#ifndef NULL
# define NULL ((void *)0)
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View file

@ -41,10 +41,6 @@
#define TRENTRY(id,fmt1,string) {string}
#ifndef NULL
# define NULL ((void *)0)
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View file

@ -41,10 +41,6 @@
#define TRENTRY(id,fmt1,string) {string}
#ifndef NULL
# define NULL ((void *)0)
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View file

@ -27,22 +27,6 @@
#include "arch/rx65n/iodefine.h"
#ifndef TRUE
#define TRUE (1)
#else
#if (1 != TRUE)
#error "TRUE is not defined by 1."
#endif
#endif
#ifndef FALSE
#define FALSE (0)
#else
#if (0 != FALSE)
#error "FALSE is not defined by 0."
#endif
#endif
#ifndef __TYPEDEF__
/* Status list definition */

View file

@ -39,18 +39,6 @@
#ifdef HAVE_SDHC_AUTOMOUNTER
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL (void *)0
#endif
#ifndef OK
# define OK 0
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View file

@ -39,18 +39,6 @@
#ifdef HAVE_AUTOMOUNTER
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL (void *)0
#endif
#ifndef OK
# define OK 0
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View file

@ -39,18 +39,6 @@
#ifdef HAVE_AUTOMOUNTER
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL (void *)0
#endif
#ifndef OK
# define OK 0
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View file

@ -39,18 +39,6 @@
#ifdef HAVE_AUTOMOUNTER
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL (void *)0
#endif
#ifndef OK
# define OK 0
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View file

@ -31,14 +31,6 @@
* Pre-processor Definitions
****************************************************************************/
#ifndef TRUE
# define TRUE 1
#endif
#ifndef FALSE
# define FALSE 0
#endif
/* Clocking *****************************************************************/
/* Overview

View file

@ -39,18 +39,6 @@
#ifdef CONFIG_FS_AUTOMOUNTER
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL (void *)0
#endif
#ifndef OK
# define OK 0
#endif
/****************************************************************************
* Private Types
****************************************************************************/

View file

@ -31,14 +31,6 @@
* Pre-processor Definitions
****************************************************************************/
#ifndef TRUE
# define TRUE 1
#endif
#ifndef FALSE
# define FALSE 0
#endif
/* Clocking *****************************************************************/
/* Overview

View file

@ -36,14 +36,6 @@
#if CONFIG_IOB_NCHAINS > 0
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((FAR void *)0)
#endif
/****************************************************************************
* Private Functions
****************************************************************************/

View file

@ -32,14 +32,6 @@
#if CONFIG_IOB_NCHAINS > 0
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((FAR void *)0)
#endif
/****************************************************************************
* Public Functions
****************************************************************************/

View file

@ -33,14 +33,6 @@
#if CONFIG_IOB_NCHAINS > 0
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((FAR void *)0)
#endif
/****************************************************************************
* Public Functions
****************************************************************************/

View file

@ -30,14 +30,6 @@
#include "iob.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((FAR void *)0)
#endif
/****************************************************************************
* Private Data
****************************************************************************/

View file

@ -32,14 +32,6 @@
#if CONFIG_IOB_NCHAINS > 0
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((FAR void *)0)
#endif
/****************************************************************************
* Public Functions
****************************************************************************/

View file

@ -34,14 +34,6 @@
#if CONFIG_IOB_NCHAINS > 0
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((FAR void *)0)
#endif
/****************************************************************************
* Public Functions
****************************************************************************/

View file

@ -31,14 +31,6 @@
#include "iob.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((FAR void *)0)
#endif
/****************************************************************************
* Public Functions
****************************************************************************/

View file

@ -33,14 +33,6 @@
#if CONFIG_IOB_NCHAINS > 0
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((FAR void *)0)
#endif
/****************************************************************************
* Public Functions
****************************************************************************/

View file

@ -36,14 +36,6 @@
#include "mm_heap/mm.h"
#include "kasan/kasan.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef NULL
# define NULL ((void *)0)
#endif
/****************************************************************************
* Private Functions
****************************************************************************/