From 9fa2506e5a465739b0ac642d8a566f9b00b937ef Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 10 Jan 2014 23:01:30 +0000 Subject: Use strtoul() to do octal and hex character conversion instead of custom code. --- usr.bin/yacc/defs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.bin/yacc/defs.h') diff --git a/usr.bin/yacc/defs.h b/usr.bin/yacc/defs.h index 1817db7d075..a67a399d3a4 100644 --- a/usr.bin/yacc/defs.h +++ b/usr.bin/yacc/defs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: defs.h,v 1.15 2014/01/08 23:12:57 millert Exp $ */ +/* $OpenBSD: defs.h,v 1.16 2014/01/10 23:01:29 millert Exp $ */ /* $NetBSD: defs.h,v 1.6 1996/03/19 03:21:30 jtc Exp $ */ /* @@ -125,7 +125,6 @@ /* character macros */ #define IS_IDENT(c) (isalnum(c) || (c) == '_' || (c) == '.' || (c) == '$') -#define IS_OCTAL(c) ((c) >= '0' && (c) <= '7') #define NUMERIC_VALUE(c) ((c) - '0') -- cgit v1.2.3