Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Main
Synchronet
Commits
7e9c9012
Commit
7e9c9012
authored
11 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
DLLexportationism.
parent
8e6d1ce1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xpdev/xpprintf.c
+7
-7
7 additions, 7 deletions
src/xpdev/xpprintf.c
src/xpdev/xpprintf.h
+8
-7
8 additions, 7 deletions
src/xpdev/xpprintf.h
with
15 additions
and
14 deletions
src/xpdev/xpprintf.c
+
7
−
7
View file @
7e9c9012
...
@@ -55,12 +55,12 @@
...
@@ -55,12 +55,12 @@
/* Maximum length of a format specifier including the % */
/* Maximum length of a format specifier including the % */
#define MAX_FORMAT_LEN 256
#define MAX_FORMAT_LEN 256
void
xp_asprintf_free
(
char
*
format
)
void
DLLCALL
xp_asprintf_free
(
char
*
format
)
{
{
free
(
format
);
free
(
format
);
}
}
int
xp_printf_get_type
(
const
char
*
format
)
int
DLLCALL
xp_printf_get_type
(
const
char
*
format
)
{
{
const
char
*
p
;
const
char
*
p
;
int
modifier
=
0
;
int
modifier
=
0
;
...
@@ -287,7 +287,7 @@ int xp_printf_get_type(const char *format)
...
@@ -287,7 +287,7 @@ int xp_printf_get_type(const char *format)
* that the type passed to sprintf() is the type passed to
* that the type passed to sprintf() is the type passed to
* xp_asprintf_next().
* xp_asprintf_next().
*/
*/
char
*
xp_asprintf_next
(
char
*
format
,
int
type
,
...)
char
*
DLLCALL
xp_asprintf_next
(
char
*
format
,
int
type
,
...)
{
{
va_list
vars
;
va_list
vars
;
char
*
p
;
char
*
p
;
...
@@ -1255,7 +1255,7 @@ char *xp_asprintf_next(char *format, int type, ...)
...
@@ -1255,7 +1255,7 @@ char *xp_asprintf_next(char *format, int type, ...)
return
(
format
);
return
(
format
);
}
}
char
*
xp_asprintf_start
(
const
char
*
format
)
char
*
DLLCALL
xp_asprintf_start
(
const
char
*
format
)
{
{
char
*
ret
;
char
*
ret
;
char
*
p
;
char
*
p
;
...
@@ -1286,7 +1286,7 @@ char *xp_asprintf_start(const char *format)
...
@@ -1286,7 +1286,7 @@ char *xp_asprintf_start(const char *format)
return
(
ret
);
return
(
ret
);
}
}
char
*
xp_asprintf_end
(
char
*
format
,
size_t
*
lenret
)
char
*
DLLCALL
xp_asprintf_end
(
char
*
format
,
size_t
*
lenret
)
{
{
char
*
p
;
char
*
p
;
size_t
len
;
size_t
len
;
...
@@ -1306,7 +1306,7 @@ char *xp_asprintf_end(char *format, size_t *lenret)
...
@@ -1306,7 +1306,7 @@ char *xp_asprintf_end(char *format, size_t *lenret)
return
(
format
);
return
(
format
);
}
}
char
*
xp_vasprintf
(
const
char
*
format
,
va_list
va
)
char
*
DLLCALL
xp_vasprintf
(
const
char
*
format
,
va_list
va
)
{
{
char
*
working
;
char
*
working
;
char
*
next
;
char
*
next
;
...
@@ -1373,7 +1373,7 @@ char *xp_vasprintf(const char *format, va_list va)
...
@@ -1373,7 +1373,7 @@ char *xp_vasprintf(const char *format, va_list va)
return
(
next
);
return
(
next
);
}
}
char
*
xp_asprintf
(
const
char
*
format
,
...)
char
*
DLLCALL
xp_asprintf
(
const
char
*
format
,
...)
{
{
char
*
ret
;
char
*
ret
;
va_list
va
;
va_list
va
;
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/xpprintf.h
+
8
−
7
View file @
7e9c9012
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
#define _XPPRINTF_H_
#define _XPPRINTF_H_
#include
<stdarg.h>
#include
<stdarg.h>
#include
"wrapdll.h"
/* Supported printf argument types */
/* Supported printf argument types */
#define XP_PRINTF_TYPE_AUTO 0
#define XP_PRINTF_TYPE_AUTO 0
...
@@ -71,13 +72,13 @@
...
@@ -71,13 +72,13 @@
#if defined(__cplusplus)
#if defined(__cplusplus)
extern
"C"
{
extern
"C"
{
#endif
#endif
void
xp_asprintf_free
(
char
*
format
);
DLLEXPORT
void
DLLCALL
xp_asprintf_free
(
char
*
format
);
char
*
xp_asprintf_start
(
const
char
*
format
);
DLLEXPORT
char
*
DLLCALL
xp_asprintf_start
(
const
char
*
format
);
char
*
xp_asprintf_next
(
char
*
format
,
int
type
,
...);
DLLEXPORT
char
*
DLLCALL
xp_asprintf_next
(
char
*
format
,
int
type
,
...);
char
*
xp_asprintf_end
(
char
*
format
,
size_t
*
endlen
);
DLLEXPORT
char
*
DLLCALL
xp_asprintf_end
(
char
*
format
,
size_t
*
endlen
);
char
*
xp_asprintf
(
const
char
*
format
,
...);
DLLEXPORT
char
*
DLLCALL
xp_asprintf
(
const
char
*
format
,
...);
char
*
xp_vasprintf
(
const
char
*
format
,
va_list
va
);
DLLEXPORT
char
*
DLLCALL
xp_vasprintf
(
const
char
*
format
,
va_list
va
);
int
xp_printf_get_type
(
const
char
*
format
);
DLLEXPORT
int
DLLCALL
xp_printf_get_type
(
const
char
*
format
);
#if defined(__cplusplus)
#if defined(__cplusplus)
}
}
#endif
#endif
...
...
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