ack.git
9 years agoAnother batch...
Godzil [Tue, 12 Mar 2013 02:18:07 +0000 (03:18 +0100)]
Another batch...

9 years agoCorrect printf, and minor changes
Godzil [Tue, 12 Mar 2013 01:06:30 +0000 (02:06 +0100)]
Correct printf, and minor changes

9 years agoAdd missing function prototype.
Godzil [Tue, 12 Mar 2013 01:05:26 +0000 (02:05 +0100)]
Add missing function prototype.

9 years agoChange arith type to force it to be 32bit.
Godzil [Tue, 12 Mar 2013 01:05:07 +0000 (02:05 +0100)]
Change arith type to force it to be 32bit.

9 years agoAnother batch...
Manoel Trapier [Mon, 11 Mar 2013 18:19:06 +0000 (19:19 +0100)]
Another batch...

9 years agoChange from yacc to byacc (yacc build code that generate warnings...)
Manoel Trapier [Mon, 11 Mar 2013 15:09:25 +0000 (16:09 +0100)]
Change from yacc to byacc (yacc build code that generate warnings...)

9 years agoANSIfication] Another batch.
Manoel Trapier [Mon, 11 Mar 2013 15:08:38 +0000 (16:08 +0100)]
ANSIfication] Another batch.

9 years agoNext batch.
Manoel Trapier [Fri, 8 Mar 2013 18:13:03 +0000 (19:13 +0100)]
Next batch.

9 years agoUpdate a bit of module em_code.
Manoel Trapier [Thu, 7 Mar 2013 18:23:10 +0000 (19:23 +0100)]
Update a bit of module em_code.

9 years agoUpdate module assert
Manoel Trapier [Thu, 7 Mar 2013 18:17:18 +0000 (19:17 +0100)]
Update module assert

9 years agoUpdate tokens.g and regenerate tokens.c with it.
Manoel Trapier [Thu, 7 Mar 2013 18:06:12 +0000 (19:06 +0100)]
Update tokens.g and regenerate tokens.c with it.

9 years agoUpdate LLgen.g and regenerate LLgen.c with it.
Manoel Trapier [Thu, 7 Mar 2013 17:56:36 +0000 (18:56 +0100)]
Update LLgen.g and regenerate LLgen.c with it.

9 years agoNext batch, LLgen no longuer have warning under linux/clang.
Manoel Trapier [Thu, 7 Mar 2013 17:13:58 +0000 (18:13 +0100)]
Next batch, LLgen no longuer have warning under linux/clang.

9 years agoNext batch of Ansi-ification
Manoel Trapier [Wed, 6 Mar 2013 17:05:32 +0000 (18:05 +0100)]
Next batch of Ansi-ification

9 years agoPart 1 of warning/old k&r inconsistency correction.
Manoel Trapier [Tue, 5 Mar 2013 15:24:29 +0000 (16:24 +0100)]
Part 1 of warning/old k&r inconsistency correction.

9 years agoForce C89 and error on all warnings.
Manoel Trapier [Tue, 5 Mar 2013 15:23:04 +0000 (16:23 +0100)]
Force C89 and error on all warnings.

9 years agoAdd missing Copyright file
Manoel Trapier [Tue, 5 Mar 2013 09:08:58 +0000 (10:08 +0100)]
Add missing Copyright file

9 years agoexchange LICENSE and Copyright file
Manoel Trapier [Tue, 5 Mar 2013 09:06:06 +0000 (10:06 +0100)]
exchange LICENSE and Copyright file

9 years agoStart k&r to ansi modification
Godzil [Tue, 5 Mar 2013 08:21:28 +0000 (09:21 +0100)]
Start k&r to ansi modification

9 years agoUpdate README to display better in markdown
Manoel Trapier [Mon, 4 Mar 2013 18:22:17 +0000 (19:22 +0100)]
Update README to display better in markdown

9 years agoAdd markdown and license file
Manoel Trapier [Mon, 4 Mar 2013 18:19:28 +0000 (19:19 +0100)]
Add markdown and license file

9 years agoAdd gitignore file.
Manoel Trapier [Mon, 4 Mar 2013 18:05:15 +0000 (19:05 +0100)]
Add gitignore file.

9 years agoAdd NES platform to default build. (Still more to go to compile correctly) and re...
Manoel Trapier [Mon, 4 Mar 2013 18:03:17 +0000 (19:03 +0100)]
Add NES platform to default build. (Still more to go to compile correctly) and re-enabling the "k&r" cpp

