Skip to content

Commit a70fc17

Browse files
committed
Clean up.
1 parent 9216b6d commit a70fc17

2 files changed

Lines changed: 1 addition & 24 deletions

File tree

Sources/xlocale_wrapper/include/xlocale_wrapper.h

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,7 @@
66

77
#include <wchar.h>
88

9-
#ifdef __cplusplus
10-
extern "C" {
11-
#endif
12-
13-
// Wrapper functions for xlocale functionality
149
int vt_wcwidth_l(wchar_t wc, void *locale);
1510
void *vt_newlocale(int mask, const char *locale, void *base);
16-
void vt_freelocale(void *locale);
17-
18-
// Constants
19-
#if __APPLE__
20-
#define LC_CTYPE_MASK (1 << 1)
21-
#endif
22-
23-
#ifdef __cplusplus
24-
}
25-
#endif
2611

27-
#endif /* xlocale_wrapper_h */
12+
#endif /* xlocale_wrapper_h */

Sources/xlocale_wrapper/xlocale_wrapper.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,3 @@ int vt_wcwidth_l(wchar_t wc, void *locale) {
1111
void *vt_newlocale(int mask, const char *locale, void *base) {
1212
return newlocale(mask, locale, (locale_t)base);
1313
}
14-
15-
void vt_freelocale(void *locale) {
16-
freelocale((locale_t)locale);
17-
}
18-
19-
#if __APPLE__
20-
#define LC_CTYPE_MASK (1 << 1)
21-
#endif

0 commit comments

Comments
 (0)