Commit 40c05f6 1 parent 849eaba commit 40c05f6 Copy full SHA for 40c05f6
File tree 3 files changed +9
-14
lines changed
3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -113,13 +113,6 @@ impl bindgen::callbacks::ParseCallbacks for CustomCallbacks {
113
113
if original_item_name == "RS_EMPTY_ARRAY_SENTINEL" {
114
114
return Some ( "UA_EMPTY_ARRAY_SENTINEL" . to_owned ( ) ) ;
115
115
}
116
- // Rename wrapper function back to its original name. See `wrapper.c` for details.
117
- if original_item_name == "RS_vsnprintf" {
118
- return Some ( "vsnprintf" . to_owned ( ) ) ;
119
- }
120
- if original_item_name == "RS_va_end" {
121
- return Some ( "va_end" . to_owned ( ) ) ;
122
- }
123
116
None
124
117
}
125
118
}
Original file line number Diff line number Diff line change 4
4
// such as Microsoft Windows.
5
5
//
6
6
// Other than the standard `vsnprintf()`, this function does not consume the passed
7
- // `va_list` argument! The caller is responsible for calling `va_end ()` on the
7
+ // `va_list` argument! The caller is responsible for calling `vsnprintf_va_end ()` on the
8
8
// `va_list` argument eventually.
9
9
#if defined(_MSC_VER ) && _MSC_VER < 1900
10
- int RS_vsnprintf (
10
+ int vsnprintf_va_copy (
11
11
char * buffer ,
12
12
size_t count ,
13
13
const char * format ,
@@ -31,7 +31,7 @@ int RS_vsnprintf(
31
31
return result ;
32
32
}
33
33
#else
34
- int RS_vsnprintf (
34
+ int vsnprintf_va_copy (
35
35
char * buffer ,
36
36
size_t count ,
37
37
const char * format ,
@@ -47,7 +47,7 @@ int RS_vsnprintf(
47
47
}
48
48
#endif
49
49
50
- void RS_va_end (va_list args )
50
+ void vsnprintf_va_end (va_list args )
51
51
{
52
52
va_end (args );
53
53
}
Original file line number Diff line number Diff line change @@ -22,11 +22,13 @@ extern const void *const RS_EMPTY_ARRAY_SENTINEL;
22
22
// such as Microsoft Windows.
23
23
//
24
24
// Other than the standard `vsnprintf()`, this implementation copies the `va_list`
25
- // argument before passing it along to allow repeated calls.
26
- int RS_vsnprintf (
25
+ // argument before passing it along to allow repeated calls. The caller is responsible
26
+ // to invoke `vsnprintf_va_end()` on the `va_list` argument eventually.
27
+ int vsnprintf_va_copy (
27
28
char * buffer ,
28
29
size_t count ,
29
30
const char * format ,
30
31
va_list args );
31
32
32
- void RS_va_end (va_list args );
33
+ // Wrapper for `va_end()` that is supposed to be used with `vsnprintf_va_copy()`.
34
+ void vsnprintf_va_end (va_list args );
You can’t perform that action at this time.
0 commit comments