diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-12-25 05:00:31 -0500 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-12-26 00:40:11 -0700 |
commit | 634aeeb9d58b01f9de6632a014a063ef0c4cf31e (patch) | |
tree | 70023dd2bcc12a3f96ec6f118d80e27411920531 /src/common/nullpo.h | |
parent | 113fcc4f0a7a0921e94bc415515dd4b393a29d60 (diff) | |
download | tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.gz tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.bz2 tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.tar.xz tmwa-634aeeb9d58b01f9de6632a014a063ef0c4cf31e.zip |
Used the "indent" C formatting program from GNU to do some clean ups
The command options used was:
-nbad -bap -sc -bl -blf -bli0 -cli4 -cbi0
-di5 -nbc -bls -ip2 -nut -ts4 -bap -i4 -sob -npsl
Diffstat (limited to 'src/common/nullpo.h')
-rw-r--r-- | src/common/nullpo.h | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/src/common/nullpo.h b/src/common/nullpo.h index 2d33500..bac92cd 100644 --- a/src/common/nullpo.h +++ b/src/common/nullpo.h @@ -1,11 +1,9 @@ #ifndef _NULLPO_H_ #define _NULLPO_H_ - #define NULLPO_CHECK 1 - // 全体のスイッチを宣言しているヘッダがあれば - // そこに移動していただけると - + // 全体のスイッチを宣言しているヘッダがあれば + // そこに移動していただけると #if __STDC_VERSION__ < 199901L # if __GNUC__ >= 2 @@ -16,10 +14,9 @@ #endif #ifdef LCCWIN32 -#define __attribute__(x) /* nothing */ +#define __attribute__(x) /* nothing */ #endif - #define NLP_MARK __FILE__, __LINE__, __func__ /*---------------------------------------------------------------------------- @@ -87,7 +84,6 @@ #define nullpo_retr(ret, t) \ if (nullpo_chk(NLP_MARK, (void *)(t))) {return(ret);} - // 可変引数マクロに関する条件コンパイル #if __STDC_VERSION__ >= 199901L /* C99に対応 */ @@ -165,8 +161,8 @@ * 1 NULL *-------------------------------------- */ -int nullpo_chk(const char *file, int line, const char *func, const void *target); - +int nullpo_chk (const char *file, int line, const char *func, + const void *target); /*====================================== * nullpo_chk_f @@ -184,10 +180,9 @@ int nullpo_chk(const char *file, int line, const char *func, const void *target) * 1 NULL *-------------------------------------- */ -int nullpo_chk_f(const char *file, int line, const char *func, const void *target, - const char *fmt, ...) - __attribute__((format(printf,5,6))); - +int nullpo_chk_f (const char *file, int line, const char *func, + const void *target, const char *fmt, ...) + __attribute__ ((format (printf, 5, 6))); /*====================================== * nullpo_info @@ -199,8 +194,7 @@ int nullpo_chk_f(const char *file, int line, const char *func, const void *targe * これらには NLP_MARK を使うとよい *-------------------------------------- */ -void nullpo_info(const char *file, int line, const char *func); - +void nullpo_info (const char *file, int line, const char *func); /*====================================== * nullpo_info_f @@ -214,9 +208,8 @@ void nullpo_info(const char *file, int line, const char *func); * 備考や関係変数の書き出しなどに *-------------------------------------- */ -void nullpo_info_f(const char *file, int line, const char *func, - const char *fmt, ...) - __attribute__((format(printf,4,5))); - +void nullpo_info_f (const char *file, int line, const char *func, + const char *fmt, ...) + __attribute__ ((format (printf, 4, 5))); #endif |