mirror of
https://github.com/ThomasDickey/mawk-snapshots.git
synced 2026-01-26 19:09:15 +00:00
snapshot of project "mawk", label t20160927
This commit is contained in:
parent
80a2028709
commit
489f70ade4
9
CHANGES
9
CHANGES
@ -1,7 +1,14 @@
|
||||
-- $MawkId: CHANGES,v 1.240 2016/09/18 18:43:58 tom Exp $
|
||||
-- $MawkId: CHANGES,v 1.244 2016/09/27 09:28:47 tom Exp $
|
||||
|
||||
Changes by Thomas E Dickey <dickey@invisible-island.net>
|
||||
|
||||
20160927
|
||||
+ allow single-quote as a flag in printf, to complete the change
|
||||
for LC_NUMERIC in 20121129 (report by Graham Monteith).
|
||||
+ revert one of the fixes made for a Coverity warning about loss of
|
||||
precision in 20121209, which unnecessarily exposed a different
|
||||
problem (Original-Mawk #45).
|
||||
|
||||
20160918
|
||||
+ simplify "system()" function by calling C "system()" function, and
|
||||
use POSIX macros for wait-status to provide a less-ambiguous return
|
||||
|
||||
2
MANIFEST
2
MANIFEST
@ -1,4 +1,4 @@
|
||||
MANIFEST for mawk, version t20160918
|
||||
MANIFEST for mawk, version t20160927
|
||||
--------------------------------------------------------------------------------
|
||||
MANIFEST this file
|
||||
ACKNOWLEDGMENT acknowledgements
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
mawk-cur (1.3.4-20160927) unstable; urgency=low
|
||||
|
||||
* maintenance updates
|
||||
|
||||
-- Thomas E. Dickey <dickey@invisible-island.net> Mon, 26 Sep 2016 21:00:51 -0400
|
||||
|
||||
mawk-cur (1.3.4-20160918) unstable; urgency=low
|
||||
|
||||
* maintenance updates
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
Summary: mawk - pattern scanning and text processing language
|
||||
%define AppProgram mawk
|
||||
%define AppVersion 1.3.4
|
||||
%define AppRelease 20160918
|
||||
# $MawkId: mawk.spec,v 1.55 2016/09/18 15:50:44 tom Exp $
|
||||
%define AppRelease 20160927
|
||||
# $MawkId: mawk.spec,v 1.56 2016/09/27 01:00:51 tom Exp $
|
||||
Name: %{AppProgram}
|
||||
Version: %{AppVersion}
|
||||
Release: %{AppRelease}
|
||||
|
||||
@ -11,9 +11,9 @@ the GNU General Public License, version 2, 1991.
|
||||
*/
|
||||
|
||||
/*
|
||||
* $MawkId: patchlev.h,v 1.80 2016/09/18 15:50:44 tom Exp $
|
||||
* $MawkId: patchlev.h,v 1.81 2016/09/27 01:00:51 tom Exp $
|
||||
*/
|
||||
#define PATCH_BASE 1
|
||||
#define PATCH_LEVEL 3
|
||||
#define PATCH_STRING ".4"
|
||||
#define DATE_STRING "20160918"
|
||||
#define DATE_STRING "20160927"
|
||||
|
||||
56
print.c
56
print.c
@ -11,58 +11,8 @@ the GNU General Public License, version 2, 1991.
|
||||
********************************************/
|
||||
|
||||
/*
|
||||
* $MawkId: print.c,v 1.26 2016/09/05 17:22:38 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
|
||||
*
|
||||
*/
|
||||
* $MawkId: print.c,v 1.27 2016/09/27 09:29:19 tom Exp $
|
||||
*/
|
||||
|
||||
#include "mawk.h"
|
||||
#include "bi_vars.h"
|
||||
@ -521,7 +471,7 @@ do_printf(
|
||||
|
||||
/* eat the flags */
|
||||
while (*q == '-' || *q == '+' || *q == ' ' ||
|
||||
*q == '#' || *q == '0')
|
||||
*q == '#' || *q == '0' || *q == '\'')
|
||||
q++;
|
||||
|
||||
ast_cnt = 0;
|
||||
|
||||
18
types.h
18
types.h
@ -1,6 +1,6 @@
|
||||
/********************************************
|
||||
types.h
|
||||
copyright 2009-2012,2014 Thomas E. Dickey
|
||||
copyright 2009-2014,2016 Thomas E. Dickey
|
||||
copyright 1991-1993,2014 Michael D. Brennan
|
||||
|
||||
This is a source file for mawk, an implementation of
|
||||
@ -11,17 +11,7 @@ the GNU General Public License, version 2, 1991.
|
||||
********************************************/
|
||||
|
||||
/*
|
||||
* $MawkId: types.h,v 1.12 2014/08/22 00:51:29 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
|
||||
*
|
||||
* $MawkId: types.h,v 1.13 2016/09/27 00:59:29 tom Exp $
|
||||
*/
|
||||
|
||||
/* types.h */
|
||||
@ -72,12 +62,12 @@ typedef unsigned char UChar;
|
||||
typedef struct {
|
||||
size_t len;
|
||||
unsigned ref_cnt;
|
||||
char str[1];
|
||||
char str[2];
|
||||
} STRING;
|
||||
|
||||
/* number of bytes more than the characters to store a
|
||||
string */
|
||||
#define STRING_OH (sizeof(STRING)-0)
|
||||
#define STRING_OH (sizeof(STRING)-1)
|
||||
|
||||
typedef unsigned short VCount;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user