]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/libsa/ppc/va_list.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
25 #if !defined(APPLE) && !defined(NeXT)
32 * Revision 1.1.1.1 1998/09/22 21:05:51 wsanchez
33 * Import of Mac OS X kernel (~semeria)
35 * Revision 1.1.1.1 1998/03/07 02:25:36 wsanchez
36 * Import of OSF Mach kernel (~mburg)
38 * Revision 1.1.2.1 1996/12/09 16:59:07 stephen
39 * nmklinux_1.0b3_shared into pmk1.1
40 * [1996/12/09 11:18:59 stephen]
42 * Revision 1.1.4.1 1996/04/11 14:37:05 emcmanus
43 * Copied from mainline.ppc.
44 * [1996/04/11 14:36:22 emcmanus]
46 * Revision 1.1.2.1 1995/12/28 16:37:24 barbou
47 * Self-Contained Mach Distribution:
55 * Four possible situations:
56 * - We are being included by {var,std}args.h (or anyone) before stdio.h.
59 * - We are being included by stdio.h before {var,std}args.h.
60 * define hidden type for prototypes in stdio, don't pollute namespace.
62 * - We are being included by {var,std}args.h after stdio.h.
63 * define real type to match hidden type. no longer use hidden type.
65 * - We are being included again after defining the real va_list.
70 #if !defined(_HIDDEN_VA_LIST) && !defined(_VA_LIST)
72 /* Define __gnuc_va_list. */
74 #ifndef __GNUC_VA_LIST
76 * If this is for internal libc use, don't define
77 * anything but __gnuc_va_list.
79 #define __GNUC_VA_LIST
81 char gpr
; /* index into the array of 8 GPRs stored in the
82 register save area gpr=0 corresponds to r3,
84 char fpr
; /* index into the array of 8 FPRs stored in the
85 register save area fpr=0 corresponds to f1,
87 char *overflow_arg_area
; /* location on stack that holds the next
89 char *reg_save_area
; /* where r3:r10 and f1:f8, if saved are stored */
92 #endif /* not __GNUC_VA_LIST */
96 char gpr
; /* index into the array of 8 GPRs stored in the
97 register save area gpr=0 corresponds to r3,
99 char fpr
; /* index into the array of 8 FPRs stored in the
100 register save area fpr=0 corresponds to f1,
102 char *overflow_arg_area
; /* location on stack that holds the next
104 char *reg_save_area
; /* where r3:r10 and f1:f8, if saved are stored */
107 #elif defined(_HIDDEN_VA_LIST) && !defined(_VA_LIST)
111 char gpr
; /* index into the array of 8 GPRs stored in the
112 register save area gpr=0 corresponds to r3,
114 char fpr
; /* index into the array of 8 FPRs stored in the
115 register save area fpr=0 corresponds to f1,
117 char *overflow_arg_area
; /* location on stack that holds the next
119 char *reg_save_area
; /* where r3:r10 and f1:f8, if saved are stored */
122 #elif defined(_HIDDEN_VA_LIST) && defined(_VA_LIST)
124 #undef _HIDDEN_VA_LIST
125 typedef __va_list
va_list;