Skip to content

Commit 92e71f3

Browse files
committed
add default mapping to mini_*
1 parent 8c38288 commit 92e71f3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

printf.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ void _putchar(char character);
6060
#ifndef MPRINTF_DISABLE_DIRECT_MAPPING
6161
#define printf __wrap_printf
6262
#endif
63+
64+
#ifndef MPRINTF_DISABLE_MINI_MAPPING
65+
#define mini_printf __wrap_printf
66+
#endif
6367
int __wrap_printf(const char* format, ...);
6468

6569

@@ -73,6 +77,10 @@ int __wrap_printf(const char* format, ...);
7377
#ifndef MPRINTF_DISABLE_DIRECT_MAPPING
7478
#define sprintf __wrap_sprintf
7579
#endif
80+
81+
#ifndef MPRINTF_DISABLE_MINI_MAPPING
82+
#define mini_sprintf __wrap_sprintf
83+
#endif
7684
int __wrap_sprintf(char* buffer, const char* format, ...);
7785

7886

@@ -89,11 +97,17 @@ int __wrap_sprintf(char* buffer, const char* format, ...);
8997
#ifndef MPRINTF_DISABLE_DIRECT_MAPPING
9098
#define snprintf __wrap_snprintf
9199
#endif
100+
#ifndef MPRINTF_DISABLE_MINI_MAPPING
101+
#define mini_snprintf __wrap_snprintf
102+
#endif
92103
int __wrap_snprintf(char* buffer, size_t count, const char* format, ...);
93104

94105
#ifndef MPRINTF_DISABLE_DIRECT_MAPPING
95106
#define vsnprintf __wrap_vsnprintf
96107
#endif
108+
#ifndef MPRINTF_DISABLE_MINI_MAPPING
109+
#define mini_vsnprintf __wrap_vsnprintf
110+
#endif
97111
int __wrap_vsnprintf(char* buffer, size_t count, const char* format, va_list va);
98112

99113
/**
@@ -105,6 +119,9 @@ int __wrap_vsnprintf(char* buffer, size_t count, const char* format, va_list va)
105119
#ifndef MPRINTF_DISABLE_DIRECT_MAPPING
106120
#define vprintf __wrap_vprintf
107121
#endif
122+
#ifndef MPRINTF_DISABLE_MINI_MAPPING
123+
#define mini_vprintf __wrap_vprintf
124+
#endif
108125
int __wrap_vprintf(const char* format, va_list va);
109126

110127

0 commit comments

Comments
 (0)