Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen adapt for vis()/svis() check separation



details:   https://anonhg.NetBSD.org/src/rev/40d688edc15d
branches:  trunk
changeset: 533538:40d688edc15d
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jul 03 17:18:09 2002 +0000

description:
adapt for vis()/svis() check separation

diffstat:

 lib/libc/gen/unvis.c |  6 +++---
 lib/libc/gen/vis.c   |  9 +++++----
 2 files changed, 8 insertions(+), 7 deletions(-)

diffs (65 lines):

diff -r b15c6a98cd3d -r 40d688edc15d lib/libc/gen/unvis.c
--- a/lib/libc/gen/unvis.c      Wed Jul 03 17:17:35 2002 +0000
+++ b/lib/libc/gen/unvis.c      Wed Jul 03 17:18:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unvis.c,v 1.22 2002/03/23 17:38:27 christos Exp $      */
+/*     $NetBSD: unvis.c,v 1.23 2002/07/03 17:18:10 pooka Exp $ */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)unvis.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: unvis.c,v 1.22 2002/03/23 17:38:27 christos Exp $");
+__RCSID("$NetBSD: unvis.c,v 1.23 2002/07/03 17:18:10 pooka Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -62,7 +62,7 @@
     "warning: reference to compatibility unvis(); include <vis.h> for correct reference")
 #endif
 
-#if !HAVE_VIS_H
+#if !HAVE_VIS
 /*
  * decode driven by state machine
  */
diff -r b15c6a98cd3d -r 40d688edc15d lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c        Wed Jul 03 17:17:35 2002 +0000
+++ b/lib/libc/gen/vis.c        Wed Jul 03 17:18:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vis.c,v 1.23 2002/05/26 14:03:20 wiz Exp $     */
+/*     $NetBSD: vis.c,v 1.24 2002/07/03 17:18:09 pooka Exp $   */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.23 2002/05/26 14:03:20 wiz Exp $");
+__RCSID("$NetBSD: vis.c,v 1.24 2002/07/03 17:18:09 pooka Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -55,7 +55,7 @@
 __weak_alias(vis,_vis)
 #endif
 
-#if !HAVE_VIS_H
+#if !HAVE_VIS || !HAVE_SVIS
 #include <ctype.h>
 #include <limits.h>
 #include <stdio.h>
@@ -277,8 +277,9 @@
        *dst = '\0';
        return (dst - start);
 }
+#endif
 
-
+#if !HAVE_VIS
 /*
  * vis - visually encode characters
  */



Home | Main Index | Thread Index | Old Index