# HG changeset patch # User diego # Date 1203634630 0 # Node ID a1e19c442cabf95e103f2b2086f2f1e01219e915 # Parent abe81d89c6a89b80604540debc390c8df23e06af Create standard multiple inclusion guards. diff -r abe81d89c6a8 -r a1e19c442cab vidix/pci_db2c.awk --- a/vidix/pci_db2c.awk Thu Feb 21 22:30:49 2008 +0000 +++ b/vidix/pci_db2c.awk Thu Feb 21 22:57:10 2008 +0000 @@ -46,17 +46,17 @@ 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 "#ifndef PCI_VENDORS_H" >vendor_file + print "#define PCI_VENDORS_H">vendor_file print "" >vendor_file - print "#ifndef PCI_IDS_INCLUDED" >ids_file - print "#define PCI_IDS_INCLUDED 1">ids_file + print "#ifndef PCI_IDS_H" >ids_file + print "#define PCI_IDS_H">ids_file print "" >ids_file print "#include \"pci_vendors.h\"">ids_file print "" >ids_file - print "#ifndef PCI_NAMES_INCLUDED" >name_h_file - print "#define PCI_NAMES_INCLUDED 1">name_h_file + print "#ifndef PCI_NAMES_H" >name_h_file + print "#define PCI_NAMES_H">name_h_file print "" >name_h_file print_name_struct(name_h_file); print "#include ">name_file @@ -116,11 +116,11 @@ } #print "Total lines parsed:", line; print "">vendor_file - print "#endif/*PCI_VENDORS_INCLUDED*/">vendor_file + print "#endif /* PCI_VENDORS_H */">vendor_file print "">ids_file - print "#endif/*PCI_IDS_INCLUDED*/">ids_file + print "#endif /* PCI_IDS_H */">ids_file print "">name_h_file - print "#endif/*PCI_NAMES_INCLUDED*/">name_h_file + print "#endif /* PCI_NAMES_H */">name_h_file if (with_pci_db) print "};">name_file print "{ 0xFFFF, NULL }" >dev_ids_file; print "};">dev_ids_file