Commit Graph

45 Commits

Author SHA1 Message Date
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
Anthony J. Bentley
214d13c8d3 New sentence, new line. 2011-04-10 00:39:18 -06:00
Anthony J. Bentley
ba30863b73 In manuals, use wrapping macros instead of literal parens, etc. 2011-04-10 00:37:58 -06:00
Anthony J. Bentley
009ac34f32 Remove unnecessary comments from manpage sources 2011-04-10 00:15:35 -06:00
Anthony J. Bentley
9a9d071024 Oops: remove escape that was keeping manpage date from being parsed 2011-04-10 00:12:19 -06:00
Anthony J. Bentley
114871d46d Move manuals to the main source directories. 2010-12-22 14:23:35 -07:00
bentley
7293da9084 fix some error messages: err() instead of errx(strerror()) 2010-02-17 18:28:03 -07:00
bentley
3a95de144e this is why you should always test build *before* making a commit 2010-02-04 23:18:57 -07:00
bentley
1c8b31ca1d fix compile error
stupid bug, printed % instead of %s
2010-02-04 23:16:38 -07:00
bentley
02ba30f8e0 rgblink: improve file open error messages 2010-01-18 16:47:08 -07:00
bentley
761656c54b fopen does not take a "t" mode
"t" is a nonportable way of opening files in text mode. Windows
opens files in text mode by default anyway, and in UNIX there is
no text mode. (Passing "t" to fopen is undefined in standard C.)
2010-01-18 15:40:19 -07: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
1202c6b459 minor: fix implicit declaration warning 2010-01-15 11:04:00 -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
f81bcc722a build: merge everything to a single top-level Makefile
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 10:08:32 +02:00
Vegard Nossum
a216855093 Move src/asmotor.h to top-level include/
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 09:29:07 +02: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
bc6b2fe005 link: add missing parameter to error message
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 08:53:18 +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
660f5daac3 Add .gitignore files
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 07:40:13 +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
0ce5efb3c5 build: remove obsolete objs* directories
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 07:17:03 +02:00
Vegard Nossum
322a0b05d8 link: improve Makefile
Make object filenames explicit and add "clean" target.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 07:09:27 +02:00
Vegard Nossum
e12cb95079 build: rip out obsolete makefiles for obsolete platforms
We don't support DOS/Win32, so these are not needed anymore...

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 06:58:39 +02:00
Vegard Nossum
4d06e6de79 link: make xlink compile for Linux
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-11 06:56:20 +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