1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

renamed Curl_ to curl_ for the printf() prefixes

This commit is contained in:
Daniel Stenberg 2001-01-05 12:19:42 +00:00
parent 4031104404
commit 6403257886
3 changed files with 34 additions and 34 deletions

View File

@ -55,28 +55,28 @@
#include <stdarg.h> #include <stdarg.h>
int Curl_mprintf(const char *format, ...); int curl_mprintf(const char *format, ...);
int Curl_mfprintf(FILE *fd, const char *format, ...); int curl_mfprintf(FILE *fd, const char *format, ...);
int Curl_msprintf(char *buffer, const char *format, ...); int curl_msprintf(char *buffer, const char *format, ...);
int Curl_msnprintf(char *buffer, size_t maxlength, const char *format, ...); int curl_msnprintf(char *buffer, size_t maxlength, const char *format, ...);
int Curl_mvprintf(const char *format, va_list args); int curl_mvprintf(const char *format, va_list args);
int Curl_mvfprintf(FILE *fd, const char *format, va_list args); int curl_mvfprintf(FILE *fd, const char *format, va_list args);
int Curl_mvsprintf(char *buffer, const char *format, va_list args); int curl_mvsprintf(char *buffer, const char *format, va_list args);
int Curl_mvsnprintf(char *buffer, size_t maxlength, const char *format, va_list args); int curl_mvsnprintf(char *buffer, size_t maxlength, const char *format, va_list args);
char *Curl_maprintf(const char *format, ...); char *curl_maprintf(const char *format, ...);
char *Curl_mvaprintf(const char *format, va_list args); char *curl_mvaprintf(const char *format, va_list args);
#ifdef _MPRINTF_REPLACE #ifdef _MPRINTF_REPLACE
# define printf Curl_mprintf # define printf curl_mprintf
# define fprintf Curl_mfprintf # define fprintf curl_mfprintf
# define sprintf Curl_msprintf # define sprintf curl_msprintf
# define snprintf Curl_msnprintf # define snprintf curl_msnprintf
# define vprintf Curl_mvprintf # define vprintf curl_mvprintf
# define vfprintf Curl_mvfprintf # define vfprintf curl_mvfprintf
# define vsprintf Curl_mvsprintf # define vsprintf curl_mvsprintf
# define vsnprintf Curl_mvsnprintf # define vsnprintf curl_mvsnprintf
# define aprintf Curl_maprintf # define aprintf curl_maprintf
# define vaprintf Curl_mvaprintf # define vaprintf curl_mvaprintf
#endif #endif
#endif /* H_MPRINTF */ #endif /* H_MPRINTF */

View File

