snapshot of project "mawk", label t20131226

This commit is contained in:
Thomas E. Dickey 2013-12-27 01:22:19 -05:00
parent 7cdb9b78cc
commit 27e6de861f
23 changed files with 800 additions and 607 deletions

View File

@ -1,7 +1,14 @@
-- $MawkId: CHANGES,v 1.175 2013/08/03 13:46:47 tom Exp $
-- $MawkId: CHANGES,v 1.177 2013/12/27 00:53:15 tom Exp $
Changes by Thomas E Dickey <dickey@invisible-island.net>
20131226
+ add configure check to work around recent breakage in Cygwin's math.h
which declares _LIB_VERSION without allowing it to be updated (report
by Gert Hulselmans).
+ minor updates to configure script, for clang and mingw
+ update config.guess and config.sub
20130803
+ minor updates to configure script
+ add limit-checks, improve index computation in scan.c to fix old

View File

@ -1,4 +1,4 @@
MANIFEST for mawk, version t20130803
MANIFEST for mawk, version t20131226
--------------------------------------------------------------------------------
MANIFEST this file
ACKNOWLEDGMENT acknowledgements

55
aclocal.m4 vendored
View File

@ -1,4 +1,4 @@
dnl $MawkId: aclocal.m4,v 1.66 2013/08/03 13:44:12 tom Exp $
dnl $MawkId: aclocal.m4,v 1.68 2013/12/27 01:22:11 tom Exp $
dnl custom mawk macros for autoconf
dnl
dnl The symbols beginning "CF_MAWK_" were originally written by Mike Brennan,
@ -405,7 +405,7 @@ fi
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_CLANG_COMPILER version: 1 updated: 2012/06/16 14:55:39
dnl CF_CLANG_COMPILER version: 2 updated: 2013/11/19 19:23:35
dnl -----------------
dnl Check if the given compiler is really clang. clang's C driver defines
dnl __GNUC__ (fooling the configure script into setting $GCC to yes) but does
@ -416,7 +416,7 @@ dnl ensure that it is not mistaken for gcc/g++. It is normally invoked from
dnl the wrappers for gcc and g++ warnings.
dnl
dnl $1 = GCC (default) or GXX
dnl $2 = INTEL_COMPILER (default) or INTEL_CPLUSPLUS
dnl $2 = CLANG_COMPILER (default)
dnl $3 = CFLAGS (default) or CXXFLAGS
AC_DEFUN([CF_CLANG_COMPILER],[
ifelse([$2],,CLANG_COMPILER,[$2])=no
@ -657,7 +657,7 @@ if test "$GCC" = yes ; then
fi
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_GCC_WARNINGS version: 29 updated: 2012/06/16 14:55:39
dnl CF_GCC_WARNINGS version: 31 updated: 2013/11/19 19:23:35
dnl ---------------
dnl Check if the compiler supports useful warning options. There's a few that
dnl we don't use, simply because they're too noisy:
@ -729,10 +729,14 @@ then
EXTRA_CFLAGS=
cf_warn_CONST=""
test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
for cf_opt in W Wall \
Wbad-function-cast \
Wcast-align \
Wcast-qual \
Wdeclaration-after-statement \
Wextra \
Winline \
Wmissing-declarations \
Wmissing-prototypes \
@ -740,7 +744,7 @@ then
Wpointer-arith \
Wshadow \
Wstrict-prototypes \
Wundef $cf_warn_CONST $1
Wundef $cf_gcc_warnings $cf_warn_CONST $1
do
CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
if AC_TRY_EVAL(ac_compile); then
@ -1265,7 +1269,7 @@ LIBS="$cf_FPE_LIBS"
rm -f conftest.$ac_ext fpe_check$ac_exeext # whew!!
])
dnl ---------------------------------------------------------------------------
dnl CF_MIXEDCASE_FILENAMES version: 4 updated: 2012/10/02 20:55:03
dnl CF_MIXEDCASE_FILENAMES version: 6 updated: 2013/10/08 17:47:05
dnl ----------------------
dnl Check if the file-system supports mixed-case filenames. If we're able to
dnl create a lowercase name and see it as uppercase, it doesn't support that.
@ -1274,7 +1278,7 @@ AC_DEFUN([CF_MIXEDCASE_FILENAMES],
AC_CACHE_CHECK(if filesystem supports mixed-case filenames,cf_cv_mixedcase,[
if test "$cross_compiling" = yes ; then
case $target_alias in #(vi
*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
cf_cv_mixedcase=no
;;
*)
@ -1523,6 +1527,39 @@ $1=`echo "$2" | \
-e 's/-[[UD]]'"$3"'\(=[[^ ]]*\)\?[$]//g'`
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_SET_MATH_LIB_VERSION version: 1 updated: 2013/12/26 20:21:00
dnl -----------------------
dnl Check if math.h declares _LIB_VERSION, and if so, whether we can modify it
dnl at runtime. Cygwin is known to be broken in this regard (late 2013).
AC_DEFUN([CF_SET_MATH_LIB_VERSION],[
AC_CACHE_CHECK(if math.h declares _LIB_VERSION,cf_cv_get_math_lib_version,[
AC_TRY_LINK([
#include <math.h>],
[int foo = _LIB_VERSION],
[cf_cv_get_math_lib_version=yes],
[cf_cv_get_math_lib_version=no])
])
if test "x$cf_cv_get_math_lib_version" = xyes
then
AC_CACHE_CHECK(if we can update _LIB_VERSION,cf_cv_set_math_lib_version,[
AC_TRY_LINK([
#include <math.h>],
[_LIB_VERSION = _IEEE_],
[cf_cv_set_math_lib_version=yes],
[cf_cv_set_math_lib_version=no])
])
if test "x$cf_cv_set_math_lib_version" = xyes
then
AC_DEFINE(HAVE_MATH__LIB_VERSION,1,[Define to 1 if we can set math.h variable _LIB_VERSION])
else
AC_MSG_WARN(this is probably due to a defect in your system headers)
fi
fi
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_SRAND version: 11 updated: 2012/10/31 07:00:16
dnl --------
dnl Check for functions similar to srand() and rand(). lrand48() and random()
@ -1735,7 +1772,7 @@ CF_NO_LEAKS_OPTION(valgrind,
[USE_VALGRIND])
])dnl
dnl ---------------------------------------------------------------------------
dnl CF_XOPEN_SOURCE version: 43 updated: 2013/02/10 10:41:05
dnl CF_XOPEN_SOURCE version: 45 updated: 2013/09/07 14:06:25
dnl ---------------
dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
dnl or adapt to the vendor's definitions to get equivalent functionality,
@ -1755,7 +1792,7 @@ case $host_os in #(vi
aix[[4-7]]*) #(vi
cf_xopen_source="-D_ALL_SOURCE"
;;
cygwin) #(vi
cygwin|msys) #(vi
cf_XOPEN_SOURCE=600
;;
darwin[[0-8]].*) #(vi

