2004-10-31  Scott James Remnant  <scott@netsplit.com>

	* configure.ac: Add check for size_t
	(AC_INIT): Bump version to 0.1.0
	* NEWS: Add date for 0.1.0 release.

	* README: Document the couple of notes we've obtained so far, and
	generally introduce the software.
	* src/grepmap.c: Remove ccwmap and isapnpmap for now.
	(_print_usage): Add some help for the map type arguments, not much,
	but enough to hint what's happening.
	* doc/C/grepmap.8: Add manual page.
	* Makefile.am (SUBDIRS): Add doc
	* configure.ac (AC_CONFIG_FILES): Add doc/Makefile
	* doc/Makefile.am (man_MANS, EXTRA_DIST): Add C/grepmap.8

	* src/ieee1394map.c (ieee1394map_modules): Parse modules.ieee1394map
	files (firewire, if you prefer), a nice and easy one.
	* src/grepmap.c: Add ieee1394map_modules to map_info table,
	only three arguments for this one.
	* src/grepmap.h (ieee1394map_modules): Add prototype.
	* src/Makefile.am (grepmap_SOURCES): Add ieee1394map.c
	* tests/ieee1394map.at: Test suite for ieee1394map parsing.
	* tests/testsuite.at: Include ieee1394map.at
	* tests/Makefile.am (TESTSUITE_GROUPS): Add ieee1394map.at

	* tests/inputmap.at: Test suite for inputmap parsing.
	* tests/testsuite.at: Include inputmap.at
	* tests/Makefile.am (TESTSUITE_GROUPS): Add inputmap.at
	* src/inputmap.c (inputmap_modules): Add a note about the possibly
	bogus version test (I'm being bug-compatible with hotplug for now).
	* tests/usbmap.at (usbmap ignores comments): Correct title, comments
	not commands, oops.

	* src/inputmap.c (_parse_array): The array is given by the kernel
	in reverse, and length matters for matching; load it in reverse
	and shift it up to the front afterwards.
	(inputmap_modules): Empty strings are valid, so remove any checking
	of the array -- it'll simply return a zero set.

2004-10-30  Scott James Remnant  <scott@netsplit.com>

	* src/inputmap.c (inputmap_modules): Parse modules.inputmap file,
	an evil format involving many values and colon-separated arrays.
	(_parse_array): Helper function to parse colon-separated arrays.
	(_match_array): Helper function to compare two arrays as mask/value.
	* src/grepmap.h (FLAG_SET): Generically useful, so move to the
	header rather than hiding in usbmap.c
	(inputmap_modules): Add inputmap_modules prototype.
	* src/usbmap.c (usbmap_modules): Use < rather than != to check
	sscanf() return value.  Test flags first rather than values.
	* src/pcimap.c (pcimap_modules): Likewise, and as PCI_ANY is the
	more common case check for it first.
	* src/util.c (fgets_alloc): Use a static line buffer for performance
	and increase in allocations of BUFSIZ, not 5 (debugging debris).
	* src/grepmap.c: Add inputmap_modules to map_info table, an
	incredible 12 arguments required.
	* src/Makefile.am (grepmap_SOURCES): Add inputmap.c

	* tests/usbmap.at (usbmap obeys device range): test an exact
	version match.

2004-10-29  Scott James Remnant  <scott@netsplit.com>

	* src/grepmap.c: Add function to MapFileTypeInfo structure and
	associate it in the map_info list to the right ones.  Set number
	of arguments for usbmap (a whopping 9!).
	(main): Call the function through the table rather than a switch.
	* src/usbmap.c (usbmap_modules): Implement modules.usbmap parsing.
	* src/Makefile.am (grepmap_SOURCES): Add usbmap.c
	* tests/usbmap.at: Test usbmap functionality.
	* tests/Makefile.am (TESTSUITE_GROUPS): Add usbmap.at
	* tests/testsuite.at: Include usbmap.at

	* tests/Makefile.am (EXTRA_DIST): Make sure the testsuite group
	files actually get put in the tarball, just in case users feel like
	editing them.

	* tests/Makefile.am (distclean-local): Add missing distclean rule
	to clean out stuff so distcheck works.

	* src/pcimap.c (pcimap_modules): Implement modules.pcimap parsing.
	* src/util.c (fgets_alloc): New function to do an allocating fgets.
	(parse_hex): New function to parse a hexadecimal value.
	* src/grepmap.c (suggest_help): Promote to extern.
	* tests/testsuite.at: Add test suite and include pcimap.at.
	* tests/pcimap.at: Test pcimap functionality.
	* configure.ac: Add AC_CONFIG_TESTDIR, check for autom4te and output
	tests/Makefile, add bug report address.
	* Makefile.am (SUBDIRS): Add tests sub-directory.
	* tests/Makefile.am: Write based on autotest example.

	* src/grepmap.c (main): Save return value from pcimap_modules
	and exit with it later, rather than immediately.
	* src/Makefile.am (grepmap_SOURCES): Add util.c.

	* src/grepmap.c (main): Add a single map_info array to record
	various things about each map type.  Check the number of extra
	arguments matches those needed for the given map type.
	Call pcimap_modules with arguments for the pcimap file type.
	(_map_filename): Use new map_info array.
	* src/pcimap.c (pcimap_modules): New function in a new file.
	* src/Makefile.am (grepmap_SOURCES): Add pcimap.c.

	* src/grepmap.c (main): Move --help and --version's values out
	of the way of others.  Add various map type options, allow only
	one to be specified at a time, fail if none are specified.
	(_print_usage): Document the map type options, flesh out the
	long description a little.
	(_suggest_help): Simple function for when the user needs help.

	* src/grepmap.h: Make program_name available to other files.

	* src/grepmap.c (main): Add -k/--kernel and -f/--file options,
	open the map file and close it when done. --file=- is stdin.
	(_map_filename): New function to construct path	to a map file.
	(_print_usage): Document new options, remove -h and -V as short
	options for --help and --version, use multi-line strings for
	easier translation.
	(_print_version): Use multi-line strings for easier translation.

	* configure.ac: Remove dist-bzip2 from AM_INIT_AUTOMAKE call,
	add AC_CONFIG_MACRO_DIR.
	* src/Makefile.am (INCLUDES): Add -I to intl directory for
	systems without gettext.
	(grepmap_LDADD): Rename grepmap_LIBS to correct name.

2004-10-28  Scott James Remnant  <scott@netsplit.com>

	* src/grepmap.c (main): Gettext initialisation and getopt loop.
	(_print_usage): Prints usage instructions.
	(_print_version): Prints version information.
	* src/grepmap.h: Include gettext.h header and define friendlier
	forms.
	* configure.ac: Correct copyright to include year, oops.
	Check for 'src/grepmap.c' rather than 'src/main.c'.
	Check for C 'const' keyword.
	Check for 'getopt.h' header.
	* m4/compiler.m4: Put -Werror back, removed due to error.
	* src/Makefile.am (INCLUDES): Add gettext magic.
	(grepmap_SOURCES): compile grepmap.c and grepmap.h.

	* ChangeLog: Project started.