9 years agoCorrect mach cg pmfile that incorrectly reference PLATFORM where it should reference...
Manoel Trapier [Mon, 4 Mar 2013 18:01:58 +0000 (19:01 +0100)]
Correct mach cg pmfile that incorrectly reference PLATFORM where it should reference ARCH

9 years agoCopy pc86 platform to nes platform, and make change accordingly.
Manoel Trapier [Mon, 4 Mar 2013 18:00:38 +0000 (19:00 +0100)]
Copy pc86 platform to nes platform, and make change accordingly.

11 years agoBack out erroneous change.
David Given [Fri, 14 Dec 2012 11:56:21 +0000 (11:56 +0000)]
Back out erroneous change.

11 years agoPrevent segfault when trying to print an error message.
George Koehler [Wed, 24 Oct 2012 17:44:50 +0000 (13:44 -0400)]
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.

11 years agoChange from using platform-specific types to stdint platform-independent types
David Given [Thu, 27 Sep 2012 10:32:40 +0000 (11:32 +0100)]
Change from using platform-specific types to stdint platform-independent types
when reading the structure header.

11 years agoChange to use stdint's implementation independent types rather than short and
David Given [Thu, 27 Sep 2012 09:54:41 +0000 (10:54 +0100)]
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).

11 years agoMerge deletion of many undead files.
George Koehler [Sun, 23 Sep 2012 19:31:16 +0000 (15:31 -0400)]
Merge deletion of many undead files.

11 years agoAllow pc86 bootloader to boot from more floppy drives.
George Koehler [Sun, 23 Sep 2012 18:43:22 +0000 (14:43 -0400)]
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.

12 years agoPrevent division by zero in aslod.
George Koehler [Sat, 22 Sep 2012 02:51:12 +0000 (22:51 -0400)]
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.

12 years agoDelete 689 undead files.
George Koehler [Fri, 21 Sep 2012 02:26:32 +0000 (22:26 -0400)]
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

12 years ago*Again* fix fit16i() for systems with 64-bit long.
George Koehler [Thu, 20 Sep 2012 03:39:51 +0000 (23:39 -0400)]
*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.

12 years agoDelete old and unused files from modules/src/em_code
George Koehler [Mon, 17 Sep 2012 20:04:55 +0000 (16:04 -0400)]
Delete old and unused files from modules/src/em_code

12 years agoFix fit16i() for systems with 64-bit long.
George Koehler [Sun, 16 Sep 2012 23:57:07 +0000 (19:57 -0400)]
Fix fit16i() for systems with 64-bit long.

(long)0xFFFF8000 had expanded to 0x00000000FFFF8000.
With (long)(-0x8000), the compiler now extends the negative sign.

12 years agoFix more functions in util/ack for 64-bit hosts.
George Koehler [Fri, 7 Sep 2012 20:28:10 +0000 (16:28 -0400)]
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.

12 years agoFix cemcom.ansi for 64-bit hosts.
George Koehler [Fri, 7 Sep 2012 19:53:13 +0000 (15:53 -0400)]
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"

