Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
64032578
Commit
64032578
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
renamed Curl_ to curl_ for the printf() prefixes
parent
40311044
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/curl/mprintf.h
+20
-20
20 additions, 20 deletions
include/curl/mprintf.h
lib/http.c
+1
-1
1 addition, 1 deletion
lib/http.c
lib/mprintf.c
+13
-13
13 additions, 13 deletions
lib/mprintf.c
with
34 additions
and
34 deletions
include/curl/mprintf.h
+
20
−
20
View file @
64032578
...
...
@@ -55,28 +55,28 @@
#include
<stdarg.h>
int
C
url_mprintf
(
const
char
*
format
,
...);
int
C
url_mfprintf
(
FILE
*
fd
,
const
char
*
format
,
...);
int
C
url_msprintf
(
char
*
buffer
,
const
char
*
format
,
...);
int
C
url_msnprintf
(
char
*
buffer
,
size_t
maxlength
,
const
char
*
format
,
...);
int
C
url_mvprintf
(
const
char
*
format
,
va_list
args
);
int
C
url_mvfprintf
(
FILE
*
fd
,
const
char
*
format
,
va_list
args
);
int
C
url_mvsprintf
(
char
*
buffer
,
const
char
*
format
,
va_list
args
);
int
C
url_mvsnprintf
(
char
*
buffer
,
size_t
maxlength
,
const
char
*
format
,
va_list
args
);
char
*
C
url_maprintf
(
const
char
*
format
,
...);
char
*
C
url_mvaprintf
(
const
char
*
format
,
va_list
args
);
int
c
url_mprintf
(
const
char
*
format
,
...);
int
c
url_mfprintf
(
FILE
*
fd
,
const
char
*
format
,
...);
int
c
url_msprintf
(
char
*
buffer
,
const
char
*
format
,
...);
int
c
url_msnprintf
(
char
*
buffer
,
size_t
maxlength
,
const
char
*
format
,
...);
int
c
url_mvprintf
(
const
char
*
format
,
va_list
args
);
int
c
url_mvfprintf
(
FILE
*
fd
,
const
char
*
format
,
va_list
args
);
int
c
url_mvsprintf
(
char
*
buffer
,
const
char
*
format
,
va_list
args
);
int
c
url_mvsnprintf
(
char
*
buffer
,
size_t
maxlength
,
const
char
*
format
,
va_list
args
);
char
*
c
url_maprintf
(
const
char
*
format
,
...);
char
*
c
url_mvaprintf
(
const
char
*
format
,
va_list
args
);
#ifdef _MPRINTF_REPLACE
# define printf
C
url_mprintf
# define fprintf
C
url_mfprintf
# define sprintf
C
url_msprintf
# define snprintf
C
url_msnprintf
# define vprintf
C
url_mvprintf
# define vfprintf
C
url_mvfprintf
# define vsprintf
C
url_mvsprintf
# define vsnprintf
C
url_mvsnprintf
# define aprintf
C
url_maprintf
# define vaprintf
C
url_mvaprintf
# define printf
c
url_mprintf
# define fprintf
c
url_mfprintf
# define sprintf
c
url_msprintf
# define snprintf
c
url_msnprintf
# define vprintf
c
url_mvprintf
# define vfprintf
c
url_mvfprintf
# define vsprintf
c
url_mvsprintf
# define vsnprintf
c
url_mvsnprintf
# define aprintf
c
url_maprintf
# define vaprintf
c
url_mvaprintf
#endif
#endif
/* H_MPRINTF */
This diff is collapsed.
Click to expand it.
lib/http.c
+
1
−
1
View file @
64032578
...
...
@@ -161,7 +161,7 @@ CURLcode add_bufferf(send_buffer *in, char *fmt, ...)
char
*
s
;
va_list
ap
;
va_start
(
ap
,
fmt
);
s
=
Curl_m
vaprintf
(
fmt
,
ap
);
/* this allocs a new string to append */
s
=
vaprintf
(
fmt
,
ap
);
/* this allocs a new string to append */
va_end
(
ap
);
if
(
s
)
{
...
...
This diff is collapsed.
Click to expand it.
lib/mprintf.c
+
13
−
13
View file @
64032578
...
...
@@ -207,7 +207,7 @@ struct asprintf {
size_t
alloc
;
/* length of alloc */
};
int
C
url_msprintf
(
char
*
buffer
,
const
char
*
format
,
...);
int
c
url_msprintf
(
char
*
buffer
,
const
char
*
format
,
...);
static
int
dprintf_DollarString
(
char
*
input
,
char
**
end
)
{
...
...
@@ -955,11 +955,11 @@ static int dprintf_formatf(
if
(
width
>=
0
)
{
/* RECURSIVE USAGE */
fptr
+=
C
url_msprintf
(
fptr
,
"%d"
,
width
);
fptr
+=
c
url_msprintf
(
fptr
,
"%d"
,
width
);
}
if
(
prec
>=
0
)
{
/* RECURSIVE USAGE */
fptr
+=
C
url_msprintf
(
fptr
,
".%d"
,
prec
);
fptr
+=
c
url_msprintf
(
fptr
,
".%d"
,
prec
);
}
if
(
p
->
flags
&
FLAGS_LONG
)
strcat
(
fptr
,
"l"
);
...
...
@@ -1025,7 +1025,7 @@ static int addbyter(int output, FILE *data)
return
-
1
;
}
int
C
url_msnprintf
(
char
*
buffer
,
size_t
maxlength
,
const
char
*
format
,
...)
int
c
url_msnprintf
(
char
*
buffer
,
size_t
maxlength
,
const
char
*
format
,
...)
{
va_list
ap_save
;
/* argument pointer */
int
retcode
;
...
...
@@ -1045,7 +1045,7 @@ int Curl_msnprintf(char *buffer, size_t maxlength, const char *format, ...)
return
retcode
;
}
int
C
url_mvsnprintf
(
char
*
buffer
,
size_t
maxlength
,
const
char
*
format
,
va_list
ap_save
)
int
c
url_mvsnprintf
(
char
*
buffer
,
size_t
maxlength
,
const
char
*
format
,
va_list
ap_save
)
{
int
retcode
;
struct
nsprintf
info
;
...
...
@@ -1092,7 +1092,7 @@ static int alloc_addbyter(int output, FILE *data)
}
char
*
C
url_maprintf
(
const
char
*
format
,
...)
char
*
c
url_maprintf
(
const
char
*
format
,
...)
{
va_list
ap_save
;
/* argument pointer */
int
retcode
;
...
...
@@ -1113,7 +1113,7 @@ char *Curl_maprintf(const char *format, ...)
return
NULL
;
}
char
*
C
url_mvaprintf
(
const
char
*
format
,
va_list
ap_save
)
char
*
c
url_mvaprintf
(
const
char
*
format
,
va_list
ap_save
)
{
int
retcode
;
struct
asprintf
info
;
...
...
@@ -1140,7 +1140,7 @@ static int storebuffer(int output, FILE *data)
return
output
;
/* act like fputc() ! */
}
int
C
url_msprintf
(
char
*
buffer
,
const
char
*
format
,
...)
int
c
url_msprintf
(
char
*
buffer
,
const
char
*
format
,
...)
{
va_list
ap_save
;
/* argument pointer */
int
retcode
;
...
...
@@ -1153,7 +1153,7 @@ int Curl_msprintf(char *buffer, const char *format, ...)
extern
int
fputc
(
int
,
FILE
*
);
int
C
url_mprintf
(
const
char
*
format
,
...)
int
c
url_mprintf
(
const
char
*
format
,
...)
{
int
retcode
;
va_list
ap_save
;
/* argument pointer */
...
...
@@ -1163,7 +1163,7 @@ int Curl_mprintf(const char *format, ...)
return
retcode
;
}
int
C
url_mfprintf
(
FILE
*
whereto
,
const
char
*
format
,
...)
int
c
url_mfprintf
(
FILE
*
whereto
,
const
char
*
format
,
...)
{
int
retcode
;
va_list
ap_save
;
/* argument pointer */
...
...
@@ -1173,7 +1173,7 @@ int Curl_mfprintf(FILE *whereto, const char *format, ...)
return
retcode
;
}
int
C
url_mvsprintf
(
char
*
buffer
,
const
char
*
format
,
va_list
ap_save
)
int
c
url_mvsprintf
(
char
*
buffer
,
const
char
*
format
,
va_list
ap_save
)
{
int
retcode
;
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
;
}
int
C
url_mvprintf
(
const
char
*
format
,
va_list
ap_save
)
int
c
url_mvprintf
(
const
char
*
format
,
va_list
ap_save
)
{
return
dprintf_formatf
(
stdout
,
fputc
,
format
,
ap_save
);
}
int
C
url_mvfprintf
(
FILE
*
whereto
,
const
char
*
format
,
va_list
ap_save
)
int
c
url_mvfprintf
(
FILE
*
whereto
,
const
char
*
format
,
va_list
ap_save
)
{
return
dprintf_formatf
(
whereto
,
fputc
,
format
,
ap_save
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment