From 6bf20c78f5b69d40bcc4931df93d29198435ab67 Mon Sep 17 00:00:00 2001 From: zakk Date: Fri, 26 Aug 2005 17:39:27 +0000 Subject: newlines fixed git-svn-id: svn://svn.icculus.org/quake3/trunk@6 edf5b092-35ff-0310-97b2-ce42778d08ea --- lcc/include/mips/irix/stdarg.h | 44 +++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'lcc/include/mips/irix/stdarg.h') 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 -- cgit v1.2.3