ack.git
9 years agoUpdate README nick-manoel
Godzil [Mon, 24 Feb 2014 11:58:48 +0000 (11:58 +0000)]
Update README

9 years agoSome fixes for aelflod and aslod.
George Koehler [Fri, 17 May 2013 17:31:30 +0000 (19:31 +0200)]
Some fixes for aelflod and aslod.

Copy rhead() and rsect() from aslod to aelflod, so aelflod can work
for machine with 64-bit long.

In aelflod, fix ELF header so file(1) no longer reports "corrupted
section header size".

Signed-off-by: Manoel Trapier <godzil@godzil.net>
9 years agoRemove/change bad prototypes
Godzil [Fri, 17 May 2013 00:08:39 +0000 (02:08 +0200)]
Remove/change bad prototypes

In modules/system/time, a bad prototype for "time" was left. There is too some problem with filno under OpenBSD. Currently, the only known OS that don't want to export fileno with c89/c99 standard, is linux, so #ifdef/#endif the prototypes only for linux. (OpenBSD seems to define them as MACROs, that led to errors)

9 years agoAdd a missing header include.
Godzil [Thu, 16 May 2013 07:41:11 +0000 (09:41 +0200)]
Add a missing header include.

9 years agoChange sbrk definitions.
Godzil [Thu, 16 May 2013 07:39:25 +0000 (09:39 +0200)]
Change sbrk definitions.

The prototypes difference between platform is really annoying, since it's hard to always match the system on, and prevent warning on bad types. I try now to always use BRK emulation on all platform that do not match the prototype used in ACK. the PM script should be changed to set this correctly during setup.

9 years agoSurprisly clang started to tell me where variable may used uninitialized, correcting it!
Godzil [Thu, 16 May 2013 07:35:52 +0000 (09:35 +0200)]
Surprisly clang started to tell me where variable may used uninitialized, correcting it!

That's a good point it tell me that, but was a bit unexpected ^^

9 years agoAugment the "template" buffer size, 50byte is too short for a path.
Godzil [Wed, 27 Mar 2013 18:45:17 +0000 (19:45 +0100)]
Augment the "template" buffer size, 50byte is too short for a path.

9 years agoMake a brk/sbrk emulation.
Manoel Trapier [Wed, 27 Mar 2013 14:49:29 +0000 (15:49 +0100)]
Make a brk/sbrk emulation.

Mac OS X seems to have some difficulties with brk/sbrk (maybe with the
4MB heap limit), and replace all the allocation logic will be prone to
errors, I'll add a new define and lib to emulate brk/sbrk using more
standard allocation methods. By default the heap is 64MB, it should be
enough.

9 years agoCorrecting a nasty bug introduced in commit 6204c6b6416dfe4d3a0f0b0b7d6d8b5be81acefb
Manoel Trapier [Mon, 25 Mar 2013 17:06:45 +0000 (18:06 +0100)]
Correcting a nasty bug introduced in commit 6204c6b6416dfe4d3a0f0b0b7d6d8b5be81acefb

9 years agoCorrect a bad change.
Manoel Trapier [Thu, 21 Mar 2013 17:15:11 +0000 (18:15 +0100)]
Correct a bad change.

9 years agoCorrect assert definition to correctly display the faulty text instead of "x"
Manoel Trapier [Thu, 21 Mar 2013 16:39:00 +0000 (17:39 +0100)]
Correct assert definition to correctly display the faulty text instead of "x"

9 years agoAdd #warning to cemcom.ansi
Manoel Trapier [Thu, 21 Mar 2013 16:38:27 +0000 (17:38 +0100)]
Add #warning to cemcom.ansi

9 years agoCorrect bad changes
Manoel Trapier [Thu, 21 Mar 2013 16:38:02 +0000 (17:38 +0100)]
Correct bad changes

9 years agoOUPS! printing text here was really not good idea!
Manoel Trapier [Thu, 21 Mar 2013 15:08:43 +0000 (16:08 +0100)]
OUPS! printing text here was really not good idea!

