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

ben subversion at mplayerhq.hu
Sat Apr 7 13:30:48 CEST 2007


Author: ben
Date: Sat Apr  7 13:30:48 2007
New Revision: 22930

Modified:
   trunk/vidix/pci_db2c.awk

Log:
missing includes in generated file

Modified: trunk/vidix/pci_db2c.awk
==============================================================================
--- trunk/vidix/pci_db2c.awk	(original)
+++ trunk/vidix/pci_db2c.awk	Sat Apr  7 13:30:48 2007
@@ -29,6 +29,7 @@ BEGIN {
     print_head(name_file);
     print_head(name_h_file);
     print_head(dev_ids_file);
+    print_includes(dev_ids_file);
     print "#ifndef PCI_VENDORS_INCLUDED" >vendor_file
     print "#define PCI_VENDORS_INCLUDED 1">vendor_file
     print "" >vendor_file
@@ -108,6 +109,13 @@ BEGIN {
     print_func_bodies(name_file);
 }
 
+function print_includes(out_file)
+{
+    print "#include <stdlib.h>" >out_file;
+    print "#include \"pci_names.h\"" >out_file;
+    return;
+}
+
 function print_head( out_file)
 {
     print "/*" >out_file;



More information about the MPlayer-cvslog mailing list