diff options
author | zakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-08-26 17:39:27 +0000 |
---|---|---|
committer | zakk <zakk@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-08-26 17:39:27 +0000 |
commit | 6bf20c78f5b69d40bcc4931df93d29198435ab67 (patch) | |
tree | e3eda937a05d7db42de725b7013bd0344b987f34 /lcc/include/mips/irix/stdarg.h | |
parent | 872d4d7f55af706737ffb361bb76ad13e7496770 (diff) | |
download | ioquake3-aero-6bf20c78f5b69d40bcc4931df93d29198435ab67.tar.gz ioquake3-aero-6bf20c78f5b69d40bcc4931df93d29198435ab67.zip |
newlines fixed
git-svn-id: svn://svn.icculus.org/quake3/trunk@6 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'lcc/include/mips/irix/stdarg.h')
-rwxr-xr-x | lcc/include/mips/irix/stdarg.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/lcc/include/mips/irix/stdarg.h b/lcc/include/mips/irix/stdarg.h index 6c3a486..594db32 100755 --- a/lcc/include/mips/irix/stdarg.h +++ b/lcc/include/mips/irix/stdarg.h @@ -1,22 +1,22 @@ -#ifndef __STDARG
-#define __STDARG
-
-#if !defined(_VA_LIST)
-#define _VA_LIST
-typedef char *__va_list;
-#endif
-typedef __va_list va_list;
-
-#define va_start(list, start) ((void)((list) = (sizeof(start)<4 ? \
- (char *)((int *)&(start)+1) : (char *)(&(start)+1))))
-#define __va_arg(list, mode, n) \
- (*(mode *)(&(list += ((sizeof(mode)+n)&~n))[-(int)((sizeof(mode)+n)&~n)]))
-#define _bigendian_va_arg(list, mode, n) (\
- sizeof(mode)==1 ? *(mode *)(&(list += 4)[-1]) : \
- sizeof(mode)==2 ? *(mode *)(&(list += 4)[-2]) : __va_arg(list, mode, n))
-#define _littleendian_va_arg(list, mode, n) __va_arg(list, mode, n)
-#define va_end(list) ((void)0)
-#define va_arg(list, mode) (sizeof(mode)==8 ? \
- *(mode *)(&(list = (char*)(((int)list + 15)&~7U))[-8]) : \
- _bigendian_va_arg(list, mode, 3U))
-#endif
+#ifndef __STDARG +#define __STDARG + +#if !defined(_VA_LIST) +#define _VA_LIST +typedef char *__va_list; +#endif +typedef __va_list va_list; + +#define va_start(list, start) ((void)((list) = (sizeof(start)<4 ? \ + (char *)((int *)&(start)+1) : (char *)(&(start)+1)))) +#define __va_arg(list, mode, n) \ + (*(mode *)(&(list += ((sizeof(mode)+n)&~n))[-(int)((sizeof(mode)+n)&~n)])) +#define _bigendian_va_arg(list, mode, n) (\ + sizeof(mode)==1 ? *(mode *)(&(list += 4)[-1]) : \ + sizeof(mode)==2 ? *(mode *)(&(list += 4)[-2]) : __va_arg(list, mode, n)) +#define _littleendian_va_arg(list, mode, n) __va_arg(list, mode, n) +#define va_end(list) ((void)0) +#define va_arg(list, mode) (sizeof(mode)==8 ? \ + *(mode *)(&(list = (char*)(((int)list + 15)&~7U))[-8]) : \ + _bigendian_va_arg(list, mode, 3U)) +#endif |