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
George Koehler
0131ca4d46
Delete 689 undead files.
...
These files "magically reappeared" after the conversion from CVS to
Mercurial. The old CVS repository deleted these files but did not
record *when* it deleted these files. The conversion resurrected these
files because they have no history of deletion. These files were
probably deleted before year 1995. The CVS repository begins to record
deletions around 1995.
These files may still appear in older revisions of this Mercurial
repository, when they should already be deleted. There is no way to fix
this, because the CVS repository provides no dates of deletion.
See http://sourceforge.net/mailarchive/message.php?msg_id=29823032
2012-09-20 22:26:32 -04:00
George Koehler
be234ea759
*Again* fix fit16i() for systems with 64-bit long.
...
I already did this in abebf1586c06, but I edited the wrong file. Then
in edddc6b7cd17, I deleted that file.
By fixing fit16i(), I can now compile ACK for OpenBSD/amd64.
2012-09-19 23:39:51 -04:00
George Koehler
8bf34937f1
Delete old and unused files from modules/src/em_code
2012-09-17 16:04:55 -04:00
George Koehler
99eb12a282
Fix fit16i() for systems with 64-bit long.
...
(long)0xFFFF8000 had expanded to 0x00000000FFFF8000.
With (long)(-0x8000), the compiler now extends the negative sign.
2012-09-16 19:57:07 -04:00
George Koehler
96ea0a5903
Fix more functions in util/ack for 64-bit hosts.
...
This continues the fix from changeset aabde0589450. We must use
va_list to forward the arguments, because some of the arguments might
be 64-bit pointers. A pointer does not fit in an int.
2012-09-07 16:28:10 -04:00
George Koehler
800d4ae032
Fix cemcom.ansi for 64-bit hosts.
...
Hosts with sizeof(arith) == sizeof(long) == 8 need to set full_mask[1]
through full_mask[8]. Because MAXSIZE == 8, we only had full_mask[0]
through full_mask[7]. This fix declares arith full_mask[MAXSIZE + 1]
and prevents a fatal error: "array full_mask too small for this machine"
2012-09-07 15:53:13 -04:00
David Given
6ea172d0d9
Fix a 64-bitness issue (removed some untyped K&R C code that assumed ints
...
and pointers were the same size).
2012-02-27 22:36:36 +00:00
Ceriel Jacobs
1072a8797e
Added atol() that ignores overflow, so that unsigned long constants are dealt with properly
2011-06-15 11:13:48 +02:00
Ceriel Jacobs
2483e5723d
Fixed CFU
2011-06-15 10:56:58 +02:00
cjhjacobs
58613009f8
Fixed bug reported on tack-devel mailing list on 20-3-2011
2011-05-18 19:19:19 +02:00
David Given
b6dfaefeff
Removed file that the CVS conversion procedure left in (when it shouldn't have).
2011-03-20 20:47:10 +00:00
cvs2hg
eb0b730607
convert CVS tags
2011-02-11 00:51:45 +00:00
dtrg
45ee287136
Replaced dis and new with modern implementations donated by erik@backerud.se.
2010-10-02 21:52:29 +00:00