49 Commits

Author SHA1 Message Date
Rangi
462bae31d9 Silence -Wimplicit-fallthrough 2018-06-20 22:14:50 -04:00
mid-kid
ef5e4e43c7 Fix md5.c for Windows
Solves #520
2018-06-07 13:37:11 +02:00
yenatch
e58688c09b sort_symfile: don't need to use sort -o with a temp file 2018-06-05 07:22:25 -04:00
yenatch
1baea408e2 sort_symfile: don't overwrite the symfile with an intermediate file 2018-06-05 07:15:16 -04:00
Ben10do
2dd2ec97f1
Don’t use GNU extensions when calling sed
Apparently, GNU sed has a few extensions that aren’t supported by the version of BSD sed that currently comes with Macs.

This would cause sort_symfile.sh to fail on macOS, causing the build to appear to fail at the last minute.

Admittedly, I’m not very familiar with sed, but this seems to do the trick on both macOS and Ubuntu.

- The input file must be last in the arguments list.
- The -i option, allowing the same file for input and output, doesn’t appear to be supported. Instead, I’m writing the output to a temporary file, and replacing the original file with that temporary file.
- Apparently ‘\w’ isn’t supported, so I’m simply using ‘.’ instead, as it appears to match “0_ROM0@” etc. just as well.
2018-06-03 16:24:23 +01:00
yenatch
fe4377ce53
Merge pull request #501 from mid-kid/reorg
Organize the engine/ directory
2018-04-04 21:04:14 -04:00
mid-kid
81fff9bb80 Fix file permissions
I have no idea why this was a thing (do people store this repo on FAT32
flash drives or something?), but quite a bit of files had a permission
of 755. This isn't really a problem, but it's inconsistent and weird.
2018-04-01 17:05:10 +02:00
yenatch
8efa0dcfb0 Fix scan_includes matching the word "include" in strings. 2018-03-10 18:20:31 -05:00
Remy Oukaour
346a93c00f Shebang 2018-01-14 23:51:24 -05:00
yenatch
f185cc9b77 sort the symfile by symbol type 2018-01-01 22:40:35 -05:00
yenatch
9af2aee640 rebuild gfx and md5 when common.h changes 2017-12-28 01:25:46 -05:00
yenatch
40305f205e fix unused fread return value warnings 2017-12-28 01:25:25 -05:00
Remy Oukaour
01bd8ac94c Move old baserom.gbc 'compare' scripts to tools/ 2017-12-15 20:12:00 -05:00
Remy Oukaour
3e5b6322e1 Don't bother supporting numbered lists 2017-12-13 16:57:29 -05:00
Remy Oukaour
feef75c5df Document more bugs and glitches
Add a toc.py script to auto-generate tables of contents in Markdown files
2017-12-13 16:46:31 -05:00
yenatch
543d67b647 Build tools with -O3.
This improves build time by about 20%.
2017-09-24 15:08:44 -04:00
yenatch
94577d9553 fix warnings in lzcomp and md5 2017-09-24 01:07:08 -04:00
yenatch
0aee932b5f Add warnings for tools 2017-09-24 01:07:05 -04:00
yenatch
59a27d5907 tools/gfx: Replace --width with --png 2017-09-24 01:07:02 -04:00
yenatch
50d163895d Remove comma from png_dimensions usage 2017-08-20 12:33:36 -04:00
yenatch
c719ff4f0b Fix unused variable warnings 2017-08-20 12:33:12 -04:00
yenatch
885af5e543 Refactor scan_includes 2017-08-20 12:32:15 -04:00
IIMarckus
80888726b9 Check some errors (not enough).
malloc can always fail. Check to avoid null dereference.

malloc(0) is well defined but leads to an eventual crash on some systems.
Check it too.
2017-06-29 22:45:30 -06:00
IIMarckus
2ebbe91fe8 Fix uninitialized value. 2017-06-29 22:14:12 -06:00
yenatch
7b3f0693d5 tools: Default to gcc.
This gives Cygwin users an easier time at the expense of defaulting to gcc.
2017-06-29 18:26:04 -04:00