summaryrefslogtreecommitdiffstats
path: root/vidix/pci_db2c.awk
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-20 17:49:07 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-12-20 17:49:07 +0000
commit48ed8799acb00009b73e6044a6305bf66ec6a780 (patch)
tree76efd0fc7ee3cbc67b97901e53391a01b343b44d /vidix/pci_db2c.awk
parent032a7778277dda380f6bea1e3d7e1b1aa7f15807 (diff)
downloadmpv-48ed8799acb00009b73e6044a6305bf66ec6a780.tar.bz2
mpv-48ed8799acb00009b73e6044a6305bf66ec6a780.tar.xz
Do not autogenerate vidix/pci_names.h.
Its contents is always the same, so there is no point in generating it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30088 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix/pci_db2c.awk')
-rwxr-xr-xvidix/pci_db2c.awk21
1 files changed, 0 insertions, 21 deletions
diff --git a/vidix/pci_db2c.awk b/vidix/pci_db2c.awk
index 5c1ad8d27a..f54a29fb35 100755
--- a/vidix/pci_db2c.awk
+++ b/vidix/pci_db2c.awk
@@ -35,23 +35,19 @@ BEGIN {
vendor_file = "vidix/pci_vendors.h";
ids_file = "vidix/pci_ids.h"
name_file = "vidix/pci_names.c"
- name_h_file = "vidix/pci_names.h"
dev_ids_file = "vidix/pci_dev_ids.c"
line = 0;
# print out head lines
print_head(vendor_file);
print_head(ids_file);
print_head(name_file);
- print_head(name_h_file);
print_head(dev_ids_file);
print_includes(dev_ids_file);
print_guards_start(vendor_file);
- print_guards_start(name_h_file);
print_guards_start(ids_file);
print "#include \"pci_vendors.h\"" > ids_file
print "" > ids_file
- print_name_struct(name_h_file);
print "#include <stddef.h>" > name_file
print "#include \"pci_names.h\"" > name_file
if (with_pci_db) {
@@ -105,7 +101,6 @@ BEGIN {
}
#print "Total lines parsed:", line;
print_guards_end(vendor_file);
- print_guards_end(name_h_file);
print_guards_end(ids_file);
if (with_pci_db) print "};" > name_file
print "{ 0xFFFF, NULL }" > dev_ids_file;
@@ -148,22 +143,6 @@ function print_head(out_file)
print "" > out_file
}
-function print_name_struct(out_file)
-{
- print "struct device_id_s {" > out_file
- print " unsigned short id;" > out_file
- print " const char *name;" > out_file
- print "};" > out_file
- print "" > out_file
- print "struct vendor_id_s {" > out_file
- print " unsigned short id;" > out_file
- print " const char *name;" > out_file
- print " const struct device_id_s *dev_list;" > out_file
- print "};" > out_file
- print "const char *pci_vendor_name(unsigned short id);" > out_file
- print "const char *pci_device_name(unsigned short vendor_id, unsigned short device_id);" > out_file
-}
-
function print_func_bodies(out_file)
{
print "" > out_file