diff options
Diffstat (limited to 'src/global.h')
-rw-r--r-- | src/global.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/global.h b/src/global.h index 212906d..a61f59e 100644 --- a/src/global.h +++ b/src/global.h @@ -30,7 +30,7 @@ DAMAGE. =========================================================================*/ -/* $Id: global.h,v 1.35 2006/07/23 20:59:20 broeker Exp $ */ +/* $Id: global.h,v 1.37 2009/04/10 13:39:23 broeker Exp $ */ /* cscope - interactive C symbol cross-reference * @@ -94,6 +94,22 @@ char *memset(); typedef RETSIGTYPE (*sighandler_t)(int); #endif +#if HAVE_STDARG_H +#include <stdarg.h> +#if !HAVE_VSNPRINTF +int rpl_vsnprintf(char *, size_t, const char *, va_list); +#endif +#if !HAVE_SNPRINTF +int rpl_snprintf(char *, size_t, const char *, ...); +#endif +#if !HAVE_VASPRINTF +int rpl_vasprintf(char **, const char *, va_list); +#endif +#if !HAVE_ASPRINTF +int rpl_asprintf(char **, const char *, ...); +#endif +#endif /* HAVE_STDARG_H */ + /* FIXME: this testing for platforms is foolish. Stop it! */ #if BSD # undef tolower /* BSD toupper and tolower don't test the character */ @@ -248,7 +264,7 @@ extern char temp1[]; /* temporary file name */ extern char temp2[]; /* temporary file name */ extern long totalterms; /* total inverted index terms */ extern BOOL trun_syms; /* truncate symbols to 8 characters */ -extern char tempstring[8192]; /* global dummy string buffer */ +extern char tempstring[TEMPSTRING_LEN + 1]; /* global dummy string buffer */ extern char *tmpdir; /* temporary directory */ /* command.c global data */ |