Commit Graph

3394 Commits

Author SHA1 Message Date
Anthony J. Bentley c21c0f458f Improve error messages. 2013-05-19 17:07:34 -06:00
Anthony J. Bentley 51c01e3aad Remove some dead code. 2013-05-19 16:14:31 -06:00
Anthony J. Bentley d0d85abb97 Fix accidental case fallthrough. 2013-05-19 15:51:40 -06:00
Anthony J. Bentley 88ac0282e4 Add HTML manuals to the clean target. 2013-04-11 13:27:31 -06:00
Anthony J. Bentley 8811784b71 rgbfix: exit on invalid usage. v0.0.2 2013-04-11 09:28:38 -06:00
Anthony J. Bentley 6579743410 Add support for 8 MiB ROMs, the largest size possible with MBC5. 2012-12-26 21:41:47 -07:00
Anthony J. Bentley b90406861d Readability (whitespace). 2012-12-26 21:12:52 -07:00
Anthony J. Bentley 2f35d10373 Merge pull request #5 from vegard/lexer-fix-for-bentley
Prevent lexer from reading beyond the end of the buffer
v0.0.1
2012-12-01 22:46:21 -08:00
Anthony J. Bentley a397acd5ea Update license statement after Justin Lloyd released the code.
https://bitbucket.org/JustinLloyd/rgbds-gameboy-development-system
2012-11-14 02:59:09 -07:00
Anthony J. Bentley 6d69370e9c Merge pull request #6 from vegard/getopt-linux-for-bentley
Include getopt.h (fix compilation on GNU/Linux)
2012-11-09 22:07:44 -08:00
Vegard Nossum 2dfd937d7f Prevent lexer from reading beyond the end of the buffer
On Linux, valgrind complains about the overflow like this:

  Pass 1...
  ==20054== Invalid read of size 1
  ==20054==    at 0x406CDA: yylex (lexer.c:396)
  ==20054==    by 0x40207C: yyparse (asmy.c:2921)
  ==20054==    by 0x4086AF: main (main.c:351)
  ==20054==  Address 0x503a102 is 0 bytes after a block of size 23,538 alloc'd
  ==20054==    at 0x402994D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  ==20054==    by 0x406411: yy_create_buffer (lexer.c:147)
  ==20054==    by 0x404FE3: fstk_RunInclude (fstack.c:243)
  ==20054==    by 0x4025F5: yyparse (asmy.y:744)
  ==20054==    by 0x4086AF: main (main.c:351)
  ==20054==

This is a bit of a crude fix which simply exits the hashing loop when
we reach the end of the string. We should probably do some kind of
length calculation on the buffer instead.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2012-10-21 06:06:54 +02: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 8c2fb79c39 Add a web manpages target (for my personal use). 2012-10-18 21:15:20 -06:00
Anthony J. Bentley 7b4746b20e Add a MinGW target for me to easily create Windows executables.
This is not for Windows users!
2012-10-18 20:46:17 -06:00
Anthony J. Bentley cf3bfb1372 Use curly braces consistently in Makefile. 2012-10-18 20:25:33 -06:00
Anthony J. Bentley f821a1e0a1 Allow a noisy build (user‐configurable). 2012-10-18 20:24:27 -06:00
Anthony J. Bentley 39d8674a93 Improve the Makefile: allow user‐defined variables. 2012-10-18 20:22:47 -06:00
Anthony J. Bentley a2dc23c55c Remove unneeded build flag. 2012-10-18 19:50:50 -06:00
Anthony J. Bentley fd724d10e4 Add support for the four‐character game ID. 2011-12-29 20:22:06 -07:00
Anthony J. Bentley 07802fffc9 Remove the (old, obsolete) RGBFix HTML page. Use the manpage instead. 2011-12-26 23:28:06 -07:00
Anthony J. Bentley 309e2c0b93 Update the SGB flag in the rgbfix examples. 2011-12-07 21:19:56 -07:00
Anthony J. Bentley b51c1cc71c Add Windows build instructions. 2011-12-02 11:05:05 -07: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
Anthony J. Bentley d784b14615 Remove unneeded include. 2011-04-11 20:00:52 -06:00
Anthony J. Bentley 60451fd41f Remove unused and outdated .gitignore. 2011-04-11 19:57:38 -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 abf8f8255a Fix some manual macro scoping problems. 2011-04-10 00:32:31 -06:00
Anthony J. Bentley 23624e1c1d Fix case in manpage section name 2011-04-10 00:15:59 -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 9f9e76e85f Use the semantic .Ad in manpages. 2011-04-10 00:08:44 -06:00
Anthony J. Bentley 085ee6d4c0 Fix typo in rgbds(7). 2010-12-22 15:59:19 -07:00
Anthony J. Bentley 0f606e5d83 Add a rgbds(7) manpage. 2010-12-22 15:35:32 -07:00
Anthony J. Bentley 376c8d2f5b Update man page: .gb will no longer be added to a filename without it 2010-12-22 15:15:43 -07:00
Anthony J. Bentley 6f46058e21 Add an install target. 2010-12-22 14:38:45 -07:00
Anthony J. Bentley b9f92536a9 Remove “localversion” script. 2010-12-22 14:26:43 -07:00
Anthony J. Bentley 7384c41c82 Minor whitespace improvements 2010-12-22 14:24:46 -07:00
Anthony J. Bentley 114871d46d Move manuals to the main source directories. 2010-12-22 14:23:35 -07:00
Anthony J. Bentley 5ae2dc4844 Replace UTF8-encoded ø with mdoc escapes.
It absolutely kills me to have to do this in 2010. Unix should be using
UTF-8 everywhere.
2010-12-22 13:52:55 -07:00
Anthony J. Bentley d2f52fdd0c Rewrite rgbfix from scratch, under a free ISC license.
Slight changes in usage; the man page has been updated accordingly.
2010-12-22 13:48:44 -07:00
Anthony J. Bentley 05be8e0011 Delete rgbfix, to be replaced with a freely-licensed version 2010-12-22 13:19:37 -07:00
Anthony J. Bentley b1739d95a5 Silence build process 2010-12-22 13:15:55 -07:00
bentley 0da1489da1 replace readme with installation instructions 2010-04-03 19:43:03 -06:00
bentley 2fa9a3c768 new sentence, new line
see http://marc.info/?l=openbsd-tech&m=126956447409663&w=2
2010-03-25 21:58:23 -06:00
bentley ccbfa16d7f fix small mdoc error 2010-03-18 21:05:50 -06:00
bentley b53c945f05 Man pages! 2010-02-27 19:19:50 -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