changeset 30048:3acbd834b269

Eliminate completely pointless print_includes function.
author diego
date Sun, 20 Dec 2009 19:32:25 +0000
parents c3d96f2fb4c2
children dde551eed572
files vidix/pci_db2c.awk
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/pci_db2c.awk	Sun Dec 20 19:12:20 2009 +0000
+++ b/vidix/pci_db2c.awk	Sun Dec 20 19:32:25 2009 +0000
@@ -42,7 +42,9 @@
     print_head(ids_file);
     print_head(name_file);
     print_head(dev_ids_file);
-    print_includes(dev_ids_file);
+    print "#include <stdlib.h>" > dev_ids_file;
+    print "#include \"pci_names.h\"" > dev_ids_file;
+
     print_guards_start(vendor_file);
     print_guards_start(ids_file);
     print "#include \"pci_vendors.h\"" > ids_file
@@ -130,12 +132,6 @@
     printf("#endif /* %s */\n", guard_name) > out_file
 }
 
-function print_includes(out_file)
-{
-    print "#include <stdlib.h>" > out_file;
-    print "#include \"pci_names.h\"" > out_file;
-}
-
 function print_head(out_file)
 {
     printf("/* File: %s\n", out_file) > out_file;