all names and they start a comment only at the start of the line.
+2002-03-30 Martin Mares <mj@ucw.cz>
+
+ * lib/names.c (parse_name_list): End-of-line comments are no longer
+ supported. Hashes are now perfectly valid in all names and they start
+ a comment only at the start of the line.
+
+ * pci.ids: Synchronized with the PCI ID database.
+
2002-03-26 Martin Mares <mj@ucw.cz>
* README: Rewritten.
/*
- * $Id: names.c,v 1.7 2002/03/24 12:14:40 mj Exp $
+ * $Id: names.c,v 1.8 2002/03/30 15:13:06 mj Exp $
*
* The PCI Library -- ID to Name Translation
*
lino++;
q = p;
while (*p && *p != '\n')
- {
- if (*p == '#')
- {
- *p++ = 0;
- while (*p && *p != '\n')
- p++;
- break;
- }
- p++;
- }
+ p++;
if (*p == '\n')
*p++ = 0;
- if (!*q)
+ if (!*q || *q == '#')
continue;
r = p;
while (r > q && r[-1] == ' ')