summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2012-04-18 17:18:11 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2012-04-18 17:18:11 +0000
commit27c1b33a7ab5f13ad9e08e627863fc1cd8f7b8e8 (patch)
treea2b61bc59e17a81d893702294e58aa69084f6de1
parent03e672f665c33441def1c29195b0315654856ff1 (diff)
Put decent prefixes in the symbolic constants for GIO IDs in the generated
files, for them to become useful.
-rw-r--r--sys/arch/sgi/gio/devlist2h.awk9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/sgi/gio/devlist2h.awk b/sys/arch/sgi/gio/devlist2h.awk
index 361a2eb2a25..3dddee47882 100644
--- a/sys/arch/sgi/gio/devlist2h.awk
+++ b/sys/arch/sgi/gio/devlist2h.awk
@@ -1,5 +1,5 @@
#! /usr/bin/awk -f
-# $OpenBSD: devlist2h.awk,v 1.1 2012/03/28 20:44:23 miod Exp $
+# $OpenBSD: devlist2h.awk,v 1.2 2012/04/18 17:18:10 miod Exp $
# $NetBSD: devlist2h.awk,v 1.5 2008/05/02 18:11:05 martin Exp $
#
# Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -140,10 +140,11 @@ END {
printf("\n") > hfile
for (i = 1; i <= nproducts; i++) {
- printf("#define %s\t%s\t/* %s */\n", products[i, 1], products[i,2], products[i, 3]) > hfile
+ printf("#define GIO_PRODUCT_%s\t%s\t/* %s */\n",
+ products[i, 1], products[i,2], products[i, 3]) > hfile
- printf("\t{ %s, \"%s\" },\n",
- products[i, 2], products[i, 3]) > dfile
+ printf("\t{ GIO_PRODUCT_%s, \"%s\" },\n",
+ products[i, 1], products[i, 3]) > dfile
}
printf("\t{ 0, NULL }\n") > dfile
printf("};\n") > dfile