View File

@ -1,6 +1,6 @@
/********************************************
bi_vars.h
copyright 2009, Thomas E. Dickey
copyright 2010, Thomas E. Dickey
copyright 1993, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: bi_vars.h,v 1.7 2010/12/10 17:00:00 tom Exp $
* $MawkId: bi_vars.h,v 1.8 2010/12/10 17:00:00 tom Exp $
* @Log: bi_vars.h,v @
* Revision 1.1.1.1 1993/07/03 18:58:09 mike
* move source to cvs

26
cast.c
View File

@ -1,6 +1,6 @@
/********************************************
cast.c
copyright 2009-2010,2012 Thomas E. Dickey
copyright 2009-2012,2013 Thomas E. Dickey
copyright 1991-1995,1996, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: cast.c,v 1.17 2012/11/29 09:21:25 tom Exp $
* $MawkId: cast.c,v 1.19 2013/12/26 23:23:55 tom Exp $
* @Log: cast.c,v @
* Revision 1.6 1996/08/11 22:07:50 mike
* Fix small bozo in rt_error("overflow converting ...")
@ -73,7 +73,7 @@ int mpow2[NUM_CELL_TYPES] =
{1, 2, 4, 8, 16, 32, 64, 128, 256, 512};
void
cast1_to_d(CELL * cp)
cast1_to_d(CELL *cp)
{
switch (cp->type) {
case C_NOINIT:
@ -112,7 +112,7 @@ cast1_to_d(CELL * cp)
}
void
cast2_to_d(CELL * cp)
cast2_to_d(CELL *cp)
{
register STRING *s;
@ -183,7 +183,7 @@ cast2_to_d(CELL * cp)
}
void
cast1_to_s(CELL * cp)
cast1_to_s(CELL *cp)
{
register Int lval;
char xbuff[260];
@ -219,7 +219,7 @@ cast1_to_s(CELL * cp)
}
void
cast2_to_s(CELL * cp)
cast2_to_s(CELL *cp)
{
register Int lval;
char xbuff[260];
@ -287,7 +287,7 @@ cast2_to_s(CELL * cp)
}
void
cast_to_RE(CELL * cp)
cast_to_RE(CELL *cp)
{
register PTR p;
@ -303,7 +303,7 @@ cast_to_RE(CELL * cp)
}
void
cast_for_split(CELL * cp)
cast_for_split(CELL *cp)
{
static char meta[] = "^$.*+?|[]()";
static char xbuff[] = "\\X";
@ -337,7 +337,7 @@ cast_for_split(CELL * cp)
cp->ptr = (PTR) new_STRING1(temp, (size_t) 1);
return;
#endif
} else if (strchr(meta, c)) {
} else if ((strchr) (meta, c)) {
xbuff[1] = (char) c;
free_STRING(string(cp));
cp->ptr = (PTR) new_STRING(xbuff);
@ -357,7 +357,7 @@ cast_for_split(CELL * cp)
*/
void
check_strnum(CELL * cp)
check_strnum(CELL *cp)
{
char *temp;
register unsigned char *s, *q;
@ -408,7 +408,7 @@ check_strnum(CELL * cp)
/* cast a CELL to a replacement cell */
void
cast_to_REPL(CELL * cp)
cast_to_REPL(CELL *cp)
{
register STRING *sval;
@ -466,7 +466,7 @@ static ALL_CELLS *all_cells;
* free on exit for auditing.
*/
void
no_leaks_cell(CELL * cp)
no_leaks_cell(CELL *cp)
{
ALL_CELLS *p = calloc(1, sizeof(ALL_CELLS));
p->next = all_cells;
@ -476,7 +476,7 @@ no_leaks_cell(CELL * cp)
}
void
no_leaks_cell_ptr(CELL * cp)
no_leaks_cell_ptr(CELL *cp)
{
ALL_CELLS *p = calloc(1, sizeof(ALL_CELLS));
p->next = all_cells;

151
config.guess vendored
View File

@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2013 Free Software Foundation, Inc.
timestamp='2013-02-04'
timestamp='2013-11-29'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@ -132,6 +132,27 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
case "${UNAME_SYSTEM}" in
Linux|GNU|GNU/*)
# If the system lacks a compiler, then just pick glibc.
# We could probably try harder.
LIBC=gnu
eval $set_cc_for_build
cat <<-EOF > $dummy.c
#include <features.h>
#if defined(__UCLIBC__)
LIBC=uclibc
#elif defined(__dietlibc__)
LIBC=dietlibc
#else
LIBC=gnu
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
;;
esac
# Note: order is significant - the case branches are not exclusive.
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
@ -853,21 +874,21 @@ EOF
exit ;;
*:GNU:*:*)
# the GNU system
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
exit ;;
*:GNU/*:*:*)
# other systems with GNU libc and userland
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
exit ;;
i*86:Minix:*:*)
echo ${UNAME_MACHINE}-pc-minix
exit ;;
aarch64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
aarch64_be:Linux:*:*)
UNAME_MACHINE=aarch64_be
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@ -880,59 +901,54 @@ EOF
EV68*) UNAME_MACHINE=alphaev68 ;;
esac
objdump --private-headers /bin/sh | grep -q ld.so.1
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
arc:Linux:*:* | arceb:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
arm*:Linux:*:*)
eval $set_cc_for_build
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_EABI__
then
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
else
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_PCS_VFP
then
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
else
echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
fi
fi
exit ;;
avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
cris:Linux:*:*)
echo ${UNAME_MACHINE}-axis-linux-gnu
echo ${UNAME_MACHINE}-axis-linux-${LIBC}
exit ;;
crisv32:Linux:*:*)
echo ${UNAME_MACHINE}-axis-linux-gnu
echo ${UNAME_MACHINE}-axis-linux-${LIBC}
exit ;;
frv:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
hexagon:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
i*86:Linux:*:*)
LIBC=gnu
eval $set_cc_for_build
sed 's/^ //' << EOF >$dummy.c
#ifdef __dietlibc__
LIBC=dietlibc
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
echo ${UNAME_MACHINE}-pc-linux-${LIBC}
exit ;;
ia64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
m32r*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
m68*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
mips:Linux:*:* | mips64:Linux:*:*)
eval $set_cc_for_build
@ -951,54 +967,63 @@ EOF
#endif
EOF
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
;;
or1k:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
or32:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
padre:Linux:*:*)
echo sparc-unknown-linux-gnu
echo sparc-unknown-linux-${LIBC}
exit ;;
parisc64:Linux:*:* | hppa64:Linux:*:*)
echo hppa64-unknown-linux-gnu
echo hppa64-unknown-linux-${LIBC}
exit ;;
parisc:Linux:*:* | hppa:Linux:*:*)
# Look for CPU level
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
PA7*) echo hppa1.1-unknown-linux-gnu ;;
PA8*) echo hppa2.0-unknown-linux-gnu ;;
*) echo hppa-unknown-linux-gnu ;;
PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
*) echo hppa-unknown-linux-${LIBC} ;;
esac
exit ;;
ppc64:Linux:*:*)
echo powerpc64-unknown-linux-gnu
echo powerpc64-unknown-linux-${LIBC}
exit ;;
ppc:Linux:*:*)
echo powerpc-unknown-linux-gnu
echo powerpc-unknown-linux-${LIBC}
exit ;;
ppc64le:Linux:*:*)
echo powerpc64le-unknown-linux-${LIBC}
exit ;;
ppcle:Linux:*:*)
echo powerpcle-unknown-linux-${LIBC}
exit ;;
s390:Linux:*:* | s390x:Linux:*:*)
echo ${UNAME_MACHINE}-ibm-linux
echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
exit ;;
sh64*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
sh*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
sparc:Linux:*:* | sparc64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
tile*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
vax:Linux:*:*)
echo ${UNAME_MACHINE}-dec-linux-gnu
echo ${UNAME_MACHINE}-dec-linux-${LIBC}
exit ;;
x86_64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
xtensa*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@ -1231,19 +1256,31 @@ EOF
exit ;;
*:Darwin:*:*)
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
case $UNAME_PROCESSOR in
i386)
eval $set_cc_for_build
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_64BIT_ARCH >/dev/null
then
UNAME_PROCESSOR="x86_64"
fi
fi ;;
unknown) UNAME_PROCESSOR=powerpc ;;
esac
eval $set_cc_for_build
if test "$UNAME_PROCESSOR" = unknown ; then
UNAME_PROCESSOR=powerpc
fi
if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
grep IS_64BIT_ARCH >/dev/null
then
case $UNAME_PROCESSOR in
i386) UNAME_PROCESSOR=x86_64 ;;
powerpc) UNAME_PROCESSOR=powerpc64 ;;
esac
fi
fi
elif test "$UNAME_PROCESSOR" = i386 ; then
# Avoid executing cc on OS X 10.9, as it ships with a stub
# that puts up a graphical alert prompting to install
# developer tools. Any system running Mac OS X 10.7 or
# later (Darwin 11 and later) is required to have a 64-bit
# processor. This is not true of the ARM version of Darwin
# that Apple uses in portable devices.
UNAME_PROCESSOR=x86_64
fi
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
exit ;;
*:procnto*:*:* | *:QNX:[0123456789]*:*)

26
config.sub vendored
View File

@ -2,7 +2,7 @@
# Configuration validation subroutine script.
# Copyright 1992-2013 Free Software Foundation, Inc.
timestamp='2013-02-04'
timestamp='2013-10-01'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@ -252,12 +252,12 @@ case $basic_machine in
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
| arc \
| arc | arceb \
| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
| avr | avr32 \
| be32 | be64 \
| bfin \
| c4x | clipper \
| c4x | c8051 | clipper \
| d10v | d30v | dlx | dsp16xx \
| epiphany \
| fido | fr30 | frv \
@ -265,6 +265,7 @@ case $basic_machine in
| hexagon \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
| k1om \
| le32 | le64 \
| lm32 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
@ -296,7 +297,7 @@ case $basic_machine in
| nios | nios2 | nios2eb | nios2el \
| ns16k | ns32k \
| open8 \
| or32 \
| or1k | or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle \
| pyramid \
@ -324,7 +325,7 @@ case $basic_machine in
c6x)
basic_machine=tic6x-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
basic_machine=$basic_machine-unknown
os=-none
;;
@ -366,13 +367,13 @@ case $basic_machine in
| aarch64-* | aarch64_be-* \
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* | avr32-* \
| be32-* | be64-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* \
| clipper-* | craynv-* | cydra-* \
| c8051-* | clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
| elxsi-* \
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
@ -381,6 +382,7 @@ case $basic_machine in
| hexagon-* \
| i*86-* | i860-* | i960-* | ia64-* \
| ip2k-* | iq2000-* \
| k1om-* \
| le32-* | le64-* \
| lm32-* \
| m32c-* | m32r-* | m32rle-* \
@ -794,7 +796,7 @@ case $basic_machine in
os=-mingw64
;;
mingw32)
basic_machine=i386-pc
basic_machine=i686-pc
os=-mingw32
;;
mingw32ce)
@ -830,7 +832,7 @@ case $basic_machine in
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
;;
msys)
basic_machine=i386-pc
basic_machine=i686-pc
os=-msys
;;
mvs)
@ -1546,6 +1548,9 @@ case $basic_machine in
c4x-* | tic4x-*)
os=-coff
;;
c8051-*)
os=-elf
;;
hexagon-*)
os=-elf
;;
@ -1589,6 +1594,9 @@ case $basic_machine in
mips*-*)
os=-elf
;;
or1k-*)
os=-elf
;;
or32-*)
os=-coff
;;

View File

@ -1,6 +1,6 @@
/********************************************
config_h.in
copyright 2009-2010,2012 Thomas E. Dickey
copyright 2009-2012,2013 Thomas E. Dickey
This is a source file for mawk, an implementation of
the AWK programming language.
@ -10,7 +10,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: config_h.in,v 1.26 2012/10/31 11:00:55 tom Exp $
* $MawkId: config_h.in,v 1.27 2013/12/27 00:43:02 tom Exp $
* vile:cmode
* template for config.h
*/
@ -28,6 +28,7 @@ the GNU General Public License, version 2, 1991.
#undef HAVE_FORK
#undef HAVE_ISNAN
#undef HAVE_MATHERR
#undef HAVE_MATH__LIB_VERSION
#undef HAVE_MKTIME
#undef HAVE_PIPE
#undef HAVE_REAL_PIPES

1044
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
dnl $MawkId: configure.in,v 1.49 2012/12/09 14:14:09 tom Exp $
dnl $MawkId: configure.in,v 1.50 2013/12/27 00:45:25 tom Exp $
dnl configure.in for mawk
dnl ###########################################################################
dnl configure.in
dnl copyright 2008-2010,2012, Thomas E. Dickey
dnl copyright 2008-2012,2013, Thomas E. Dickey
dnl copyright 1991-1994,1995, Michael D. Brennan
dnl
dnl This is a source file for mawk, an implementation of
@ -132,6 +132,7 @@ CF_LOCALE
CF_CHECK_ENVIRON(environ)
AC_CHECK_FUNCS(fork matherr mktime pipe strftime tdestroy tsearch wait)
test "$ac_cv_func_fork" = yes && \
test "$ac_cv_func_pipe" = yes && \
test "$ac_cv_func_wait" = yes && \
@ -139,6 +140,8 @@ AC_DEFINE(HAVE_REAL_PIPES,1,[Define to 1 if we have functions needed to setup Un
AC_CHECK_HEADERS(errno.h fcntl.h unistd.h sys/wait.h)
CF_SET_MATH_LIB_VERSION
CF_MAWK_FIND_MAX_INT
CF_MAWK_RUN_FPE_TESTS
AC_OUTPUT(Makefile)

View File

@ -1,6 +1,6 @@
/********************************************
fcall.c
copyright 2009,2010, Thomas E. Dickey
copyright 2009-2010,2012 Thomas E. Dickey
copyright 1991-1993,1995, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: fcall.c,v 1.9 2012/11/26 11:58:27 tom Exp $
* $MawkId: fcall.c,v 1.10 2012/11/26 11:58:27 tom Exp $
* @Log: fcall.c,v @
* Revision 1.7 1995/08/27 15:46:47 mike
* change some errmsgs to compile_errors

View File

@ -1,6 +1,6 @@
/********************************************
field.c
copyright 2008-2010, Thomas E. Dickey
copyright 2008-2010,2012 Thomas E. Dickey
copyright 1991-1995, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: field.c,v 1.26 2012/12/08 00:01:22 tom Exp $
* $MawkId: field.c,v 1.27 2012/12/08 00:01:22 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

View File

@ -1,6 +1,6 @@
/********************************************
fpe_check.c
copyright 2008-2009, Thomas E. Dickey
copyright 2008-2010,2013 Thomas E. Dickey
copyright 1996, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -15,7 +15,7 @@ the GNU General Public License, version 2, 1991.
*/
/*
* $MawkId: fpe_check.c,v 1.14 2010/12/10 17:00:00 tom Exp $
* $MawkId: fpe_check.c,v 1.16 2013/12/27 00:44:59 tom Exp $
* @Log: fpe_check.c,v @
* Revision 1.7 1996/08/30 00:07:14 mike
* Modifications to the test and implementation of the bug fix for
@ -57,14 +57,6 @@ the GNU General Public License, version 2, 1991.
#define FPE_DECL /* nothing */
#endif
/* Sets up NetBSD 1.0A for ieee floating point */
#if defined(_LIB_VERSION_TYPE) && defined(_LIB_VERSION) && defined(_IEEE_)
#ifdef _CONST
_CONST /* needed for cygwin */
#endif
_LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
#endif
static void
message(const char *s)
{
@ -196,6 +188,9 @@ get_fpe_codes(void)
int
main(int argc, char *argv[])
{
#ifdef HAVE_MATH__LIB_VERSION
_LIB_VERSION = _IEEE_;
#endif
catch_FPEs();
switch (argc) {

4
jmp.h
View File

@ -1,6 +1,6 @@
/********************************************
jmp.h
copyright 2009, Thomas E. Dickey
copyright 2009,2010 Thomas E. Dickey
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: jmp.h,v 1.4 2010/12/10 17:00:00 tom Exp $
* $MawkId: jmp.h,v 1.5 2010/12/10 17:00:00 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.

4
main.c
View File

@ -1,6 +1,6 @@
/********************************************
main.c
copyright 2009-2010,2012 Thomas E. Dickey
copyright 2009-2012,2013 Thomas E. Dickey
copyright 1991-1993,1995, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: main.c,v 1.28 2013/08/03 13:04:15 tom Exp $
* $MawkId: main.c,v 1.29 2013/08/03 13:04:15 tom Exp $
* @Log: main.c,v @
* Revision 1.4 1995/06/09 22:57:19 mike
* parse() no longer returns on error

View File

@ -1,6 +1,6 @@
/********************************************
matherr.c
copyright 2009-2010,2012 Thomas E. Dickey
copyright 2009-2012,2013 Thomas E. Dickey
copyright 1991, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: matherr.c,v 1.26 2012/12/10 00:24:17 tom Exp $
* $MawkId: matherr.c,v 1.27 2013/12/27 00:45:11 tom Exp $
*
* @Log: matherr.c,v @
* Revision 1.9 1996/09/01 16:54:35 mike
@ -64,14 +64,6 @@ static fp_except working_mask;
#endif
#endif
/* Sets up NetBSD 1.0A for ieee floating point */
#if defined(_LIB_VERSION_TYPE) && defined(_LIB_VERSION) && defined(_IEEE_) && !defined(__CYGWIN__)
#ifdef _CONST
_CONST /* needed for cygwin */
#endif
_LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
#endif
#ifndef TURN_OFF_FPE_TRAPS
#define TURN_OFF_FPE_TRAPS /* nothing */
#endif
@ -134,6 +126,9 @@ fpe_catch(FPE_ARGS)
void
fpe_init(void)
{
#ifdef HAVE_MATH__LIB_VERSION
_LIB_VERSION = _IEEE_;
#endif
TURN_ON_FPE_TRAPS;
#ifdef HAVE_SIGACTION_SA_SIGACTION

4
mawk.h
View File

@ -1,6 +1,6 @@
/********************************************
mawk.h
copyright 2008-2010,2012 Thomas E. Dickey
copyright 2008-2012,2013 Thomas E. Dickey
copyright 1991-1995,1996 Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: mawk.h,v 1.43 2013/08/03 13:04:24 tom Exp $
* $MawkId: mawk.h,v 1.44 2013/08/03 13:04:24 tom Exp $
* @Log: mawk.h,v @
* Revision 1.10 1996/08/25 19:31:04 mike
* Added work-around for solaris strtod overflow bug.

View File

@ -1,3 +1,9 @@
mawk-cur (1.3.4-20131226) unstable; urgency=low
* configure-script updates
-- Thomas E. Dickey <dickey@invisible-island.net> Thu, 26 Dec 2013 18:04:43 -0500
mawk-cur (1.3.4-20130803) unstable; urgency=low
* miscelleneous bug-fixes

View File

@ -1,8 +1,8 @@
Summary: mawk - pattern scanning and text processing language
%define AppProgram mawk
%define AppVersion 1.3.4
%define AppRelease 20130803
# $MawkId: mawk.spec,v 1.25 2013/08/03 14:02:25 tom Exp $
%define AppRelease 20131226
# $MawkId: mawk.spec,v 1.26 2013/12/26 23:04:18 tom Exp $
Name: %{AppProgram}
Version: %{AppVersion}
Release: %{AppRelease}

View File

@ -1,6 +1,6 @@
/*
patchlev.h
copyright 2009-2010,2012, Thomas E. Dickey
copyright 2009-2012,2013, Thomas E. Dickey
copyright 1996, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,9 +11,9 @@ the GNU General Public License, version 2, 1991.
*/
/*
* $MawkId: patchlev.h,v 1.48 2013/08/03 13:30:21 tom Exp $
* $MawkId: patchlev.h,v 1.49 2013/08/03 13:30:21 tom Exp $
*/
#define PATCH_BASE 1
#define PATCH_LEVEL 3
#define PATCH_STRING ".4"
#define DATE_STRING "20130803"
#define DATE_STRING "20131226"

View File

@ -1,6 +1,6 @@
/********************************************
rexp3.c
copyright 2008-2009,2010, Thomas E. Dickey
copyright 2008-2010,2013, Thomas E. Dickey
copyright 2010, Jonathan Nieder
copyright 1991-1992,1993, Michael D. Brennan
@ -12,7 +12,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: rexp3.c,v 1.28 2013/08/03 14:04:00 tom Exp $
* $MawkId: rexp3.c,v 1.29 2013/08/03 14:04:00 tom Exp $
* @Log: rexp3.c,v @
* Revision 1.3 1993/07/24 17:55:15 mike
* more cleanup

View File

@ -1,6 +1,6 @@
/*
regexp_system.c
copyright 2009, Thomas E. Dickey
copyright 2009,2010 Thomas E. Dickey
copyright 2005, Aleksey Cheusov
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
*/
/*
* $MawkId: rexp4.c,v 1.6 2010/12/10 17:00:00 tom Exp $
* $MawkId: rexp4.c,v 1.7 2010/12/10 17:00:00 tom Exp $
*/
#include "mawk.h"
#include "rexp.h"

View File

@ -1,6 +1,6 @@
/********************************************
types.h
copyright 2009,2010, Thomas E. Dickey
copyright 2009-2010,2012 Thomas E. Dickey
copyright 1991,1993, Michael D. Brennan
This is a source file for mawk, an implementation of
@ -11,7 +11,7 @@ the GNU General Public License, version 2, 1991.
********************************************/
/*
* $MawkId: types.h,v 1.10 2012/12/07 11:50:12 tom Exp $
* $MawkId: types.h,v 1.11 2012/12/07 11:50:12 tom Exp $
* @Log: types.h,v @
* Revision 1.3 1993/07/15 23:56:18 mike
* general cleanup