Initial revision.
mawk-1.3.4-20100625/repl.h:
*******************************************
repl.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: repl.h,v 1.4 2009/07/27 21:47:40 tom Exp $
@Log: repl.h,v @
Revision 1.1.1.1 1993/07/03 18:58:19 mike
move source to cvs
Revision 5.1 1991/12/05 07:59:32 brennan
1.1 pre-release
repl.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/memory.h:
*******************************************
memory.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: memory.h,v 1.7 2010/05/07 00:41:27 tom Exp $
@Log: memory.h,v @
Revision 1.1.1.1 1993/07/03 18:58:17 mike
move source to cvs
Revision 5.2 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.1 1991/12/05 07:59:28 brennan
1.1 pre-release
memory.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/matherr.c:
*******************************************
matherr.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: matherr.c,v 1.23 2010/02/21 15:37:21 tom Exp $
@Log: matherr.c,v @
Revision 1.9 1996/09/01 16:54:35 mike
Third try at bug fix for solaris strtod.
Revision 1.6 1994/12/18 20:53:43 mike
check NetBSD mathlib defines
Revision 1.5 1994/12/14 14:48:57 mike
add <siginfo.h> include -- sysV doesn't have it inside <signal.h>
restore #else that had been removed
Revision 1.4 1994/10/11 00:36:17 mike
systemVr4 siginfo
Revision 1.3 1993/07/17 13:23:04 mike
indent and general code cleanup
Revision 1.2 1993/07/04 12:52:03 mike
start on autoconfig changes
Revision 5.2 1992/03/31 16:14:44 brennan
patch2:
TURN_ON_FPE_TRAPS() macro
USE_IEEEFP_H macro
Revision 5.1 91/12/05 07:56:18 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/re_cmpl.c:
*******************************************
re_cmpl.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: re_cmpl.c,v 1.10 2010/05/07 08:15:08 tom Exp $
@Log: re_cmpl.c,v @
Revision 1.6 1994/12/13 00:14:58 mike
\\ -> \ on second replacement scan
Revision 1.5 1994/10/08 19:15:51 mike
remove SM_DOS
Revision 1.4 1993/07/21 01:17:53 mike
handle "&" as replacement correctly
Revision 1.3 1993/07/17 13:23:10 mike
indent and general code cleanup
Revision 1.2 1993/07/15 23:38:23 mike
SIZE_T and indent
Revision 1.1.1.1 1993/07/03 18:58:19 mike
move source to cvs
Revision 5.2 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.1 1991/12/05 07:56:25 brennan
1.1 pre-release
re_cmpl.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/rexp.c:
*******************************************
rexp.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: rexp.c,v 1.10 2009/09/13 22:43:29 tom Exp $
@Log: rexp.c,v @
Revision 1.3 1996/09/02 18:47:36 mike
Make ^* and ^+ syntax errors.
Revision 1.2 1993/07/23 13:21:32 mike
cleanup rexp code
Revision 1.1.1.1 1993/07/03 18:58:26 mike
move source to cvs
Revision 3.4 1991/08/13 09:09:59 brennan
VERSION .9994
Revision 3.3 91/08/04 15:45:03 brennan
no longer attempt to recover mem on failed REcompile
Its not worth the effort
Revision 3.2 91/08/03 07:24:06 brennan
check for empty machine stack (missing operand) wasn't quite right
Revision 3.1 91/06/07 10:33:16 brennan
VERSION 0.995
Revision 1.7 91/06/05 08:58:47 brennan
change RE_free to free
Revision 1.6 91/06/03 07:07:17 brennan
moved parser stacks inside REcompile
removed unnecessary copying
op precedence parser for regular expressions
--------------------------------------------------------------------
mawk-1.3.4-20100625/scan.c:
*******************************************
scan.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: scan.c,v 1.22 2010/06/25 22:34:36 tom Exp $
@Log: scan.c,v @
Revision 1.8 1996/07/28 21:47:05 mike
gnuish patch
Revision 1.7 1995/06/18 19:42:24 mike
Remove some redundant declarations and add some prototypes
Revision 1.6 1995/06/10 16:57:52 mike
silently exit(0) if no program
always add a '\n' on eof in scan_fillbuff()
Revision 1.5 1995/06/06 00:18:33 mike
change mawk_exit(1) to mawk_exit(2)
Revision 1.4 1994/09/23 00:20:04 mike
minor bug fix: handle \ in eat_nl()
Revision 1.3 1993/07/17 00:45:21 mike
indent
Revision 1.2 1993/07/04 12:52:09 mike
start on autoconfig changes
Revision 1.1.1.1 1993/07/03 18:58:20 mike
move source to cvs
Revision 5.6 1993/02/13 21:57:33 mike
merge patch3
Revision 5.5 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.4.1.1 1993/01/15 03:33:50 mike
patch3: safer double to int conversion
Revision 5.4 1992/11/29 18:57:50 mike
field expressions convert to long so 16 bit and 32 bit
systems behave the same
Revision 5.3 1992/07/08 15:43:41 brennan
patch2: length returns. I am a wimp
Revision 5.2 1992/02/21 14:16:53 brennan
fix: getline <=
Revision 5.1 91/12/05 07:56:27 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/rexp3.c:
*******************************************
rexp3.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: rexp3.c,v 1.25 2010/05/07 22:09:39 tom Exp $
@Log: rexp3.c,v @
Revision 1.3 1993/07/24 17:55:15 mike
more cleanup
Revision 1.2 1993/07/23 13:21:48 mike
cleanup rexp code
Revision 1.1.1.1 1993/07/03 18:58:28 mike
move source to cvs
Revision 3.6 1992/12/24 00:44:53 mike
fixed potential LMDOS bozo with M_STR+U_ON+END_ON
fixed minor bug in M_CLASS+U_ON+END_ON
Revision 3.5 1992/01/21 17:33:20 brennan
added some casts so that character classes work with signed chars
Revision 3.4 91/10/29 10:54:09 brennan
SIZE_T
Revision 3.3 91/08/13 09:10:18 brennan
VERSION .9994
Revision 3.2 91/06/10 16:18:17 brennan
changes for V7
Revision 3.1 91/06/07 10:33:28 brennan
VERSION 0.995
Revision 1.4 91/05/31 10:56:32 brennan
stack_empty hack for DOS large model
match a string against a machine
--------------------------------------------------------------------
mawk-1.3.4-20100625/files.c:
*******************************************
files.c
copyright 1991-94. Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: files.c,v 1.16 2010/06/25 21:56:01 tom Exp $
@Log: files.c,v @
Revision 1.9 1996/01/14 17:14:10 mike
flush_all_output()
Revision 1.8 1995/06/06 00:18:27 mike
change mawk_exit(1) to mawk_exit(2)
Revision 1.7 1994/12/11 20:48:50 mike
fflush builtin
Revision 1.6 1994/10/08 19:15:40 mike
remove SM_DOS
Revision 1.5 1994/04/17 20:01:37 mike
recognize filename "/dev/stdout"
Revision 1.4 1994/02/21 00:11:07 mike
code cleanup
Revision 1.3 1993/07/16 01:00:36 mike
cleanup and indent
Revision 5.5 1992/12/17 02:48:01 mike
1.1.2d changes for DOS
Revision 5.4 1992/07/10 16:10:30 brennan
patch2
MsDOS: remove useless NO_BINMODE macro
get process exit code on in pipes
Revision 5.3 1992/04/07 20:21:17 brennan
patch 2
unbuffered output to a tty
Revision 5.2 1992/04/07 16:03:08 brennan
patch 2
allow same filename for output and input, but use different descriptors
E.g. < "/dev/tty" and > "/dev/tty"
Revision 5.1 91/12/05 07:56:00 brennan
1.1 pre-release
files.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/rexp1.c:
*******************************************
rexp1.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: rexp1.c,v 1.12 2010/05/07 22:05:40 tom Exp $
@Log: rexp1.c,v @
Revision 1.3 1993/07/24 17:55:10 mike
more cleanup
Revision 1.2 1993/07/23 13:21:41 mike
cleanup rexp code
Revision 1.1.1.1 1993/07/03 18:58:27 mike
move source to cvs
Revision 3.4 1992/02/20 16:08:12 brennan
change new_TWO() to work around sun acc bug
Revision 3.3 91/10/29 10:54:01 brennan
SIZE_T
Revision 3.2 91/08/13 09:10:11 brennan
VERSION .9994
Revision 3.1 91/06/07 10:33:22 brennan
VERSION 0.995
re machine operations
--------------------------------------------------------------------
mawk-1.3.4-20100625/msdos/ztc.h:
*******************************************
ztc.h
copyright 1992-4, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
Zortech C++ under MSDOS
@Log: ztc.h,v @
Revision 1.3 1994/10/08 19:12:08 mike
SET_PROGNAME
Revision 1.2 1994/10/08 18:49:30 mike
add MAX__INT etc
Revision 1.1 1994/10/08 18:24:43 mike
moved from config directory
Revision 1.1.1.1 1993/07/03 18:58:37 mike
move source to cvs
Revision 1.1 1992/12/27 01:42:50 mike
Initial revision
Revision 4.2.1 92/06/01 00:00:00 bmyers
create Zortech C++ version from Borland C++ version
ZTC has matherr function and no info for floating point exceptions.
This might not work anymore under mawk 1.2
MDB 10/94
--------------------------------------------------------------------
mawk-1.3.4-20100625/regexp.h:
*******************************************
regexp.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: regexp.h,v 1.9 2010/05/07 08:10:40 tom Exp $
@Log: regexp.h,v @
Revision 1.1.1.1 1993/07/03 18:58:19 mike
move source to cvs
Revision 5.1 1991/12/05 07:59:30 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/print.c:
*******************************************
print.c
copyright 1991-1993. Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: print.c,v 1.21 2010/05/07 22:01:46 tom Exp $
@Log: print.c,v @
Revision 1.7 1996/09/18 01:04:36 mike
Check ferror() after print and printf.
Revision 1.6 1995/10/13 16:56:45 mike
Some assumptions that int==long were still in do_printf -- now removed.
Revision 1.5 1995/06/18 19:17:50 mike
Create a type Int which on most machines is an int, but on machines
with 16bit ints, i.e., the PC is a long. This fixes implicit assumption
that int==long.
Revision 1.4 1994/10/08 19:15:50 mike
remove SM_DOS
Revision 1.3 1993/07/15 23:38:19 mike
SIZE_T and indent
Revision 1.2 1993/07/07 00:07:50 mike
more work on 1.2
Revision 1.1.1.1 1993/07/03 18:58:18 mike
move source to cvs
Revision 5.6 1993/02/13 21:57:30 mike
merge patch3
Revision 5.5 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.4.1.2 1993/01/20 12:53:11 mike
d_to_l()
Revision 5.4.1.1 1993/01/15 03:33:47 mike
patch3: safer double to int conversion
Revision 5.4 1992/11/29 18:03:11 mike
when printing integers, convert doubles to
longs so output is the same on 16bit systems as 32bit systems
Revision 5.3 1992/08/17 14:23:21 brennan
patch2: After parsing, only bi_sprintf() uses string_buff.
Revision 5.2 1992/02/24 10:52:16 brennan
printf and sprintf() can now have more args than % conversions
removed HAVE_PRINTF_HD -- it was too obscure
Revision 5.1 91/12/05 07:56:22 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/fin.h:
*******************************************
fin.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: fin.h,v 1.10 2010/06/25 21:53:10 tom Exp $
@Log: fin.h,v @
Revision 1.1.1.1 1993/07/03 18:58:13 mike
move source to cvs
Revision 5.2 1992/01/06 08:16:24 brennan
setmode() proto for MSDOS
Revision 5.1 91/12/05 07:59:20 brennan
1.1 pre-release
fin.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/scan.h:
*******************************************
scan.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: scan.h,v 1.3 2009/12/13 19:43:23 Jonathan.Nieder Exp $
@Log: scan.h,v @
Revision 1.3 1995/06/18 19:42:26 mike
Remove some redundant declarations and add some prototypes
Revision 1.2 1994/09/23 00:20:06 mike
minor bug fix: handle \ in eat_nl()
Revision 1.1.1.1 1993/07/03 18:58:20 mike
move source to cvs
Revision 5.1 1991/12/05 07:59:33 brennan
1.1 pre-release
scan.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/mawk.h:
*******************************************
mawk.h
copyright 1991-94, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: mawk.h,v 1.19 2010/05/07 22:01:59 tom Exp $
@Log: mawk.h,v @
Revision 1.10 1996/08/25 19:31:04 mike
Added work-around for solaris strtod overflow bug.
Revision 1.9 1995/06/18 19:42:21 mike
Remove some redundant declarations and add some prototypes
Revision 1.8 1995/06/18 19:17:48 mike
Create a type Int which on most machines is an int, but on machines
with 16bit ints, i.e., the PC is a long. This fixes implicit assumption
that int==long.
Revision 1.7 1995/06/09 22:57:17 mike
parse() no longer returns on error
Revision 1.6 1994/12/13 00:09:55 mike
rt_nr and rt_fnr for run-time error messages
Revision 1.5 1994/12/11 23:25:09 mike
-Wi option
Revision 1.4 1994/12/11 22:14:18 mike
remove THINK_C #defines. Not a political statement, just no indication
that anyone ever used it.
Revision 1.3 1993/07/07 00:07:41 mike
more work on 1.2
Revision 1.2 1993/07/04 12:52:06 mike
start on autoconfig changes
mawk.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/msdos/dosexec.c:
*******************************************
dosexec.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: dosexec.c,v 1.3 2010/02/21 16:01:36 tom Exp $
@Log: dosexec.c,v @
Revision 1.3 1995/08/20 16:37:22 mike
exit(1) -> exit(2)
Revision 1.2 1994/10/08 18:50:03 mike
remove SM_DOS
Revision 1.1.1.1 1993/07/03 18:58:47 mike
move source to cvs
Revision 1.4 1992/12/05 22:29:43 mike
dos patch 112d:
don't use string_buff
check COMSPEC
Revision 1.3 1992/07/10 16:21:57 brennan
store exit code of input pipes
Revision 1.2 1991/11/16 10:27:18 brennan
BINMODE
Revision 1.1 91/10/29 09:45:56 brennan
Initial revision
system() and pipes() for MSDOS and Win32 console
--------------------------------------------------------------------
mawk-1.3.4-20100625/execute.c:
*******************************************
execute.c
copyright 1991-1996, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: execute.c,v 1.16 2010/05/07 22:03:19 tom Exp $
@Log: execute.c,v @
Revision 1.13 1996/02/01 04:39:40 mike
dynamic array scheme
Revision 1.12 1995/06/06 00:18:24 mike
change mawk_exit(1) to mawk_exit(2)
Revision 1.11 1995/03/08 00:06:24 mike
add a pointer cast
Revision 1.10 1994/12/13 00:12:10 mike
delete A statement to delete all of A at once
Revision 1.9 1994/10/25 23:36:11 mike
clear aloop stack on _NEXT
Revision 1.8 1994/10/08 19:15:35 mike
remove SM_DOS
Revision 1.7 1993/12/30 19:10:03 mike
minor cleanup to _CALL
Revision 1.6 1993/12/01 14:25:13 mike
reentrant array loops
Revision 1.5 1993/07/22 00:04:08 mike
new op code _LJZ _LJNZ
Revision 1.4 1993/07/14 12:18:21 mike
run thru indent
Revision 1.3 1993/07/14 11:50:17 mike
rm SIZE_T and void casts
Revision 1.2 1993/07/04 12:51:49 mike
start on autoconfig changes
Revision 5.10 1993/02/13 21:57:22 mike
merge patch3
Revision 5.9 1993/01/07 02:50:33 mike
relative vs absolute code
Revision 5.8 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.7.1.1 1993/01/15 03:33:39 mike
patch3: safer double to int conversion
Revision 5.7 1992/12/17 02:48:01 mike
1.1.2d changes for DOS
Revision 5.6 1992/11/29 18:57:50 mike
field expressions convert to long so 16 bit and 32 bit
systems behave the same
Revision 5.5 1992/08/11 15:24:55 brennan
patch2: F_PUSHA and FE_PUSHA
If this is preparation for g?sub(r,s,$expr) or (++|--) on $expr,
then if expr > NF, make sure $expr is set to ""
Revision 5.4 1992/08/11 14:51:54 brennan
patch2: $expr++ is numeric even if $expr is string.
I forgot to do this earlier when handling x++ case.
Revision 5.3 1992/07/08 17:03:30 brennan
patch 2
revert to version 1.0 comparisons, i.e.
page 44-45 of AWK book
Revision 5.2 1992/04/20 21:40:40 brennan
patch 2
x++ is numeric, even if x is string
Revision 5.1 1991/12/05 07:55:50 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/cast.c:
*******************************************
cast.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: cast.c,v 1.10 2010/05/07 00:57:28 tom Exp $
@Log: cast.c,v @
Revision 1.6 1996/08/11 22:07:50 mike
Fix small bozo in rt_error("overflow converting ...")
Revision 1.5 1995/06/18 19:17:45 mike
Create a type Int which on most machines is an int, but on machines
with 16bit ints, i.e., the PC is a long. This fixes implicit assumption
that int==long.
Revision 1.4 1995/06/06 00:02:02 mike
fix cast in d_to_l()
Revision 1.3 1993/07/17 13:22:45 mike
indent and general code cleanup
Revision 1.2 1993/07/04 12:51:41 mike
start on autoconfig changes
Revision 5.5 1993/03/06 18:49:45 mike
rm rt_overflow from check_strnum
Revision 5.4 1993/02/13 21:57:20 mike
merge patch3
Revision 5.3.1.4 1993/01/22 15:05:19 mike
pow2->mpow2 for linux
Revision 5.3.1.3 1993/01/22 14:18:33 mike
const for strtod and ansi picky compilers
Revision 5.3.1.2 1993/01/20 12:53:06 mike
d_to_l()
Revision 5.3.1.1 1993/01/15 03:33:37 mike
patch3: safer double to int conversion
Revision 5.3 1992/11/28 23:48:42 mike
For internal conversion numeric->string, when testing
if integer, use longs instead of ints so 16 and 32 bit
systems behave the same
Revision 5.2 1992/08/17 14:19:45 brennan
patch2: After parsing, only bi_sprintf() uses string_buff.
Revision 5.1 1991/12/05 07:55:41 brennan
1.1 pre-release
cast.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/kw.c:
*******************************************
kw.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: kw.c,v 1.4 2009/07/27 15:33:28 tom Exp $
@Log: kw.c,v @
Revision 1.2 1993/07/17 13:22:59 mike
indent and general code cleanup
Revision 1.1.1.1 1993/07/03 18:58:15 mike
move source to cvs
Revision 5.1 1991/12/05 07:56:12 brennan
1.1 pre-release
kw.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/jmp.c:
*******************************************
jmp.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: jmp.c,v 1.5 2010/05/07 10:59:46 tom Exp $
@Log: jmp.c,v @
Revision 1.4 1995/06/18 19:42:19 mike
Remove some redundant declarations and add some prototypes
Revision 1.3 1995/04/21 14:20:16 mike
move_level variable to fix bug in arglist patching of moved code.
Revision 1.2 1993/07/14 13:17:49 mike
rm SIZE_T and run thru indent
Revision 1.1.1.1 1993/07/03 18:58:15 mike
move source to cvs
Revision 5.3 1993/01/09 19:03:44 mike
code_pop checks if the resolve_list needs relocation
Revision 5.2 1993/01/07 02:50:33 mike
relative vs absolute code
Revision 5.1 1991/12/05 07:56:10 brennan
1.1 pre-release
this module deals with back patching jumps, breaks and continues,
and with save and restoring code when we move code.
There are three stacks. If we encounter a compile error, the
stacks are frozen, i.e., we do not attempt error recovery
on the stacks
--------------------------------------------------------------------
mawk-1.3.4-20100625/symtype.h:
*******************************************
symtype.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: symtype.h,v 1.7 2010/05/07 08:18:41 tom Exp $
@Log: symtype.h,v @
Revision 1.6 1996/02/01 04:39:43 mike
dynamic array scheme
Revision 1.5 1995/04/21 14:20:23 mike
move_level variable to fix bug in arglist patching of moved code.
Revision 1.4 1994/12/13 00:13:02 mike
delete A statement to delete all of A at once
Revision 1.3 1993/12/01 14:25:25 mike
reentrant array loops
Revision 1.2 1993/07/15 01:55:08 mike
rm SIZE_T & indent
Revision 1.1.1.1 1993/07/03 18:58:21 mike
move source to cvs
Revision 5.5 1993/01/09 19:03:44 mike
code_pop checks if the resolve_list needs relocation
Revision 5.4 1993/01/07 02:50:33 mike
relative vs absolute code
Revision 5.3 1992/12/17 02:48:01 mike
1.1.2d changes for DOS
Revision 5.2 1992/07/08 15:44:44 brennan
patch2: length returns. I am a wimp
Revision 5.1 1991/12/05 07:59:37 brennan
1.1 pre-release
types related to symbols are defined here
--------------------------------------------------------------------
mawk-1.3.4-20100625/split.c:
*******************************************
split.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: split.c,v 1.20 2010/06/25 21:54:15 tom Exp $
@Log: split.c,v @
Revision 1.3 1996/02/01 04:39:42 mike
dynamic array scheme
Revision 1.2 1993/07/15 01:55:03 mike
rm SIZE_T & indent
Revision 1.1.1.1 1993/07/03 18:58:21 mike
move source to cvs
Revision 5.4 1993/05/08 18:06:00 mike
null_split
Revision 5.3 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.2 1992/07/08 21:19:09 brennan
patch2
change in split() requires that
bi_split() call load_array() even
when cnt is 0.
Revision 5.1 1991/12/05 07:56:31 brennan
1.1 pre-release
split.c
For all splitting up to MAX_SPLIT fields go into
split_buff[], the rest go onto split_ov_list ( split
overflow list)
We can split one of three ways:
(1) By space:
space_split() and space_ov_split()
(2) By regular expression:
re_split() and re_ov_split()
(3) By "" (null -- split into characters)
null_split() and null_ov_split()
--------------------------------------------------------------------
mawk-1.3.4-20100625/makescan.c:
*******************************************
makescan.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: makescan.c,v 1.9 2010/01/31 20:48:36 tom Exp $
@Log: makescan.c,v @
Revision 1.3 1993/07/17 13:23:01 mike
indent and general code cleanup
Revision 1.2 1993/07/15 13:26:59 mike
SIZE_T and indent
Revision 1.1.1.1 1993/07/03 18:58:16 mike
move source to cvs
Revision 5.1 1991/12/05 07:56:16 brennan
1.1 pre-release
source for makescan.exe which builds the scancode[]
via: makescan.exe > scancode.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/hash.c:
*******************************************
hash.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: hash.c,v 1.7 2010/05/07 08:18:31 tom Exp $
@Log: hash.c,v @
Revision 1.3 1994/10/08 19:15:43 mike
remove SM_DOS
Revision 1.2 1993/07/16 00:17:35 mike
cleanup
Revision 1.1.1.1 1993/07/03 18:58:14 mike
move source to cvs
Revision 5.1 1991/12/05 07:56:05 brennan
1.1 pre-release
hash.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/field.c:
*******************************************
field.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: field.c,v 1.13 2010/05/07 22:03:19 tom Exp $
@Log: field.c,v @
Revision 1.5 1995/06/18 19:17:47 mike
Create a type Int which on most machines is an int, but on machines
with 16bit ints, i.e., the PC is a long. This fixes implicit assumption
that int==long.
Revision 1.4 1994/10/08 19:15:38 mike
remove SM_DOS
Revision 1.3 1993/07/14 12:32:39 mike
run thru indent
Revision 1.2 1993/07/14 12:22:11 mike
rm SIZE_T and (void) casts
Revision 1.1.1.1 1993/07/03 18:58:12 mike
move source to cvs
Revision 5.7 1993/05/08 18:06:00 mike
null_split
Revision 5.6 1993/02/13 21:57:25 mike
merge patch3
Revision 5.5 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.4.1.2 1993/01/20 12:53:08 mike
d_to_l()
Revision 5.4.1.1 1993/01/15 03:33:42 mike
patch3: safer double to int conversion
Revision 5.4 1992/11/29 22:52:11 mike
double->string conversions uses long ints for 16/32 bit
compatibility.
Fixed small LM_DOS bozo.
Revision 5.3 1992/08/17 14:21:10 brennan
patch2: After parsing, only bi_sprintf() uses string_buff.
Revision 5.2 1992/07/10 16:17:10 brennan
MsDOS: remove NO_BINMODE macro
Revision 5.1 1991/12/05 07:55:57 brennan
1.1 pre-release
field.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/sizes.h:
*******************************************
sizes.h
copyright 1991, 1992. Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: sizes.h,v 1.6 2010/02/21 22:37:21 tom Exp $
@Log: sizes.h,v @
Revision 1.8 1995/10/14 22:09:51 mike
getting MAX__INT from values.h didn't really work since the value was
unusable in an #if MAX__INT <= 0x7fff
at least it didn't work under sunos -- so use of values.h is a goner
Revision 1.7 1995/06/18 19:17:51 mike
Create a type Int which on most machines is an int, but on machines
with 16bit ints, i.e., the PC is a long. This fixes implicit assumption
that int==long.
Revision 1.6 1994/10/10 01:39:01 mike
get MAX__INT from limits.h or values.h
Revision 1.5 1994/10/08 19:15:53 mike
remove SM_DOS
Revision 1.4 1994/09/25 23:00:49 mike
remove #if 0
Revision 1.3 1993/07/15 23:56:15 mike
general cleanup
Revision 1.2 1993/07/04 12:52:13 mike
start on autoconfig changes
Revision 5.3 1992/12/17 02:48:01 mike
1.1.2d changes for DOS
Revision 5.2 1992/08/27 03:20:08 mike
patch2: increase A_HASH_PRIME
Revision 5.1 1991/12/05 07:59:35 brennan
1.1 pre-release
sizes.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/fcall.c:
*******************************************
fcall.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: fcall.c,v 1.7 2010/05/07 09:30:33 tom Exp $
@Log: fcall.c,v @
Revision 1.7 1995/08/27 15:46:47 mike
change some errmsgs to compile_errors
Revision 1.6 1995/06/09 22:58:24 mike
cast to shutup solaris cc on comparison of short to ushort
Revision 1.5 1995/06/06 00:18:26 mike
change mawk_exit(1) to mawk_exit(2)
Revision 1.4 1995/04/21 14:20:14 mike
move_level variable to fix bug in arglist patching of moved code.
Revision 1.3 1995/02/19 22:15:37 mike
Always set the call_offset field in a CA_REC (for obscure
reasons in fcall.c (see comments) there.)
Revision 1.2 1993/07/17 13:22:52 mike
indent and general code cleanup
Revision 1.1.1.1 1993/07/03 18:58:11 mike
move source to cvs
Revision 5.4 1993/01/09 19:03:44 mike
code_pop checks if the resolve_list needs relocation
Revision 5.3 1993/01/07 02:50:33 mike
relative vs absolute code
Revision 5.2 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.1 1991/12/05 07:55:54 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/bi_vars.h:
*******************************************
bi_vars.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: bi_vars.h,v 1.6 2009/12/16 23:32:06 tom Exp $
@Log: bi_vars.h,v @
Revision 1.1.1.1 1993/07/03 18:58:09 mike
move source to cvs
Revision 5.2 1992/07/10 16:17:10 brennan
MsDOS: remove NO_BINMODE macro
Revision 5.1 1991/12/05 07:59:05 brennan
1.1 pre-release
bi_vars.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/zmalloc.c:
*******************************************
zmalloc.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: zmalloc.c,v 1.12 2010/05/07 22:11:34 tom Exp $
@Log: zmalloc.c,v @
Revision 1.6 1995/06/06 00:18:35 mike
change mawk_exit(1) to mawk_exit(2)
Revision 1.5 1995/03/08 00:06:26 mike
add a pointer cast
Revision 1.4 1993/07/14 12:45:15 mike
run thru indent
Revision 1.3 1993/07/07 00:07:54 mike
more work on 1.2
Revision 1.2 1993/07/03 21:15:35 mike
bye bye yacc_mem
Revision 1.1.1.1 1993/07/03 18:58:23 mike
move source to cvs
Revision 5.4 1993/02/13 21:57:38 mike
merge patch3
Revision 5.3 1993/01/14 13:12:33 mike
casts in front of malloc
Revision 5.1.1.1 1993/02/06 11:12:19 mike
fix bug in reuse of parser table memory
for most users ifdef the mess out
Revision 5.1 1991/12/05 07:56:35 brennan
1.1 pre-release
zmalloc.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/msdos/vs6.h, mawk-1.3.4-20100625/msdos/msc.h:
*******************************************
msc.h
copyright 1994, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
Microsoft C 6.0A under MSDOS
$MawkId: vs6.h,v 1.1 2010/02/21 16:13:36 tom Exp $
@Log: msc.h,v @
Revision 1.6 1996/07/28 21:46:16 mike
gnuish patch
Revision 1.5 1995/08/20 17:44:38 mike
minor fixes to msc and lower case makefile names
Revision 1.4 1995/01/08 21:50:43 mike
remove extra #endif
Revision 1.3 1994/10/08 19:12:05 mike
SET_PROGNAME
Revision 1.2 1994/10/08 18:49:28 mike
add MAX__INT etc
Revision 1.1 1994/10/08 18:24:40 mike
moved from config directory
--------------------------------------------------------------------
mawk-1.3.4-20100625/code.h:
*******************************************
code.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: code.h,v 1.4 2010/05/07 09:49:46 tom Exp $
@Log: code.h,v @
Revision 1.5 1995/06/18 19:42:15 mike
Remove some redundant declarations and add some prototypes
Revision 1.4 1994/12/13 00:13:01 mike
delete A statement to delete all of A at once
Revision 1.3 1993/12/01 14:25:06 mike
reentrant array loops
Revision 1.2 1993/07/22 00:04:01 mike
new op code _LJZ _LJNZ
Revision 1.1.1.1 1993/07/03 18:58:10 mike
move source to cvs
Revision 5.3 1993/01/14 13:11:11 mike
code2() -> xcode2()
Revision 5.2 1993/01/07 02:50:33 mike
relative vs absolute code
Revision 5.1 1991/12/05 07:59:07 brennan
1.1 pre-release
code.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/msdos/tcc.h:
*******************************************
tcc.h
copyright 1994, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
Turbo C under MSDOS
@Log: tcc.h,v @
Revision 1.5 1995/08/20 17:14:13 mike
get size_t from <stddef.h>
Revision 1.4 1995/01/08 21:48:00 mike
remove extra #endif
Revision 1.3 1994/10/08 19:12:07 mike
SET_PROGNAME
Revision 1.2 1994/10/08 18:49:29 mike
add MAX__INT etc
Revision 1.1 1994/10/08 18:24:41 mike
moved from config directory
--------------------------------------------------------------------
mawk-1.3.4-20100625/da.c:
*******************************************
da.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: da.c,v 1.8 2010/05/07 00:56:51 tom Exp $
@Log: da.c,v @
Revision 1.6 1995/06/18 19:19:59 mike
remove use of comma operator that broke some sysVr3 compilers
Revision 1.5 1994/12/13 00:12:08 mike
delete A statement to delete all of A at once
Revision 1.4 1994/10/08 19:15:32 mike
remove SM_DOS
Revision 1.3 1993/12/01 14:25:10 mike
reentrant array loops
Revision 1.2 1993/07/22 00:04:05 mike
new op code _LJZ _LJNZ
Revision 1.1.1.1 1993/07/03 18:58:10 mike
move source to cvs
Revision 5.4 1993/01/09 19:05:48 mike
dump code to stdout and exit(0)
Revision 5.3 1993/01/07 02:50:33 mike
relative vs absolute code
Revision 5.2 1992/07/25 21:35:25 brennan
patch2
fixed small typo on da of _PRE_DEC
Revision 5.1 1991/12/05 07:55:45 brennan
1.1 pre-release
da.c
disassemble code
--------------------------------------------------------------------
mawk-1.3.4-20100625/bi_funct.h:
*******************************************
bi_funct.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: bi_funct.h,v 1.2 2009/07/23 23:20:19 tom Exp $
@Log: bi_funct.h,v @
Revision 1.2 1994/12/11 22:10:15 mike
fflush
Revision 1.1.1.1 1993/07/03 18:58:08 mike
move source to cvs
Revision 5.1 1991/12/05 07:59:03 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/code.c:
*******************************************
code.c
copyright 1991-93, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: code.c,v 1.5 2010/05/07 09:47:06 tom Exp $
@Log: code.c,v @
Revision 1.6 1995/06/18 19:42:13 mike
Remove some redundant declarations and add some prototypes
Revision 1.5 1995/06/09 23:21:36 mike
make sure there is an execution block in case user defines function,
but no pattern-action pairs
Revision 1.4 1995/03/08 00:06:22 mike
add a pointer cast
Revision 1.3 1994/10/08 19:15:29 mike
remove SM_DOS
Revision 1.2 1993/07/07 00:07:38 mike
more work on 1.2
Revision 1.1.1.1 1993/07/03 18:58:10 mike
move source to cvs
Revision 5.4 1993/01/14 13:11:11 mike
code2() -> xcode2()
Revision 5.3 1993/01/09 20:15:35 mike
code_pop checks if the resolve_list needs relocation
Revision 5.2 1993/01/07 02:50:33 mike
relative vs absolute code
Revision 5.1 1991/12/05 07:55:43 brennan
1.1 pre-release
code.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/bi_funct.c:
*******************************************
bi_funct.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: bi_funct.c,v 1.25 2010/05/07 22:00:37 tom Exp $
@Log: bi_funct.c,v @
Revision 1.9 1996/01/14 17:16:11 mike
flush_all_output() before system()
Revision 1.8 1995/08/27 18:13:03 mike
fix random number generator to work with longs larger than 32bits
Revision 1.7 1995/06/09 22:53:30 mike
change a memcmp() to strncmp() to make purify happy
Revision 1.6 1994/12/13 00:26:32 mike
rt_nr and rt_fnr for run-time error messages
Revision 1.5 1994/12/11 22:14:11 mike
remove THINK_C #defines. Not a political statement, just no indication
that anyone ever used it.
Revision 1.4 1994/12/10 21:44:12 mike
fflush builtin
Revision 1.3 1993/07/14 11:46:36 mike
code cleanup
Revision 1.2 1993/07/14 01:22:27 mike
rm SIZE_T
Revision 1.1.1.1 1993/07/03 18:58:08 mike
move source to cvs
Revision 5.5 1993/02/13 21:57:18 mike
merge patch3
Revision 5.4 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.3.1.2 1993/01/27 01:04:06 mike
minor tuning to str_str()
Revision 5.3.1.1 1993/01/15 03:33:35 mike
patch3: safer double to int conversion
Revision 5.3 1992/12/17 02:48:01 mike
1.1.2d changes for DOS
Revision 5.2 1992/07/08 15:43:41 brennan
patch2: length returns. I am a wimp
Revision 5.1 1991/12/05 07:55:35 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/scancode.h:
*******************************************
scancode.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: scancode.h,v 1.1 2009/12/13 19:43:23 Jonathan.Nieder Exp $
@Log: scancode.h,v @
scancode.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/rexpdb.c:
*******************************************
rexpdb.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: rexpdb.c,v 1.9 2010/05/07 22:09:39 tom Exp $
@Log: rexpdb.c,v @
Revision 1.2 1993/07/23 13:21:51 mike
cleanup rexp code
Revision 1.1.1.1 1993/07/03 18:58:28 mike
move source to cvs
Revision 3.2 1991/08/13 09:10:09 brennan
VERSION .9994
Revision 3.1 91/06/07 10:33:30 brennan
VERSION 0.995
--------------------------------------------------------------------
mawk-1.3.4-20100625/rexp0.c:
*******************************************
rexp0.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: rexp0.c,v 1.23 2010/05/07 22:18:57 tom Exp $
@Log: rexp0.c,v @
Revision 1.5 1996/11/08 15:39:27 mike
While cleaning up block_on, I introduced a bug. Now fixed.
Revision 1.4 1996/09/02 18:47:09 mike
Allow []...] and [^]...] to put ] in a class.
Make ^* and ^+ syntax errors.
Revision 1.3 1994/12/26 16:37:52 mike
1.1.2 fix to do_str was incomplete -- fix it
Revision 1.2 1993/07/23 13:21:38 mike
cleanup rexp code
Revision 1.1.1.1 1993/07/03 18:58:27 mike
move source to cvs
Revision 3.8 1992/04/21 20:22:38 brennan
1.1 patch2
[c1-c2] now works if c2 is an escaped character
Revision 3.7 1992/03/24 09:33:12 brennan
1.1 patch2
When backing up in do_str, check if last character was escaped
Revision 3.6 92/01/21 17:32:51 brennan
added some casts so that character classes work with signed chars
Revision 3.5 91/10/29 10:53:57 brennan
SIZE_T
Revision 3.4 91/08/13 09:10:05 brennan
VERSION .9994
Revision 3.3 91/07/19 07:29:24 brennan
backslash at end of regular expression now stands for backslash
Revision 3.2 91/07/19 06:58:23 brennan
removed small bozo in processing of escape characters
Revision 3.1 91/06/07 10:33:20 brennan
VERSION 0.995
Revision 1.2 91/06/05 08:59:36 brennan
changed RE_free to free
Revision 1.1 91/06/03 07:10:15 brennan
Initial revision
lexical scanner
--------------------------------------------------------------------
mawk-1.3.4-20100625/init.h:
*******************************************
init.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: init.h,v 1.3 2009/07/23 23:56:08 tom Exp $
@Log: init.h,v @
Revision 1.2 1995/06/18 19:42:18 mike
Remove some redundant declarations and add some prototypes
Revision 1.1.1.1 1993/07/03 18:58:14 mike
move source to cvs
Revision 5.1 1991/12/05 07:59:22 brennan
1.1 pre-release
init.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/init.c:
*******************************************
init.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: init.c,v 1.23 2010/05/07 21:58:49 tom Exp $
@Log: init.c,v @
Revision 1.11 1995/08/20 17:35:21 mike
include <stdlib.h> for MSC, needed for environ decl
Revision 1.10 1995/06/09 22:51:50 mike
silently exit(0) if no program
Revision 1.9 1995/06/06 00:18:30 mike
change mawk_exit(1) to mawk_exit(2)
Revision 1.8 1994/12/14 14:40:34 mike
-Wi option
Revision 1.7 1994/12/11 22:43:20 mike
don't assume **environ is writable
Revision 1.6 1994/12/11 22:14:16 mike
remove THINK_C #defines. Not a political statement, just no indication
that anyone ever used it.
Revision 1.5 1994/10/08 19:15:45 mike
remove SM_DOS
Revision 1.4 1994/03/11 02:23:49 mike
-We option
Revision 1.3 1993/07/17 00:45:14 mike
indent
Revision 1.2 1993/07/04 12:52:00 mike
start on autoconfig changes
Revision 5.5 1993/01/07 02:50:33 mike
relative vs absolute code
Revision 5.4 1992/12/24 01:58:19 mike
1.1.2d changes for MsDOS
Revision 5.3 1992/07/10 16:17:10 brennan
MsDOS: remove NO_BINMODE macro
Revision 5.2 1992/01/09 08:46:14 brennan
small change for MSC
Revision 5.1 91/12/05 07:56:07 brennan
1.1 pre-release
init.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/field.h:
*******************************************
field.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: field.h,v 1.8 2010/05/07 22:03:31 tom Exp $
@Log: field.h,v @
Revision 1.2 1995/06/18 19:42:16 mike
Remove some redundant declarations and add some prototypes
Revision 1.1.1.1 1993/07/03 18:58:12 mike
move source to cvs
Revision 5.2 1992/01/06 08:10:24 brennan
set_binmode() proto for MSDOS
Revision 5.1 91/12/05 07:59:16 brennan
1.1 pre-release
field.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/memory.c:
*******************************************
memory.c
copyright 1991, 1992 Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: memory.c,v 1.6 2010/05/07 00:41:10 tom Exp $
@Log: memory.c,v @
Revision 1.2 1993/07/17 13:23:08 mike
indent and general code cleanup
Revision 1.1.1.1 1993/07/03 18:58:17 mike
move source to cvs
Revision 5.2 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.1 1991/12/05 07:56:21 brennan
1.1 pre-release
memory.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/jmp.h:
*******************************************
jmp.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: jmp.h,v 1.3 2009/07/24 00:55:59 tom Exp $
@Log: jmp.h,v @
Revision 1.2 1995/04/21 14:20:19 mike
move_level variable to fix bug in arglist patching of moved code.
Revision 1.1.1.1 1993/07/03 18:58:15 mike
move source to cvs
Revision 5.2 1993/01/09 19:03:44 mike
code_pop checks if the resolve_list needs relocation
Revision 5.1 1991/12/05 07:59:24 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/rexp2.c:
*******************************************
rexp2.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: rexp2.c,v 1.18 2010/05/07 22:08:36 tom Exp $
@Log: rexp2.c,v @
Revision 1.3 1993/07/24 17:55:12 mike
more cleanup
Revision 1.2 1993/07/23 13:21:44 mike
cleanup rexp code
Revision 1.1.1.1 1993/07/03 18:58:28 mike
move source to cvs
Revision 3.8 1992/12/24 00:36:44 mike
fixed major bozo for LMDOS when growing stack
fixed potential LMDOS bozo with M_STR+U_ON+END_ON
fixed minor bug in M_CLASS+U_ON+END_ON
Revision 3.7 92/01/21 17:33:15 brennan
added some casts so that character classes work with signed chars
Revision 3.6 91/10/29 10:54:03 brennan
SIZE_T
Revision 3.5 91/08/13 09:10:15 brennan
VERSION .9994
Revision 3.4 91/08/08 07:53:34 brennan
work around for turboC realloc() bug
Revision 3.4 91/08/07 07:10:47 brennan
work around for TurboC realloc() bug
Revision 3.3 91/08/04 15:45:57 brennan
minor change for large model dos
Revision 3.2 91/06/10 16:18:14 brennan
changes for V7
Revision 3.1 91/06/07 10:33:25 brennan
VERSION 0.995
Revision 1.8 91/06/05 09:01:33 brennan
changes to RE_new_run_stack
Revision 1.7 91/05/31 10:56:02 brennan
stack_empty hack for DOS large model
test a string against a machine
--------------------------------------------------------------------
mawk-1.3.4-20100625/main.c:
*******************************************
main.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: main.c,v 1.8 2009/12/14 00:23:56 tom Exp $
@Log: main.c,v @
Revision 1.4 1995/06/09 22:57:19 mike
parse() no longer returns on error
Revision 1.3 1995/06/06 00:18:32 mike
change mawk_exit(1) to mawk_exit(2)
Revision 1.2 1993/07/17 00:45:19 mike
indent
Revision 1.1.1.1 1993/07/03 18:58:16 mike
move source to cvs
Revision 5.4 1993/02/13 21:57:27 mike
merge patch3
Revision 5.3 1993/01/07 02:50:33 mike
relative vs absolute code
Revision 5.2.1.1 1993/01/15 03:33:44 mike
patch3: safer double to int conversion
Revision 5.2 1992/12/17 02:48:01 mike
1.1.2d changes for DOS
Revision 5.1 1991/12/05 07:56:14 brennan
1.1 pre-release
main.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/fin.c:
*******************************************
fin.c
copyright 1991, 1992. Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: fin.c,v 1.27 2010/06/25 21:53:18 tom Exp $
@Log: fin.c,v @
Revision 1.10 1995/12/24 22:23:22 mike
remove errmsg() from inside FINopen
Revision 1.9 1995/06/06 00:18:29 mike
change mawk_exit(1) to mawk_exit(2)
Revision 1.8 1994/12/13 00:26:35 mike
rt_nr and rt_fnr for run-time error messages
Revision 1.7 1994/12/11 23:25:05 mike
-Wi option
Revision 1.6 1994/12/11 22:14:15 mike
remove THINK_C #defines. Not a political statement, just no indication
that anyone ever used it.
Revision 1.5 1994/10/08 19:15:42 mike
remove SM_DOS
Revision 1.4 1993/07/17 13:22:55 mike
indent and general code cleanup
Revision 1.3 1993/07/15 13:26:55 mike
SIZE_T and indent
Revision 1.2 1993/07/04 12:51:57 mike
start on autoconfig changes
Revision 1.1.1.1 1993/07/03 18:58:13 mike
move source to cvs
Revision 5.7 1993/01/01 21:30:48 mike
split new_STRING() into new_STRING and new_STRING0
Revision 5.6 1992/12/17 02:48:01 mike
1.1.2d changes for DOS
Revision 5.5 1992/07/28 15:11:30 brennan
minor change in finding eol, needed for MsDOS
Revision 5.4 1992/07/10 16:17:10 brennan
MsDOS: remove NO_BINMODE macro
Revision 5.3 1992/07/08 16:14:27 brennan
FILENAME and FNR retain last values in the
END block.
Revision 5.2 1992/02/21 13:30:08 brennan
fixed bug that free'd FILENAME twice if
command line was var=value only
Revision 5.1 91/12/05 07:56:02 brennan
1.1 pre-release
fin.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/types.h:
*******************************************
types.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: types.h,v 1.7 2010/05/07 00:52:42 tom Exp $
@Log: types.h,v @
Revision 1.3 1993/07/15 23:56:18 mike
general cleanup
Revision 1.2 1993/07/04 12:52:15 mike
start on autoconfig changes
Revision 5.1 1991/12/05 07:59:39 brennan
1.1 pre-release
types.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/files.h:
*******************************************
files.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: files.h,v 1.8 2009/12/16 23:45:58 tom Exp $
@Log: files.h,v @
Revision 1.3 1996/01/14 17:14:11 mike
flush_all_output()
Revision 1.2 1994/12/11 22:14:13 mike
remove THINK_C #defines. Not a political statement, just no indication
that anyone ever used it.
Revision 1.1.1.1 1993/07/03 18:58:13 mike
move source to cvs
Revision 5.2 1992/12/17 02:48:01 mike
1.1.2d changes for DOS
Revision 5.1 1991/12/05 07:59:18 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/rexp.h:
*******************************************
rexp.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: rexp.h,v 1.22 2010/05/07 22:05:59 tom Exp $
@Log: rexp.h,v @
Revision 1.2 1993/07/23 13:21:35 mike
cleanup rexp code
Revision 1.1.1.1 1993/07/03 18:58:27 mike
move source to cvs
Revision 3.6 1992/01/21 17:31:45 brennan
moved ison() macro out of rexp[23].c
Revision 3.5 91/10/29 10:53:55 brennan
SIZE_T
Revision 3.4 91/08/13 09:10:02 brennan
VERSION .9994
Revision 3.3 91/06/15 09:40:25 brennan
gcc defines __STDC__ but might not have stdlib.h
Revision 3.2 91/06/10 16:18:19 brennan
changes for V7
Revision 3.1 91/06/07 10:33:18 brennan
VERSION 0.995
Revision 1.3 91/06/05 08:57:57 brennan
removed RE_xmalloc()
Revision 1.2 91/06/03 07:23:26 brennan
changed type of RE_error_trap
Revision 1.1 91/06/03 07:05:41 brennan
Initial revision
--------------------------------------------------------------------
mawk-1.3.4-20100625/zmalloc.h:
*******************************************
zmalloc.h
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: zmalloc.h,v 1.4 2010/05/07 00:39:08 tom Exp $
@Log: zmalloc.h,v @
Revision 1.2 1993/07/04 12:52:22 mike
start on autoconfig changes
Revision 1.1.1.1 1993/07/03 18:58:23 mike
move source to cvs
Revision 5.1 1991/12/05 07:59:41 brennan
1.1 pre-release
zmalloc.h
--------------------------------------------------------------------
mawk-1.3.4-20100625/error.c:
*******************************************
error.c
copyright 1991, 1992 Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: error.c,v 1.11 2009/12/17 00:05:10 tom Exp $
@Log: error.c,v @
Revision 1.6 1995/06/06 00:18:22 mike
change mawk_exit(1) to mawk_exit(2)
Revision 1.5 1994/12/13 00:26:33 mike
rt_nr and rt_fnr for run-time error messages
Revision 1.4 1994/09/23 00:20:00 mike
minor bug fix: handle \ in eat_nl()
Revision 1.3 1993/07/17 13:22:49 mike
indent and general code cleanup
Revision 1.2 1993/07/04 12:51:44 mike
start on autoconfig changes
Revision 1.1.1.1 1993/07/03 18:58:11 mike
move source to cvs
Revision 5.3 1993/01/22 14:55:46 mike
trivial change for unexpected_char()
Revision 5.2 1992/10/02 23:26:04 mike
using vargs.h
Revision 5.1 1991/12/05 07:55:48 brennan
1.1 pre-release
--------------------------------------------------------------------
mawk-1.3.4-20100625/bi_vars.c:
*******************************************
bi_vars.c
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: bi_vars.c,v 1.7 2009/12/16 23:38:14 tom Exp $
@Log: bi_vars.c,v @
Revision 1.1.1.1 1993/07/03 18:58:09 mike
move source to cvs
Revision 5.2 1992/07/10 16:17:10 brennan
MsDOS: remove NO_BINMODE macro
Revision 5.1 1991/12/05 07:55:38 brennan
1.1 pre-release
bi_vars.c
--------------------------------------------------------------------
mawk-1.3.4-20100625/array.h, mawk-1.3.4-20100625/array.c:
array.h
array.c
@MawkId: array.w,v 1.14 2010/06/25 22:31:42 tom Exp @
copyright 1991-96, Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
This file was generated with the command
notangle -R'"array.h"' array.w > array.h
notangle -R'"array.c"' array.w > array.c
Notangle is part of Norman Ramsey's noweb literate programming package
available from CTAN(ftp.shsu.edu).
It's easiest to read or modify this file by working with array.w.
--------------------------------------------------------------------
mawk-1.3.4-20100625/version.c:
*******************************************
version.c
copyright 1991-95. Michael D. Brennan
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
*******************************************
$MawkId: version.c,v 1.9 2010/06/21 21:44:34 tom Exp $
@Log: version.c,v @
Revision 1.10 1996/07/28 21:47:07 mike
gnuish patch
Revision 1.9 1996/02/01 04:44:15 mike
roll a beta version
Revision 1.8 1995/08/20 17:40:45 mike
changed _stackavail to stackavail for MSC
Revision 1.7 1995/06/10 17:04:10 mike
"largest field" replaced by "max NF"
--------------------------------------------------------------------