9 years agoConverting mach ncg...
Manoel Trapier [Thu, 21 Mar 2013 15:08:18 +0000 (16:08 +0100)]
Converting mach ncg...

9 years agoCorrect some Linux/clang missing parts.
Manoel Trapier [Thu, 21 Mar 2013 09:25:29 +0000 (10:25 +0100)]
Correct some Linux/clang missing parts.

9 years agoCorrect comment errors.
Godzil [Thu, 21 Mar 2013 00:35:12 +0000 (01:35 +0100)]
Correct comment errors.

9 years agoUpdate i86 as part.
Godzil [Thu, 21 Mar 2013 00:34:42 +0000 (01:34 +0100)]
Update i86 as part.

9 years agoDo not use ACK cpp (even ANSI one) to compile for the host.
Godzil [Thu, 21 Mar 2013 00:34:07 +0000 (01:34 +0100)]
Do not use ACK cpp (even ANSI one) to compile for the host.

9 years agoCurrently deactivate all language expect ANSI C.
Godzil [Thu, 21 Mar 2013 00:33:26 +0000 (01:33 +0100)]
Currently deactivate all language expect ANSI C.

9 years agoUpdate generic part of the AS
Godzil [Thu, 21 Mar 2013 00:32:58 +0000 (01:32 +0100)]
Update generic part of the AS

9 years agocpp.ansi: Add missing "#warning" directive
Godzil [Wed, 20 Mar 2013 22:45:43 +0000 (23:45 +0100)]
cpp.ansi: Add missing "#warning" directive

9 years agoRemove unwanted files
Manoel Trapier [Wed, 20 Mar 2013 19:35:54 +0000 (20:35 +0100)]
Remove unwanted files

9 years agoUpdate makeheader.sh
Manoel Trapier [Wed, 20 Mar 2013 19:35:46 +0000 (20:35 +0100)]
Update makeheader.sh

9 years agoFinishing ANSI C frontend
Manoel Trapier [Wed, 20 Mar 2013 19:35:38 +0000 (20:35 +0100)]
Finishing ANSI C frontend

9 years agoMore incoherency between MacOSX and Linux...
Manoel Trapier [Wed, 20 Mar 2013 09:18:01 +0000 (10:18 +0100)]
More incoherency between MacOSX and Linux...

9 years agoAdd small too to generate headers.
Godzil [Wed, 20 Mar 2013 08:41:59 +0000 (09:41 +0100)]
Add small too to generate headers.

(Need cproto)

9 years agoWorking on ANSI C frontend...
Godzil [Wed, 20 Mar 2013 08:41:33 +0000 (09:41 +0100)]
Working on ANSI C frontend...

9 years agoNext batch of changes!
Godzil [Wed, 20 Mar 2013 00:58:06 +0000 (01:58 +0100)]
Next batch of changes!

9 years agoMacOS X/clang found a new batch of warnings :)
Godzil [Tue, 19 Mar 2013 21:14:10 +0000 (22:14 +0100)]
MacOS X/clang found a new batch of warnings :)

9 years agoWarning hunt on ego.
Manoel Trapier [Tue, 19 Mar 2013 17:45:41 +0000 (18:45 +0100)]
Warning hunt on ego.

9 years agoNext batch of warning hunt...
Manoel Trapier [Tue, 19 Mar 2013 16:37:24 +0000 (17:37 +0100)]
Next batch of warning hunt...

9 years agoCorrect an incoherency with arith and label types.
Manoel Trapier [Tue, 19 Mar 2013 14:05:37 +0000 (15:05 +0100)]
Correct an incoherency with arith and label types.

9 years agoRemove more warns on ncgg
Manoel Trapier [Tue, 19 Mar 2013 12:26:07 +0000 (13:26 +0100)]
Remove more warns on ncgg

