Commit Graph

35 Commits

Author SHA1 Message Date
Anthony J. Bentley
8534f3a148 Unify usage strings/functions across programs.
The funny spacing is to make it easier to keep to 80 characters/line.
2015-01-07 23:13:18 -07:00
Anthony J. Bentley
1e1339467e Use POSIX 2001 as the base standard. 2014-11-06 21:39:36 -07:00
stag019
80e2129f22 Merge https://github.com/bentley/rgbds
Conflicts:
	include/lib/types.h
	src/asm/symbol.c
2014-11-02 01:00:20 -05:00
Anthony J. Bentley
0d07caba60 Remove inconsistent version numbering. 2014-09-25 20:56:15 -06:00
Anthony J. Bentley
d7319ecd00 Remove rgblib.
I have never used it and it's probably been broken for years.
2014-09-24 03:03:42 -06:00
Anthony J. Bentley
d661b3a532 Now that we replace missing libc functions, switch back to err(). 2014-09-24 02:50:39 -06:00
stag019
c61c112218 Remove GNU-specific <getopt.h>. getopt() is defined in <unistd.h> in POSIX, which adding #define _XOPEN_SOURCE 500 causes GCC to include. 2013-12-23 14:57:06 -05:00
Vegard Nossum
eb4f790a82 Include getopt.h (fix compilation on GNU/Linux)
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2012-10-21 06:05:30 +02:00
Anthony J. Bentley
5d6559f15f Remove nonstandard <err.h>.
This provides some really nice functions, but does not exist in some
environments (particularly MinGW).
2011-12-02 01:23:23 -07:00
Anthony J. Bentley
b1a2c664a9 Revert use of system exit codes.
While well‐intentioned, in practice this hurts portability and
really, nobody checks the return codes anyway.
2011-06-04 21:33:03 -06:00
bentley
bd568d9afc rgblink: make usage() print better in a terminal window 2010-01-17 15:11:52 -07:00
bentley
02e6220742 standardize on -p for setting pad value 2010-01-15 20:04:37 -07:00
bentley
24c1613f06 remove mswin-type define -- this is UNIX 2010-01-15 16:35:10 -07:00
bentley
2648ee9811 rgblink: remove vestigial linkfile function 2010-01-15 14:33:49 -07:00
bentley
06c4e1fb4b rgblink: set default fill byte to 0x00 2010-01-15 13:11:14 -07:00
bentley
deccbb07e9 rgblink: remove random option for fill character 2010-01-15 13:05:16 -07:00
bentley
bfbc9fd101 while we're removing backwards compatibility, rename xlink->rgblink 2010-01-15 12:42:16 -07:00
bentley
084cc995e7 make >32KiB default; replace "-t s" with "-t" (tiny?) 2010-01-15 12:38:19 -07:00
bentley
367abd8396 remove psion2 compatibility; i doubt anyone uses it 2010-01-15 12:35:11 -07:00
bentley
97b9e822aa xlink: fix usage 2010-01-15 12:15:19 -07:00
bentley
755572c111 replace linkfile functionality with command-line options
Instead of running:
$ xlink linkfile.txt
where the linkfile looks like:
---
[Objects]
foo.o
bar.o

[Libraries]
foo.l
bar.l

[Output]
baz.gb
---
we now do:
$ xlink -o baz.gb -l foo.l -l bar.l foo.o bar.o
2010-01-15 10:52:38 -07:00
bentley
b223905e67 xlink: use some proper return values 2010-01-15 00:33:46 -07:00
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
anthony
8f5e767615 list new default init values in usage information (rgbasm, xlink) 2010-01-05 14:21:42 -07:00
anthony
8614871e68 change unitialized byte values in xlink to 0 2010-01-05 14:17:24 -07:00
anthony
a014537837 reran indent (whitespace changes)
Merging lai's source with this one is very irritating because
they have different indentation styles. I couldn't find what profile
vegard used for his version, so I used these flags (which should bring
the source close to KNF):
-bap
-br
-ce
-ci4
-cli0
-d0
-di0
-i8
-ip
-l79
-nbc
-ncdb
-ndj
-ei
-nfc1
-nlp
-npcs
-psl
-sc
-sob
2009-12-30 12:51:32 -07:00
Vegard Nossum
afe33e1162 link: move includes to include/link/
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 09:22:49 +02:00
Vegard Nossum
3c82b1ae03 Fixed warnings and some style issues
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 08:51:55 +02:00
Vegard Nossum
b6c749ffbd Run `indent' on the whole tree
Can't indent the .y files yet, they need special treatment.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 07:59:46 +02:00
Vegard Nossum
94fad97aed Switch line terminators from CRLF to LF
Argh, that obnoxious platform again... ;-)

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 07:32:12 +02:00
Vegard Nossum
0d9739535e Use spaces instead of tabs after CPP directives
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 07:26:46 +02:00
Vegard Nossum
b53e170781 Make all file names lowercase
This fixes a zip/platform artifact.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 06:25:27 +02:00