Pull in roken and use ROKEN_CPP_BEGIN/ROKEN_CPP_END instead of cdecl
This commit is contained in:
@@ -44,6 +44,8 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#include <roken.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* to select alternate encoding format
|
* to select alternate encoding format
|
||||||
*/
|
*/
|
||||||
@@ -80,9 +82,8 @@
|
|||||||
*/
|
*/
|
||||||
#define UNVIS_END 1 /* no more characters */
|
#define UNVIS_END 1 /* no more characters */
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
ROKEN_CPP_START
|
||||||
|
|
||||||
__BEGIN_DECLS
|
|
||||||
char * ROKEN_LIB_FUNCTION
|
char * ROKEN_LIB_FUNCTION
|
||||||
rk_vis(char *, int, int, int);
|
rk_vis(char *, int, int, int);
|
||||||
char * ROKEN_LIB_FUNCTION
|
char * ROKEN_LIB_FUNCTION
|
||||||
@@ -101,7 +102,7 @@ int ROKEN_LIB_FUNCTION
|
|||||||
rk_strunvisx(char *, const char *, int);
|
rk_strunvisx(char *, const char *, int);
|
||||||
int ROKEN_LIB_FUNCTION
|
int ROKEN_LIB_FUNCTION
|
||||||
rk_unvis(char *, int, int *, int);
|
rk_unvis(char *, int, int *, int);
|
||||||
__END_DECLS
|
ROKEN_CPP_END
|
||||||
|
|
||||||
#undef vis
|
#undef vis
|
||||||
#define vis(a,b,c,d) rk_vis(a,b,c,d)
|
#define vis(a,b,c,d) rk_vis(a,b,c,d)
|
||||||
|
Reference in New Issue
Block a user