@ -161,7 +161,7 @@ CURLcode add_bufferf(send_buffer *in, char *fmt, ...)
char *s; char *s;
va_list ap; va_list ap;
va_start(ap, fmt); va_start(ap, fmt);
s = Curl_mvaprintf(fmt, ap); /* this allocs a new string to append */ s = vaprintf(fmt, ap); /* this allocs a new string to append */
va_end(ap); va_end(ap);
if(s) { if(s) {

View File

@ -207,7 +207,7 @@ struct asprintf {
size_t alloc; /* length of alloc */ size_t alloc; /* length of alloc */
}; };
int Curl_msprintf(char *buffer, const char *format, ...); int curl_msprintf(char *buffer, const char *format, ...);
static int dprintf_DollarString(char *input, char **end) static int dprintf_DollarString(char *input, char **end)
{ {
@ -955,11 +955,11 @@ static int dprintf_formatf(
if(width >= 0) { if(width >= 0) {
/* RECURSIVE USAGE */ /* RECURSIVE USAGE */
fptr += Curl_msprintf(fptr, "%d", width); fptr += curl_msprintf(fptr, "%d", width);
} }
if(prec >= 0) { if(prec >= 0) {
/* RECURSIVE USAGE */ /* RECURSIVE USAGE */
fptr += Curl_msprintf(fptr, ".%d", prec); fptr += curl_msprintf(fptr, ".%d", prec);
} }
if (p->flags & FLAGS_LONG) if (p->flags & FLAGS_LONG)
strcat(fptr, "l"); strcat(fptr, "l");
@ -1025,7 +1025,7 @@ static int addbyter(int output, FILE *data)
return -1; return -1;
} }
int Curl_msnprintf(char *buffer, size_t maxlength, const char *format, ...) int curl_msnprintf(char *buffer, size_t maxlength, const char *format, ...)
{ {
va_list ap_save; /* argument pointer */ va_list ap_save; /* argument pointer */
int retcode; int retcode;
@ -1045,7 +1045,7 @@ int Curl_msnprintf(char *buffer, size_t maxlength, const char *format, ...)
return retcode; return retcode;
} }
int Curl_mvsnprintf(char *buffer, size_t maxlength, const char *format, va_list ap_save) int curl_mvsnprintf(char *buffer, size_t maxlength, const char *format, va_list ap_save)
{ {
int retcode; int retcode;
struct nsprintf info; struct nsprintf info;
@ -1092,7 +1092,7 @@ static int alloc_addbyter(int output, FILE *data)
} }
char *Curl_maprintf(const char *format, ...) char *curl_maprintf(const char *format, ...)
{ {
va_list ap_save; /* argument pointer */ va_list ap_save; /* argument pointer */
int retcode; int retcode;
@ -1113,7 +1113,7 @@ char *Curl_maprintf(const char *format, ...)
return NULL; return NULL;
} }
char *Curl_mvaprintf(const char *format, va_list ap_save) char *curl_mvaprintf(const char *format, va_list ap_save)
{ {
int retcode; int retcode;
struct asprintf info; struct asprintf info;
@ -1140,7 +1140,7 @@ static int storebuffer(int output, FILE *data)
return output; /* act like fputc() ! */ return output; /* act like fputc() ! */
} }
int Curl_msprintf(char *buffer, const char *format, ...) int curl_msprintf(char *buffer, const char *format, ...)
{ {
va_list ap_save; /* argument pointer */ va_list ap_save; /* argument pointer */
int retcode; int retcode;
@ -1153,7 +1153,7 @@ int Curl_msprintf(char *buffer, const char *format, ...)
extern int fputc(int, FILE *); extern int fputc(int, FILE *);
int Curl_mprintf(const char *format, ...) int curl_mprintf(const char *format, ...)
{ {
int retcode; int retcode;
va_list ap_save; /* argument pointer */ va_list ap_save; /* argument pointer */
@ -1163,7 +1163,7 @@ int Curl_mprintf(const char *format, ...)
return retcode; return retcode;
} }
int Curl_mfprintf(FILE *whereto, const char *format, ...) int curl_mfprintf(FILE *whereto, const char *format, ...)
{ {
int retcode; int retcode;
va_list ap_save; /* argument pointer */ va_list ap_save; /* argument pointer */
@ -1173,7 +1173,7 @@ int Curl_mfprintf(FILE *whereto, const char *format, ...)
return retcode; return retcode;
} }
int Curl_mvsprintf(char *buffer, const char *format, va_list ap_save) int curl_mvsprintf(char *buffer, const char *format, va_list ap_save)
{ {
int retcode; int retcode;
retcode = dprintf_formatf(&buffer, storebuffer, format, ap_save); retcode = dprintf_formatf(&buffer, storebuffer, format, ap_save);
@ -1181,12 +1181,12 @@ int Curl_mvsprintf(char *buffer, const char *format, va_list ap_save)
return retcode; return retcode;
} }
int Curl_mvprintf(const char *format, va_list ap_save) int curl_mvprintf(const char *format, va_list ap_save)
{ {
return dprintf_formatf(stdout, fputc, format, ap_save); return dprintf_formatf(stdout, fputc, format, ap_save);
} }
int Curl_mvfprintf(FILE *whereto, const char *format, va_list ap_save) int curl_mvfprintf(FILE *whereto, const char *format, va_list ap_save)
{ {
return dprintf_formatf(whereto, fputc, format, ap_save); return dprintf_formatf(whereto, fputc, format, ap_save);
} }