[MPlayer-cvslog] r30090 - trunk/vidix/pci_db2c.awk

diego subversion at mplayerhq.hu
Sun Dec 20 20:32:25 CET 2009


Author: diego
Date: Sun Dec 20 20:32:25 2009
New Revision: 30090

Log:
Eliminate completely pointless print_includes function.

Modified:
   trunk/vidix/pci_db2c.awk

Modified: trunk/vidix/pci_db2c.awk
==============================================================================
--- trunk/vidix/pci_db2c.awk	Sun Dec 20 20:12:20 2009	(r30089)
+++ trunk/vidix/pci_db2c.awk	Sun Dec 20 20:32:25 2009	(r30090)
@@ -42,7 +42,9 @@ BEGIN {
     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 @@ function print_guards_end(out_file)
     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;


More information about the MPlayer-cvslog mailing list