config_priv.h

来自「uClinux下用的数据库」· C头文件 代码 · 共 62 行

H
62
字号
/*** NK Config Private Header*//************************************************************************* Standard header preamble.  Ensure singular inclusion, setup for** function prototypes and c++ inclusion*/#ifndef CONFIG_MODULE_PRIV_H#define CONFIG_MODULE_PRIV_H 1#if defined(__STDC__) || defined(__cplusplus)#  define __ANSI_PROTO(x)       x#else#  define __ANSI_PROTO(x)       ()#endif#ifdef __cplusplusextern "C" {#endif/************************************************************************* Macro Definitions*/#define	CONFIG_CHAR_TYPE	1#define CONFIG_INT_TYPE		2#define CONFIG_SEC_GENERAL	1#define skipWhite(cp) while(*cp=='\t' || *cp==' '){cp++;}#define getLine(b,s,f)	fgets(b,s,f); curLine++/************************************************************************* Type Definitions*/typedef struct {	char	*section,		*handle;	int	type;	char 	*charVal;	int	intVal,		allowNull;} config_entry;/************************************************************************* Standard header file footer.*/  #ifdef __cplusplus        }#endif /* __cplusplus */#endif /* file inclusion */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?