Source-Changes-HG archive

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

[src/netbsd-10]: src/usr.bin/m4 Pull up following revision(s) (requested by l...



details:   https://anonhg.NetBSD.org/src/rev/6cfb478657b4
branches:  netbsd-10
changeset: 376047:6cfb478657b4
user:      martin <martin%NetBSD.org@localhost>
date:      Sun May 28 10:07:11 2023 +0000

description:
Pull up following revision(s) (requested by lukem in ticket #181):

        usr.bin/m4/gnum4.c: revision 1.13

use strchr

diffstat:

 usr.bin/m4/gnum4.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6292fe82c294 -r 6cfb478657b4 usr.bin/m4/gnum4.c
--- a/usr.bin/m4/gnum4.c        Sun May 28 10:03:54 2023 +0000
+++ b/usr.bin/m4/gnum4.c        Sun May 28 10:07:11 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gnum4.c,v 1.11.2.1 2023/05/28 10:03:54 martin Exp $ */
+/* $NetBSD: gnum4.c,v 1.11.2.2 2023/05/28 10:07:11 martin Exp $ */
 /* $OpenBSD: gnum4.c,v 1.39 2008/08/21 21:01:04 espie Exp $ */
 
 /*
@@ -33,7 +33,7 @@
 #include "nbtool_config.h"
 #endif
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: gnum4.c,v 1.11.2.1 2023/05/28 10:03:54 martin Exp $");
+__RCSID("$NetBSD: gnum4.c,v 1.11.2.2 2023/05/28 10:07:11 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -438,7 +438,7 @@ twiddle(const char *p)
                        p+=2;
                        continue;
                }
-               if (*p == '(' || *p == ')' || *p == '|' || *p == '{' || *p == '}')
+               if (strchr("()|{}", *p) != NULL)
                        addchar('\\');
 
                addchar(*p);



Home | Main Index | Thread Index | Old Index