# HG changeset patch # User diego # Date 1261337545 0 # Node ID 3acbd834b269e1c51924e3ff3356f74734f6c222 # Parent c3d96f2fb4c22bf38fb297a83040c1a31981dfba Eliminate completely pointless print_includes function. diff -r c3d96f2fb4c2 -r 3acbd834b269 vidix/pci_db2c.awk --- 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 " > 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 " > out_file; - print "#include \"pci_names.h\"" > out_file; -} - function print_head(out_file) { printf("/* File: %s\n", out_file) > out_file;