1
Gawk on Atari has been compiled and tested using gcc compiler
2
(versions 1.4 and 2.4.4) both with and without -mshort flag. Other
3
compilers can be used but if sizeof(pointer) != sizeof(int) this
4
code will not compile correctly with non-ANSI compiler (prototypes
7
Compiled executables were tested and with minor modifications, due
8
to differences in environment and/or shell, succesfully completed
9
at least the following tests:
10
awf, pearls, resub, chem, swaplns, delete, messages, argarray,
11
longwrds, getline, inftest, spiece2top, fstabplus, compare, arrayref,
12
rs, fsrs, rand, fsbs, negexp, ugh2, asgext, anchgsub, splitargv,
13
fieldwidths, ignorecase, posix, manyfiles, igncfs, lisp, regtest,
14
awkpath, reparse, nfset.
16
Nearly all of these test do not require any adjustments to run, but a
17
modified test suite with a driving Makefile (for gulam) is available
18
on a request from Michal Jaegermann, michal@gortel.phys.ualberta.ca,
23
Setup for Atari assumes that gawk will be used under TOS. In
24
particular atari/system.c source is for a system function which nicely
25
cooperates with gulam shell and pipes are simulated with temporary
26
files. If you plan to run gawk under MiNT then you likely want a
27
different system function and real pipes. For that purpose do not
28
define SYSTEM_MISSING in a configuration file and do not define
29
PIPES_SIMULATED in io.c file. Please note that in the later case gawk
30
calls, in gawk_popen(), a function execl() with a hard-coded name of
31
"/bin/sh". You want likely to change that to get a name and some
32
arguments from an environment variable. This was not done here in
33
order to avoid changes which may prove troublesome in a general
34
distribution. Subdirectory ./atari contains also a file textrd.c with
35
a bug fix for old versions of gcc libraries. This bug is currently
36
fixed and the file is not used, but it is left as a convenience for
37
those who may not updated yet their libraries.