Mercurial > mplayer.hg
comparison vidix/pci_db2c.awk @ 26979:caa5f90c7cb0
remove C++ inclusion guard from vidix headers
author | ben |
---|---|
date | Sat, 07 Jun 2008 11:47:33 +0000 |
parents | 3abd1629658b |
children | 9e739bdb049c |
comparison
equal
deleted
inserted
replaced
26978:53ae66ee504e | 26979:caa5f90c7cb0 |
---|---|
143 return; | 143 return; |
144 } | 144 } |
145 | 145 |
146 function print_name_struct(out_file) | 146 function print_name_struct(out_file) |
147 { | 147 { |
148 print "#ifdef __cplusplus" >out_file | |
149 print "extern \"C\" {" >out_file | |
150 print "#endif" >out_file | |
151 print "">out_file | 148 print "">out_file |
152 print "struct device_id_s" >out_file | 149 print "struct device_id_s" >out_file |
153 print "{" >out_file | 150 print "{" >out_file |
154 print "\tunsigned short\tid;" >out_file | 151 print "\tunsigned short\tid;" >out_file |
155 print "\tconst char *\tname;" >out_file | 152 print "\tconst char *\tname;" >out_file |
162 print "\tconst struct device_id_s *\tdev_list;" >out_file | 159 print "\tconst struct device_id_s *\tdev_list;" >out_file |
163 print "};" >out_file | 160 print "};" >out_file |
164 print "extern const char *pci_vendor_name(unsigned short id);">out_file | 161 print "extern const char *pci_vendor_name(unsigned short id);">out_file |
165 print "extern const char *pci_device_name(unsigned short vendor_id, unsigned short device_id);">out_file | 162 print "extern const char *pci_device_name(unsigned short vendor_id, unsigned short device_id);">out_file |
166 print "">out_file | 163 print "">out_file |
167 print "#ifdef __cplusplus" >out_file | |
168 print "}" >out_file | |
169 print "#endif" >out_file | |
170 return | 164 return |
171 } | 165 } |
172 | 166 |
173 function print_func_bodies(out_file) | 167 function print_func_bodies(out_file) |
174 { | 168 { |