diff options
author | 2007-02-21 13:17:28 +0000 | |
---|---|---|
committer | 2007-02-21 13:17:28 +0000 | |
commit | 10b0ed54f951cbd849e0a7ce33f0583363176b7e (patch) | |
tree | 1396bb6c9a1942dc6ff1d14e256d067b7e853906 | |
parent | hand-cruft an isprint() for deciding which characters to echo to the (diff) | |
download | wireguard-openbsd-10b0ed54f951cbd849e0a7ce33f0583363176b7e.tar.xz wireguard-openbsd-10b0ed54f951cbd849e0a7ce33f0583363176b7e.zip |
put structs after copyright notice; ok dlg
-rw-r--r-- | sys/dev/pci/devlist2h.awk | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/sys/dev/pci/devlist2h.awk b/sys/dev/pci/devlist2h.awk index c15a3e125a5..3ce03b07214 100644 --- a/sys/dev/pci/devlist2h.awk +++ b/sys/dev/pci/devlist2h.awk @@ -1,5 +1,5 @@ #! /usr/bin/awk -f -# $OpenBSD: devlist2h.awk,v 1.7 2007/02/21 13:08:22 dlg Exp $ +# $OpenBSD: devlist2h.awk,v 1.8 2007/02/21 13:17:28 deraadt Exp $ # $NetBSD: devlist2h.awk,v 1.2 1996/01/22 21:08:09 cgd Exp $ # # Copyright (c) 1995, 1996 Christopher G. Demetriou @@ -47,18 +47,6 @@ NR == 1 { printf(" *\t%s\n", VERSION) > dfile printf(" */\n\n") > dfile - printf("/* Descriptions of known vendors and devices. */\n") > dfile - printf("struct pci_known_vendor {\n") > dfile - printf("\tpci_vendor_id_t vendor;\n") > dfile - printf("\tconst char *vendorname;\n") > dfile - printf("};\n\n") > dfile - - printf("struct pci_known_product {\n") > dfile - printf("\tpci_vendor_id_t vendor;\n") > dfile - printf("\tpci_product_id_t product;\n") > dfile - printf("\tconst char *productname;\n") > dfile - printf("};\n\n") > dfile - printf("/*\n") > hfile printf(" * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.\n") \ > hfile @@ -179,6 +167,19 @@ END { if (nvendor_dup > 0) exit(1); + printf("/* Descriptions of known vendors and devices. */\n") > dfile + printf("struct pci_known_vendor {\n") > dfile + printf("\tpci_vendor_id_t vendor;\n") > dfile + printf("\tconst char *vendorname;\n") > dfile + printf("};\n\n") > dfile + + printf("struct pci_known_product {\n") > dfile + printf("\tpci_vendor_id_t vendor;\n") > dfile + printf("\tpci_product_id_t product;\n") > dfile + printf("\tconst char *productname;\n") > dfile + printf("};\n\n") > dfile + + printf("static const struct pci_known_product pci_known_products[] = {\n") \ > dfile for (i = 1; i <= nproducts; i++) { |