summaryrefslogtreecommitdiff
path: root/usr.bin/yacc/defs.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2014-01-10 23:01:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2014-01-10 23:01:30 +0000
commit9fa2506e5a465739b0ac642d8a566f9b00b937ef (patch)
treea489a5dcd5beceb973675742606653c19abc6635 /usr.bin/yacc/defs.h
parent88d5a9850924c40640403be488d99c75e12237e0 (diff)
Use strtoul() to do octal and hex character conversion instead of
custom code.
Diffstat (limited to 'usr.bin/yacc/defs.h')
-rw-r--r--usr.bin/yacc/defs.h3
1 files changed, 1 insertions, 2 deletions
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')