12 years agoFix a 64-bitness issue (removed some untyped K&R C code that assumed ints
David Given [Mon, 27 Feb 2012 22:36:36 +0000 (22:36 +0000)]
Fix a 64-bitness issue (removed some untyped K&R C code that assumed ints
and pointers were the same size).

13 years agoAdded atol() that ignores overflow, so that unsigned long constants are dealt with...
Ceriel Jacobs [Wed, 15 Jun 2011 09:13:48 +0000 (11:13 +0200)]
Added atol() that ignores overflow, so that unsigned long constants are dealt with properly

13 years agoFixed CFU
Ceriel Jacobs [Wed, 15 Jun 2011 08:56:58 +0000 (10:56 +0200)]
Fixed CFU

13 years agoFixed bug reported on tack-devel mailing list on 20-3-2011
cjhjacobs [Wed, 18 May 2011 17:19:19 +0000 (19:19 +0200)]
Fixed bug reported on tack-devel mailing list on 20-3-2011

13 years agoRemoved file that the CVS conversion procedure left in (when it shouldn't have).
David Given [Sun, 20 Mar 2011 20:47:10 +0000 (20:47 +0000)]
Removed file that the CVS conversion procedure left in (when it shouldn't have).

13 years agoconvert CVS tags
cvs2hg [Fri, 11 Feb 2011 00:51:45 +0000 (00:51 +0000)]
convert CVS tags

13 years agoReplaced dis and new with modern implementations donated by erik@backerud.se.
dtrg [Sat, 2 Oct 2010 21:52:29 +0000 (21:52 +0000)]
Replaced dis and new with modern implementations donated by erik@backerud.se.

13 years agoCall the correct kill() and getpid() syscalls rather than _kill() and _getpid().
dtrg [Sat, 2 Oct 2010 21:51:40 +0000 (21:51 +0000)]
Call the correct kill() and getpid() syscalls rather than _kill() and _getpid().

13 years agoNow call creat() and open() instead of _creat() and _open().
dtrg [Mon, 27 Sep 2010 20:47:32 +0000 (20:47 +0000)]
Now call creat() and open() instead of _creat() and _open().

13 years agoAdded support for remove() and unlink().
dtrg [Mon, 27 Sep 2010 20:44:49 +0000 (20:44 +0000)]
Added support for remove() and unlink().

14 years agoFixed very old bug where Streams.GetStreamPosition would return the wrong position...
dtrg [Wed, 1 Sep 2010 19:55:15 +0000 (19:55 +0000)]
Fixed very old bug where Streams.GetStreamPosition would return the wrong position --- thanks to Jan Verhoeven for finding this.

14 years agoFixed definitions of O_* flags.
dtrg [Fri, 20 Aug 2010 19:27:09 +0000 (19:27 +0000)]
Fixed definitions of O_* flags.

14 years agoRemove references to using-machine-name-for-compiler, as we don't do that any more.
dtrg [Mon, 9 Aug 2010 22:47:33 +0000 (22:47 +0000)]
Remove references to using-machine-name-for-compiler, as we don't do that any more.

14 years agoChanged to actually work. (On modern Linux systems the old version just
dtrg [Fri, 6 Aug 2010 17:06:31 +0000 (17:06 +0000)]
Changed to actually work. (On modern Linux systems the old version just
crashes. On old Linux systems it apparently only worked by accident.)

14 years agoFlush stdout before prompting the user for input.
dtrg [Fri, 6 Aug 2010 17:02:16 +0000 (17:02 +0000)]
Flush stdout before prompting the user for input.

14 years agoFlush output stream before waiting for user input.
dtrg [Thu, 5 Aug 2010 22:23:34 +0000 (22:23 +0000)]
Flush output stream before waiting for user input.

14 years agofixup commit for tag 'release-6-0-pre-4' release-6-0-pre-4
cvs2hg [Wed, 4 Aug 2010 18:04:08 +0000 (18:04 +0000)]
fixup commit for tag 'release-6-0-pre-4'

14 years agoForgot to update version number. release-6-0-pre-4
dtrg [Wed, 4 Aug 2010 18:04:07 +0000 (18:04 +0000)]
Forgot to update version number.

14 years agoUpdated for 6.0pre4.
dtrg [Wed, 4 Aug 2010 18:01:12 +0000 (18:01 +0000)]
Updated for 6.0pre4.

14 years agoFixed typo.
dtrg [Wed, 4 Aug 2010 17:59:40 +0000 (17:59 +0000)]
Fixed typo.

14 years agoPrevent build failure on modern Bisons (which are more picky than the old yacc this...
dtrg [Sun, 1 Aug 2010 10:36:01 +0000 (10:36 +0000)]
Prevent build failure on modern Bisons (which are more picky than the old yacc this was written for).

14 years agoInvoke genfiles explicitly with sh --- CVS doesn't store executable bits.
dtrg [Sun, 1 Aug 2010 10:35:33 +0000 (10:35 +0000)]
Invoke genfiles explicitly with sh --- CVS doesn't store executable bits.

14 years agoRenamed 'switch' variable to avoid conflict with a keyword in modern awks.
dtrg [Sun, 1 Aug 2010 10:35:04 +0000 (10:35 +0000)]
Renamed 'switch' variable to avoid conflict with a keyword in modern awks.

14 years agoRenamed getline() to getln() to avoid conflict with glibc's version.
dtrg [Sun, 1 Aug 2010 10:34:27 +0000 (10:34 +0000)]
Renamed getline() to getln() to avoid conflict with glibc's version.

16 years agoAdded a very-nearly-noop peephole optimiser for Z80.
dtrg [Thu, 20 Mar 2008 23:20:08 +0000 (23:20 +0000)]
Added a very-nearly-noop peephole optimiser for Z80.

16 years agoProperly handles files ending in a partial line.
dtrg [Thu, 20 Mar 2008 22:50:50 +0000 (22:50 +0000)]
Properly handles files ending in a partial line.

16 years agoArchival checkin (semi-working code).
dtrg [Fri, 2 Nov 2007 18:56:58 +0000 (18:56 +0000)]
Archival checkin (semi-working code).

17 years agofixup commit for tag 'release-6-0-pre-3' release-6-0-pre-3
cvs2hg [Sun, 29 Apr 2007 23:09:25 +0000 (23:09 +0000)]
fixup commit for tag 'release-6-0-pre-3'

17 years agoConfigured distr system for the 6.0pre3 release. release-6-0-pre-3
dtrg [Sun, 29 Apr 2007 23:09:24 +0000 (23:09 +0000)]
Configured distr system for the 6.0pre3 release.

17 years agoCleaned up a bit and made work with the new platform architecture.
dtrg [Sun, 29 Apr 2007 23:03:24 +0000 (23:03 +0000)]
Cleaned up a bit and made work with the new platform architecture.

17 years agoNow using more conservative optimisation due to random seg fault issues.
dtrg [Sun, 29 Apr 2007 23:02:23 +0000 (23:02 +0000)]
Now using more conservative optimisation due to random seg fault issues.

17 years agoAdded optimised rules for int<<8 and uint>>8 (which can be done with simple register...
dtrg [Sun, 29 Apr 2007 23:00:31 +0000 (23:00 +0000)]
Added optimised rules for int<<8 and uint>>8 (which can be done with simple register shuffling rather than calling .sli).

17 years agoFixed the ego parameters to actually allow extended optimisation.
dtrg [Sun, 29 Apr 2007 21:25:09 +0000 (21:25 +0000)]
Fixed the ego parameters to actually allow extended optimisation.

17 years agoUse better optimisation options.
dtrg [Sun, 29 Apr 2007 21:24:17 +0000 (21:24 +0000)]
Use better optimisation options.

17 years agoNow runs descr files through the ANSI C preprocessor, rather than the K&R one (which...
dtrg [Sun, 29 Apr 2007 21:23:55 +0000 (21:23 +0000)]
Now runs descr files through the ANSI C preprocessor, rather than the K&R one (which no longer exists).

17 years agoFixed the trap code to write out the error message correctly.
dtrg [Sun, 29 Apr 2007 20:47:48 +0000 (20:47 +0000)]
Fixed the trap code to write out the error message correctly.

17 years agoDisabled the code to throw signals on EM traps; this is the platform's job (and requi...
dtrg [Sun, 29 Apr 2007 20:46:48 +0000 (20:46 +0000)]
Disabled the code to throw signals on EM traps; this is the platform's job (and requires working signal support, which we may not have).

17 years agoAdded suppot for BSS clearing and command line parsing.
dtrg [Sun, 29 Apr 2007 00:28:06 +0000 (00:28 +0000)]
Added suppot for BSS clearing and command line parsing.

17 years agoDocumented floating-point status.
dtrg [Sat, 28 Apr 2007 22:34:47 +0000 (22:34 +0000)]
Documented floating-point status.

17 years agoAdded the Mandelbrot generator.
dtrg [Sat, 28 Apr 2007 22:34:05 +0000 (22:34 +0000)]
Added the Mandelbrot generator.

17 years agoAdded cpm platform.
dtrg [Fri, 27 Apr 2007 22:42:41 +0000 (22:42 +0000)]
Added cpm platform.

17 years agoAdded the stdint.h header file.
dtrg [Fri, 27 Apr 2007 22:42:02 +0000 (22:42 +0000)]
Added the stdint.h header file.

17 years agoCleaned up and enabled the support for conditionally emitting the floating-point...
dtrg [Fri, 27 Apr 2007 22:41:39 +0000 (22:41 +0000)]
Cleaned up and enabled the support for conditionally emitting the floating-point stdio code.

17 years agoRemoved a completely pointless 128-byte buffer.
dtrg [Fri, 27 Apr 2007 22:41:05 +0000 (22:41 +0000)]
Removed a completely pointless 128-byte buffer.

17 years agoFixed a bug where loc lol stf was getting the constant pushed onto the stack *after...
dtrg [Fri, 27 Apr 2007 22:15:31 +0000 (22:15 +0000)]
Fixed a bug where loc lol stf was getting the constant pushed onto the stack *after* stf had popped it off.

17 years agoUpdated for the 6.0pre2 release. release-6-0-pre-2
dtrg [Tue, 24 Apr 2007 20:45:58 +0000 (20:45 +0000)]
Updated for the 6.0pre2 release.

17 years agoRemoved bashish.
dtrg [Tue, 24 Apr 2007 19:48:41 +0000 (19:48 +0000)]
Removed bashish.

17 years agoStripped down the library to something approaching the ANSI C minimum and replaced...
dtrg [Tue, 24 Apr 2007 19:42:24 +0000 (19:42 +0000)]
Stripped down the library to something approaching the ANSI C minimum and replaced most of the header files, to provide a reasonably consistent base to work up from.

17 years agoFixed major typos in the signal declarations that was preventing anything that used...
dtrg [Tue, 24 Apr 2007 19:34:34 +0000 (19:34 +0000)]
Fixed major typos in the signal declarations that was preventing anything that used signal() from compiling.

17 years agoUpdated use of headers to compile cleanly.
dtrg [Tue, 24 Apr 2007 19:33:53 +0000 (19:33 +0000)]
Updated use of headers to compile cleanly.

17 years agoEnsured that _errno is always defined. Rejigged the pc86 boot code so it doesn't...
dtrg [Tue, 24 Apr 2007 19:25:00 +0000 (19:25 +0000)]
Ensured that _errno is always defined. Rejigged the pc86 boot code so it doesn't always waste 510 bytes of memory.

17 years agoAdded support for the linux386 platform. Disabled building of the K&R C, Basic and...
dtrg [Mon, 23 Apr 2007 23:41:50 +0000 (23:41 +0000)]
Added support for the linux386 platform. Disabled building of the K&R C, Basic and Occam compilers.

17 years agoModified to run ncgg input files through the ANSI preprocessor rather than the K...
dtrg [Mon, 23 Apr 2007 23:40:59 +0000 (23:40 +0000)]
Modified to run ncgg input files through the ANSI preprocessor rather than the K&R one.

17 years agoAdded the aelflod tool for generating ELF executables. Added documentation for aelflo...
dtrg [Mon, 23 Apr 2007 23:40:10 +0000 (23:40 +0000)]
Added the aelflod tool for generating ELF executables. Added documentation for aelflod and ashow. Now installs the documentation when built.

17 years agoModified to allow a space between the sign and the first digit of a constant.
dtrg [Mon, 23 Apr 2007 23:24:46 +0000 (23:24 +0000)]
Modified to allow a space between the sign and the first digit of a constant.

17 years agoNow fetches argc, argv, env correctly from the host OS.
dtrg [Mon, 23 Apr 2007 23:24:03 +0000 (23:24 +0000)]
Now fetches argc, argv, env correctly from the host OS.

17 years agoAdded the 'Star Trek' example game.
dtrg [Sat, 21 Apr 2007 23:20:11 +0000 (23:20 +0000)]
Added the 'Star Trek' example game.

17 years agoAdapted to tell the user what language they were written in (because they're too...
dtrg [Sat, 21 Apr 2007 23:19:32 +0000 (23:19 +0000)]
Adapted to tell the user what language they were written in (because they're too similar!). Modified the Pascal implementation to work with our new syscall model.

17 years agoAdapted for ANSI C and our pseudo-Posix syscall interface.
dtrg [Sat, 21 Apr 2007 23:18:14 +0000 (23:18 +0000)]
Adapted for ANSI C and our pseudo-Posix syscall interface.

17 years agoFixed a bug where the preprocessor would occasionally lose whitespace at the beginnin...
dtrg [Sat, 21 Apr 2007 23:10:13 +0000 (23:10 +0000)]
Fixed a bug where the preprocessor would occasionally lose whitespace at the beginning of lines immediately after a #endif, which was confusing the assembler.

17 years agoDisabled Terminal as it uses hard-coded ioctls and appears to be non-standard anyway.
dtrg [Sat, 21 Apr 2007 23:07:57 +0000 (23:07 +0000)]
Disabled Terminal as it uses hard-coded ioctls and appears to be non-standard anyway.

17 years agoChanged to call the isatty() syscall directly, rather than fiddling around with non...
dtrg [Sat, 21 Apr 2007 23:07:05 +0000 (23:07 +0000)]
Changed to call the isatty() syscall directly, rather than fiddling around with non-portable ioctls.