/usr/include/root/Varargs.h is in libroot-core-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | /* @(#)root/base:$Id$ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_Varargs
#define ROOT_Varargs
#ifdef __CINT__
#include <stdarg.h>
#endif
#if defined(sparc) && defined(__CC_ATT301__)
extern "C" __builtin_va_arg_incr(...);
typedef char *va_list;
# define va_end(ap)
# define va_start(ap, parmN) ap= (char*)(&parmN+1)
# define va_arg(ap, mode) ((mode*) __builtin_va_arg_incr((mode*)ap))[0]
# define va_(arg) __builtin_va_alist
# include <stdio.h>
extern "C" {
int vfprintf(FILE*, const char *fmt, va_list ap);
char *vsprintf(char*, const char *fmt, va_list ap);
};
#else
# ifndef __CINT__
# include <stdarg.h>
# endif
# if defined(sparc) && !defined(__GNUG__) && !defined(__CC_SUN21__) && !defined(__SVR4)
# define va_(arg) __builtin_va_alist
# else
# define va_(arg) arg
# endif
#endif
#if !defined(R__VA_COPY)
# if defined(__GNUC__) && !defined(__FreeBSD__)
# define R__VA_COPY(to, from) __va_copy((to), (from))
# elif defined(__va_copy)
# define R__VA_COPY(to, from) __va_copy((to), (from))
# elif defined(va_copy)
# define R__VA_COPY(to, from) va_copy((to), (from))
# elif defined (R__VA_COPY_AS_ARRAY)
# define R__VA_COPY(to, from) memmove((to), (from), sizeof(va_list))
# elif defined(_WIN32) && _MSC_VER < 1310
# define R__VA_COPY(to, from) (*(to) = *(from))
# else
# define R__VA_COPY(to, from) ((to) = (from))
# endif
#endif
#endif
|