From 8040c1e1ae76c8a2a4275b873e3df330e06155de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 15 Dec 2006 11:49:22 +0000 Subject: [PATCH] Include rk_versions. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19340 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/vis.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/lib/roken/vis.c b/lib/roken/vis.c index 13ce0aa89..55a4d76c6 100644 --- a/lib/roken/vis.c +++ b/lib/roken/vis.c @@ -222,7 +222,7 @@ do { \ * svis - visually encode characters, also encoding the characters * pointed to by `extra' */ -#ifndef HAVE_SVIS + char * ROKEN_LIB_FUNCTION rk_svis(char *dst, int c, int flag, int nextc, const char *extra) { @@ -233,7 +233,6 @@ rk_svis(char *dst, int c, int flag, int nextc, const char *extra) *dst = '\0'; return(dst); } -#endif /* @@ -251,7 +250,7 @@ rk_svis(char *dst, int c, int flag, int nextc, const char *extra) * Strsvisx encodes exactly len bytes from src into dst. * This is useful for encoding a block of data. */ -#ifndef HAVE_STRSVIS + int ROKEN_LIB_FUNCTION rk_strsvis(char *dst, const char *src, int flag, const char *extra) { @@ -267,10 +266,8 @@ rk_strsvis(char *dst, const char *src, int flag, const char *extra) *dst = '\0'; return (dst - start); } -#endif -#ifndef HAVE_STRVISX int ROKEN_LIB_FUNCTION rk_strsvisx(char *dst, const char *src, size_t len, int flag, const char *extra) { @@ -288,13 +285,11 @@ rk_strsvisx(char *dst, const char *src, size_t len, int flag, const char *extra) *dst = '\0'; return (dst - start); } -#endif /* * vis - visually encode characters */ -#ifndef HAVE_VIS char * ROKEN_LIB_FUNCTION rk_vis(char *dst, int c, int flag, int nextc) { @@ -307,7 +302,6 @@ rk_vis(char *dst, int c, int flag, int nextc) *dst = '\0'; return (dst); } -#endif /* @@ -320,19 +314,17 @@ rk_vis(char *dst, int c, int flag, int nextc) * Strvisx encodes exactly len bytes from src into dst. * This is useful for encoding a block of data. */ -#ifndef HAVE_STRVIS + int ROKEN_LIB_FUNCTION rk_strvis(char *dst, const char *src, int flag) { char extra[MAXEXTRAS]; MAKEEXTRALIST(flag, extra); - return (strsvis(dst, src, flag, extra)); + return (rk_strsvis(dst, src, flag, extra)); } -#endif -#ifndef HAVE_STRVISX int ROKEN_LIB_FUNCTION rk_strvisx(char *dst, const char *src, size_t len, int flag) { @@ -341,4 +333,3 @@ rk_strvisx(char *dst, const char *src, size_t len, int flag) MAKEEXTRALIST(flag, extra); return (rk_strsvisx(dst, src, len, flag, extra)); } -#endif