6593 Commits

Author SHA1 Message Date
Manoel Trapier
20d58dea19 Another batch.. 2015-06-24 23:41:46 +01:00
Manoel Trapier
2bbd5a38de More strict checks... 2015-06-24 23:41:46 +01:00
Manoel Trapier
a8d9183e25 Reordonate modules in a more logical way.
(some modules have dependencies on other especially with header files)
2015-06-24 23:41:46 +01:00
Manoel Trapier
a262a916dc Being a bit more strict on warnings (-Wall). 2015-06-24 23:41:46 +01:00
Manoel Trapier
74fb1cff61 Make GCC happy with current patchs and compilation flags. 2015-06-24 23:41:46 +01:00
Godzil
c0cd8650a6 Another batch especially on C ANSI frontend 2015-06-24 23:41:46 +01:00
Godzil
369ec26b03 Add a global symbol2str header 2015-06-24 23:41:46 +01:00
Godzil
2a5ab5b856 Update .gitignore 2015-06-24 23:41:46 +01:00
Godzil
350e569c2c Correct printf with 64bit pointer 2015-06-24 23:41:45 +01:00
Godzil
d87b482eac Correct some error on static function declaration. 2015-06-24 23:41:45 +01:00
Manoel Trapier
b31ac47714 A bit of missing corections. 2015-06-24 23:41:45 +01:00
Manoel Trapier
03763cbbf0 Starting ANSI C frontend 2015-06-24 23:41:45 +01:00
Manoel Trapier
452127650a Next batch 2015-06-24 23:41:45 +01:00
Godzil
bd3e7b87e6 Getting sync. 2015-06-24 23:41:45 +01:00
Godzil
6093a51511 Add missing stdarg (funnily, linux/clang does not complain about this miss) 2015-06-24 23:41:45 +01:00
Manoel Trapier
41f96d5169 Next batch... 2015-06-24 23:41:45 +01:00
Manoel Trapier
c5bfc89269 Update README. 2015-06-24 23:41:45 +01:00
Manoel Trapier
22c8f3ac10 Add transtyping for support of 64bit cpu and 32cpu (or the printf verification for %d/%ld will fail) 2015-06-24 23:41:45 +01:00
Godzil
674eb61908 Another batch... 2015-06-24 23:41:45 +01:00
Godzil
653bd13b40 Correct printf, and minor changes 2015-06-24 23:41:44 +01:00
Godzil
7b8e3edd43 Add missing function prototype. 2015-06-24 23:41:44 +01:00
Godzil
5362498c1c Change arith type to force it to be 32bit. 2015-06-24 23:41:44 +01:00
Manoel Trapier
f6d58a0d04 Another batch... 2015-06-24 23:41:44 +01:00
Manoel Trapier
36a59de862 Change from yacc to byacc (yacc build code that generate warnings...) 2015-06-24 23:41:44 +01:00
Manoel Trapier
0946773758 ANSIfication] Another batch. 2015-06-24 23:41:44 +01:00
Manoel Trapier
3d1d1277b7 Next batch. 2015-06-24 23:41:44 +01:00
Manoel Trapier
60330b05cd Update a bit of module em_code. 2015-06-24 23:41:44 +01:00
Manoel Trapier
e54911f642 Update module assert 2015-06-24 23:41:44 +01:00
Manoel Trapier
71df09d022 Update tokens.g and regenerate tokens.c with it. 2015-06-24 23:41:44 +01:00
Manoel Trapier
498d867bc3 Update LLgen.g and regenerate LLgen.c with it. 2015-06-24 23:41:44 +01:00
Manoel Trapier
f1cd17c51e Next batch, LLgen no longuer have warning under linux/clang. 2015-06-24 23:41:44 +01:00
Manoel Trapier
d28368333a Next batch of Ansi-ification 2015-06-24 23:41:43 +01:00
Manoel Trapier
9f7ae734db Part 1 of warning/old k&r inconsistency correction. 2015-06-24 23:41:43 +01:00
Manoel Trapier
7eff32c40d Force C89 and error on all warnings. 2015-06-24 23:41:43 +01:00
Manoel Trapier
d3715f3ca4 Add missing Copyright file 2015-06-24 23:41:43 +01:00
Manoel Trapier
659f26136a exchange LICENSE and Copyright file 2015-06-24 23:41:43 +01:00
Godzil
33af50ea26 Start k&r to ansi modification 2015-06-24 23:41:43 +01:00
Manoel Trapier
cb89c679ec Update README to display better in markdown 2015-06-24 23:41:43 +01:00
Manoel Trapier
d78a72a6e2 Add markdown and license file 2015-06-24 23:41:43 +01:00
Manoel Trapier
a551523b22 Add gitignore file. 2015-06-24 23:41:43 +01:00
Manoel Trapier
b907b15d4f Add NES platform to default build. (Still more to go to compile correctly) and re-enabling the "k&r" cpp 2015-06-24 23:41:43 +01:00
Manoel Trapier
45e01dcd3e Correct mach cg pmfile that incorrectly reference PLATFORM where it should reference ARCH 2015-06-24 23:41:43 +01:00
Manoel Trapier
cc534493fd Copy pc86 platform to nes platform, and make change accordingly. 2015-06-24 23:41:43 +01:00
David Given
dccecc5d45 Back out erroneous change. 2012-12-14 11:56:21 +00:00
George Koehler
0fc7fd5d33 Prevent segfault when trying to print an error message.
Use <stdarg.h> to pass arguments correctly, as ack/util/util.c
already uses <stdarg.h> the same way.
2012-10-24 13:44:50 -04:00
David Given
4349d702fa Change from using platform-specific types to stdint platform-independent types
when reading the structure header.
2012-09-27 11:32:40 +01:00
David Given
2beb3646a7 Change to use stdint's implementation independent types rather than short and
long (which vary depending on whether you're on a 64-bit system or not).
2012-09-27 10:54:41 +01:00
George Koehler
7ef9b79c11 Merge deletion of many undead files. 2012-09-23 15:31:16 -04:00
George Koehler
3dcc3bd1cf Allow pc86 bootloader to boot from more floppy drives.
When the bootloader probes the drive geometry, the BIOS can clobber the
es register.  If this happens, the bootloader loads the program to the
wrong address, and jumps off the code.  This happens with an emulated
floppy drive in Bochs or QEMU, but not with an emulated hard disk.
2012-09-23 14:43:22 -04:00
George Koehler
e7c79415b5 Prevent division by zero in aslod.
rhead() and rsect() had assumed sizeof(long) == 4, but OpenBSD/amd64
has sizeof(long) == 8.  The problem revealed itself when sect->os_lign
became zero, and align() divided by zero.
2012-09-21 22:51:12 -04:00