ROOT
master
Reference Guide
Loading...
Searching...
No Matches
Varargs.h
Go to the documentation of this file.
1
/* @(#)root/base:$Id$ */
2
3
/*************************************************************************
4
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
#ifndef ROOT_Varargs
12
#define ROOT_Varargs
13
14
#if defined(sparc) && defined(__CC_ATT301__)
15
16
extern
"C"
__builtin_va_arg_incr(...);
17
typedef
char
*va_list;
18
# define va_end(ap)
19
# define va_start(ap, parmN) ap= (char*)(&parmN+1)
20
# define va_arg(ap, mode) ((mode*) __builtin_va_arg_incr((mode*)ap))[0]
21
# define va_(arg) __builtin_va_alist
22
23
# include <stdio.h>
24
25
extern
"C"
{
26
int
vfprintf(FILE*,
const
char
*fmt, va_list ap);
27
char
*vsprintf(
char
*,
const
char
*fmt, va_list ap);
28
};
29
30
#else
31
# include <stdarg.h>
32
# if defined(sparc) && !defined(__GNUG__) && !defined(__CC_SUN21__) && !defined(__SVR4)
33
# define va_(arg) __builtin_va_alist
34
# else
35
# define va_(arg) arg
36
# endif
37
38
#endif
39
40
#if !defined(R__VA_COPY)
41
# if defined(va_copy)
42
# define R__VA_COPY(to, from) va_copy((to), (from))
43
# elif defined(__va_copy)
44
# define R__VA_COPY(to, from) __va_copy((to), (from))
45
# elif defined(_WIN32) && _MSC_VER < 1310
46
# define R__VA_COPY(to, from) (*(to) = *(from))
47
# else
48
# define R__VA_COPY(to, from) ((to) = (from))
49
# endif
50
#endif
51
52
#endif
core
base
inc
Varargs.h
ROOT master - Reference Guide Generated on Tue Nov 5 2024 09:40:04 (GVA Time) using Doxygen 1.9.8