28 |
#else |
#else |
29 |
#include <strings.h> |
#include <strings.h> |
30 |
#endif |
#endif |
|
#ifdef HAVE_STDARG_H |
|
31 |
#include <stdarg.h> |
#include <stdarg.h> |
|
#else |
|
|
#include <varargs.h> |
|
|
#endif |
|
32 |
|
|
33 |
#ifndef __attribute__ |
#ifndef __attribute__ |
34 |
/* This feature is available in gcc versions 2.5 and later. */ |
/* This feature is available in gcc versions 2.5 and later. */ |
134 |
void strbuf_trim(STRBUF *); |
void strbuf_trim(STRBUF *); |
135 |
void strbuf_close(STRBUF *); |
void strbuf_close(STRBUF *); |
136 |
char *strbuf_fgets(STRBUF *, FILE *, int); |
char *strbuf_fgets(STRBUF *, FILE *, int); |
|
#ifdef HAVE_STDARG_H |
|
137 |
void strbuf_sprintf(STRBUF *sb, const char *s, ...) |
void strbuf_sprintf(STRBUF *sb, const char *s, ...) |
138 |
__attribute__ ((__format__ (__printf__, 2, 3))); |
__attribute__ ((__format__ (__printf__, 2, 3))); |
|
#else |
|
|
void strbuf_sprintf(); |
|
|
#endif |
|
139 |
STRBUF *strbuf_open_tempbuf(); |
STRBUF *strbuf_open_tempbuf(); |
140 |
void strbuf_release_tempbuf(STRBUF *); |
void strbuf_release_tempbuf(STRBUF *); |
141 |
#ifdef STRBUF_LINK |
#ifdef STRBUF_LINK |