Commit Graph
37 Commits
Author SHA1 Message Date
bentley 157fda2bc8 xlink: fix usage printing to match new options (and rgbfix format) 2010-01-15 00:29:10 -07:00
bentley c5ce3ae178 xlink: use getopt(3) instead of hand-rolled flag parsing 2010-01-15 00:23:59 -07:00
bentley 0017a93a13 minor: finish removing unused var temptext 2010-01-14 23:47:10 -07:00
bentley 0b08fca9f2 xlink: replace awkward fatalerror() with standard errx(3)
fatalerror() prints a given string to stdout and exits(5). It
cannot format text, so there was a string temptext used with
sprintf() to format text and pass it to fatalerror().

errx() can format text, and it prints to stderr.

As a bonus, this fixes the linking warnings from use of sprintf().
2010-01-14 23:17:22 -07:00
bentley bb85782faa this is a bourne script, bash is not needed
Don't use /bin/bash ! Many systems do not have bash there (they
might have it at /usr/local/bin/bash, for example). Don't specify
bash unless you specifically need bash features -- many systems
do not have bash installed by default.
2010-01-14 22:16:59 -07:00
bentley b69cd0c345 -v doesn't need to modify ROM size; -p can do that 2010-01-13 11:22:56 -07:00
bentley 2da63e2f7d cosmetic change: rearrange getopt() switch for easier reading
cases are put in alphabetical order, to match the getopt string.
2010-01-13 10:08:23 -07:00
bentley 0b647c5a25 move color only flag to -c, color compatible flag to -C 2010-01-13 10:04:42 -07:00
bentley 2d5c193e6d move MBC option from -b to -m 2010-01-13 09:50:02 -07:00
bentley cd52e3c56c move ramsize option from -m to -r 2010-01-13 09:48:13 -07:00
bentley 5931973029 fix compile error on Linux 2010-01-13 08:26:48 -07:00
bentley a913dc01b5 remove unused variable argn (no longer needed due to getopt(3) usage) 2010-01-13 07:33:02 -07:00
bentley 9da8db3ce1 fix cast warnings 2010-01-13 07:31:34 -07:00
bentley cdb90cea29 remove archaic 512KiB error, replace with 8MiB warning 2010-01-12 22:46:53 -07:00
bentley d0a03bc99b pad option now changes the ROM size at 0x148 2010-01-12 22:40:37 -07:00
bentley cba8933c11 remove unneeded carttype checking in -v
To simplify the code, remove the carttype work in the -v option.
Because the MBC option already alters it, this one is superfluous.
2010-01-12 21:21:48 -07:00
bentley b2a4f54f59 rename PrintUsage() to usage(), and return EX_USAGE 2010-01-12 19:52:42 -07:00
bentley 5fe2bcbeed use errx(3) and warnx(3) instead of rolling our own error functions 2010-01-12 19:44:21 -07:00
bentley fd9901a280 remove the -r (truncate) option
I can't think of a single use case for the -r (truncate) option.
It has been removed to make the code simpler.

If you do use it and have good reason to do so, let me know and I
will consider putting it back in.
2010-01-12 19:05:23 -07:00
Anthony Bentley b6a50a3afc added -q to the documentation 2009-11-08 21:27:15 -07:00
Anthony Bentley db0667e54e added a command line option -q for quiet mode (suppresses messages except errors) (lmod) 2009-11-08 20:28:24 -07:00
Anthony Bentley b7ca2e2b87 rgbfix: add warning function, separate output between stdout and stderr (lmod) 2009-11-08 19:49:02 -07:00
Anthony Bentley be13e051f4 xlib: separate output between stdout and stderr (from lmod) 2009-11-08 19:28:59 -07:00
Anthony Bentley 46c131bc86 more HTML formatting gunk 2009-11-08 18:47:28 -07:00
Anthony Bentley 42007c5c92 remove HTML formatting gunk from a lot of the docs 2009-11-06 23:01:00 -07:00
Anthony Bentley e1f5352ba5 makefile now works with BSD make 2009-11-06 18:37:47 -07:00
Anthony Bentley 8cbc2f4471 use ${CC} and ${YACC} instead of hardcoded programs 2009-11-06 14:59:16 -07:00
Anthony Bentley 8fd364a1a6 document partial binary includes 2009-09-12 18:53:03 -06:00
Anthony Bentley 6c1dd85c9a add support for partial binary includes (from lmod00) 2009-09-12 18:46:08 -06:00
Anthony Bentley 7d0dd140c3 create stylesheet and link to it
Created a simple stylesheet, linked to it, and removed body color
attributes defined there. This reduces repetition and separates
style and presentation.
2009-09-12 17:49:54 -06:00
Anthony Bentley 171061f3a3 Replaced needless anchors with IDs 2009-09-12 17:10:31 -06:00
Anthony Bentley cd2e59fc8c converted DOS linebreaks to UNIX 2009-09-12 16:47:49 -06:00
Anthony Bentley 3eb060b017 HTML4 Transitional doctype
This is so the HTML can be made simpler later on.
2009-09-12 16:14:08 -06:00
Anthony Bentley 1c734a015d correct error in documentation 2009-09-12 06:40:24 -06:00
Anthony Bentley 792fb5ef94 Put in the original license 2009-09-11 22:45:47 -06:00
Anthony Bentley c0031dad51 use [b]yacc instead of bison by default
This is scratching my own itch--OpenBSD has byacc in the base
distribution, whereas bison is another program to install.
2009-09-11 22:01:49 -06:00
Anthony Bentley 50a8bbd414 Make grammar specifications yacc-compatible 2009-09-11 21:40:39 -06:00