Mercurial > mplayer.hg
comparison vidix/pci_db2c.awk @ 22912:20c5536265da
missing includes in generated file
author | ben |
---|---|
date | Sat, 07 Apr 2007 11:30:48 +0000 |
parents | c3567df39aff |
children | 99c7b632130d |
comparison
equal
deleted
inserted
replaced
22911:c3567df39aff | 22912:20c5536265da |
---|---|
27 print_head(vendor_file); | 27 print_head(vendor_file); |
28 print_head(ids_file); | 28 print_head(ids_file); |
29 print_head(name_file); | 29 print_head(name_file); |
30 print_head(name_h_file); | 30 print_head(name_h_file); |
31 print_head(dev_ids_file); | 31 print_head(dev_ids_file); |
32 print_includes(dev_ids_file); | |
32 print "#ifndef PCI_VENDORS_INCLUDED" >vendor_file | 33 print "#ifndef PCI_VENDORS_INCLUDED" >vendor_file |
33 print "#define PCI_VENDORS_INCLUDED 1">vendor_file | 34 print "#define PCI_VENDORS_INCLUDED 1">vendor_file |
34 print "" >vendor_file | 35 print "" >vendor_file |
35 print "#ifndef PCI_IDS_INCLUDED" >ids_file | 36 print "#ifndef PCI_IDS_INCLUDED" >ids_file |
36 print "#define PCI_IDS_INCLUDED 1">ids_file | 37 print "#define PCI_IDS_INCLUDED 1">ids_file |
106 print "{ 0xFFFF, NULL }" >dev_ids_file; | 107 print "{ 0xFFFF, NULL }" >dev_ids_file; |
107 print "};">dev_ids_file | 108 print "};">dev_ids_file |
108 print_func_bodies(name_file); | 109 print_func_bodies(name_file); |
109 } | 110 } |
110 | 111 |
112 function print_includes(out_file) | |
113 { | |
114 print "#include <stdlib.h>" >out_file; | |
115 print "#include \"pci_names.h\"" >out_file; | |
116 return; | |
117 } | |
118 | |
111 function print_head( out_file) | 119 function print_head( out_file) |
112 { | 120 { |
113 print "/*" >out_file; | 121 print "/*" >out_file; |
114 printf(" * File: %s\n", out_file) >out_file; | 122 printf(" * File: %s\n", out_file) >out_file; |
115 printf(" * This file was generated automatically. Don't modify it.\n") >out_file; | 123 printf(" * This file was generated automatically. Don't modify it.\n") >out_file; |