!! Maybe a bug found in ncgg cgg.y with n_coerc call atline 612

9 years agoAs suspected clang/Linux have it's own sort of warns ^^
Manoel Trapier [Tue, 19 Mar 2013 09:55:03 +0000 (10:55 +0100)]
As suspected clang/Linux have it's own sort of warns ^^

9 years agoNow CGG compile without warns ;)
Godzil [Tue, 19 Mar 2013 08:46:55 +0000 (09:46 +0100)]
Now CGG compile without warns ;)

9 years agoRemove bad prototypes
Godzil [Tue, 19 Mar 2013 08:46:36 +0000 (09:46 +0100)]
Remove bad prototypes

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

9 years agoMore strict checks...
Manoel Trapier [Mon, 18 Mar 2013 17:58:21 +0000 (18:58 +0100)]
More strict checks...

9 years agoReordonate modules in a more logical way.
Manoel Trapier [Mon, 18 Mar 2013 13:17:14 +0000 (14:17 +0100)]
Reordonate modules in a more logical way.

(some modules have dependencies on other especially with header files)

9 years agoBeing a bit more strict on warnings (-Wall).
Manoel Trapier [Mon, 18 Mar 2013 13:16:36 +0000 (14:16 +0100)]
Being a bit more strict on warnings (-Wall).

9 years agoMake GCC happy with current patchs and compilation flags.
Manoel Trapier [Mon, 18 Mar 2013 09:24:47 +0000 (10:24 +0100)]
Make GCC happy with current patchs and compilation flags.

9 years agoAnother batch especially on C ANSI frontend
Godzil [Mon, 18 Mar 2013 01:25:39 +0000 (02:25 +0100)]
Another batch especially on C ANSI frontend

9 years agoAdd a global symbol2str header
Godzil [Thu, 14 Mar 2013 21:43:33 +0000 (22:43 +0100)]
Add a global symbol2str header

9 years agoUpdate .gitignore
Godzil [Thu, 14 Mar 2013 20:42:44 +0000 (21:42 +0100)]
Update .gitignore

9 years agoCorrect printf with 64bit pointer
Godzil [Thu, 14 Mar 2013 20:41:37 +0000 (21:41 +0100)]
Correct printf with 64bit pointer

9 years agoCorrect some error on static function declaration.
Godzil [Thu, 14 Mar 2013 20:38:54 +0000 (21:38 +0100)]
Correct some error on static function declaration.

9 years agoA bit of missing corections.
Manoel Trapier [Thu, 14 Mar 2013 17:09:43 +0000 (18:09 +0100)]
A bit of missing corections.

9 years agoStarting ANSI C frontend
Manoel Trapier [Thu, 14 Mar 2013 15:10:42 +0000 (16:10 +0100)]
Starting ANSI C frontend

9 years agoNext batch
Manoel Trapier [Thu, 14 Mar 2013 13:54:26 +0000 (14:54 +0100)]
Next batch

9 years agoGetting sync.
Godzil [Thu, 14 Mar 2013 08:29:46 +0000 (09:29 +0100)]
Getting sync.

9 years agoAdd missing stdarg (funnily, linux/clang does not complain about this miss)
Godzil [Wed, 13 Mar 2013 23:37:35 +0000 (00:37 +0100)]
Add missing stdarg (funnily, linux/clang does not complain about this miss)

9 years agoNext batch...
Manoel Trapier [Wed, 13 Mar 2013 17:56:03 +0000 (18:56 +0100)]
Next batch...

9 years agoUpdate README.
Manoel Trapier [Tue, 12 Mar 2013 14:05:31 +0000 (15:05 +0100)]
Update README.

9 years agoAdd transtyping for support of 64bit cpu and 32cpu (or the printf verification for...
Manoel Trapier [Tue, 12 Mar 2013 14:04:26 +0000 (15:04 +0100)]
Add transtyping for support of 64bit cpu and 32cpu (or the printf verification for %d/%ld will fail)

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.