View | Details | Raw Unified | Return to bug 740484
Collapse All | Expand All

(-)mawk-1.3.4-20100224+bad/CHANGES (-2 / +10 lines)
Lines 1-8 Link Here
1
-- $MawkId: CHANGES,v 1.100 2010/02/17 11:48:46 tom Exp $
1
-- $MawkId: CHANGES,v 1.102 2010/02/21 00:19:40 tom Exp $
2
2
3
Changes by Thomas E Dickey <dickey@invisible-island.net>
3
Changes by Thomas E Dickey <dickey@invisible-island.net>
4
4
5
20100217
5
20100220
6
	+ modify mawktest script to report results from all tests, rather than
7
	  halting on the first failure.
8
9
	+ add limit-check after processing match(test, "[^0-9A-Za-z]") to
10
	  ensure the internal trailing null of the test-string is not mistaken
11
	  for part of the string, i.e., RSTART, RLENGTH are computed correctly
12
	  (report by Markus Gnam).
13
6
	+ modify parsing of -W option to use comma-separated values, e.g.,
14
	+ modify parsing of -W option to use comma-separated values, e.g.,
7
	  "-Wi,e" for "-Winteractive" and "-Werror".
15
	  "-Wi,e" for "-Winteractive" and "-Werror".
8
16
(-)mawk-1.3.4-20100224+bad/files.c (-2 / +2 lines)
Lines 10-16 Link Here
10
********************************************/
10
********************************************/
11
11
12
/*
12
/*
13
 * $MawkId: files.c,v 1.12 2009/12/17 00:06:51 tom Exp $
13
 * $MawkId: files.c,v 1.13 2010/02/21 01:32:50 tom Exp $
14
 * @Log: files.c,v @
14
 * @Log: files.c,v @
15
 * Revision 1.9  1996/01/14  17:14:10  mike
15
 * Revision 1.9  1996/01/14  17:14:10  mike
16
 * flush_all_output()
16
 * flush_all_output()
Lines 506-512 Link Here
506
int
506
int
507
wait_for(int pid)
507
wait_for(int pid)
508
{
508
{
509
    int exit_status;
509
    int exit_status = 0;
510
    struct child *p;
510
    struct child *p;
511
    int id;
511
    int id;
512
512
(-)mawk-1.3.4-20100224+bad/fin.c (-2 / +2 lines)
Lines 10-16 Link Here
10
********************************************/
10
********************************************/
11
11
12
/*
12
/*
13
 * $MawkId: fin.c,v 1.23 2010/01/29 20:03:43 Jan.Psota Exp $
13
 * $MawkId: fin.c,v 1.24 2010/02/21 01:45:21 tom Exp $
14
 * @Log: fin.c,v @
14
 * @Log: fin.c,v @
15
 * Revision 1.10  1995/12/24  22:23:22  mike
15
 * Revision 1.10  1995/12/24  22:23:22  mike
16
 * remove errmsg() from inside FINopen
16
 * remove errmsg() from inside FINopen
Lines 317-323 Link Here
317
	unsigned rr;
317
	unsigned rr;
318
	unsigned amount = (unsigned) (fin->limit - p);
318
	unsigned amount = (unsigned) (fin->limit - p);
319
319
320
	p = (char *) memcpy(fin->buff, p, r = (unsigned) (fin->limit - p));
320
	p = (char *) memmove(fin->buff, p, r = (unsigned) (fin->limit - p));
321
	q = p + r;
321
	q = p + r;
322
	rr = fin->nbuffs * BUFFSZ - r;
322
	rr = fin->nbuffs * BUFFSZ - r;
323
323
(-)mawk-1.3.4-20100224+bad/patchlev.h (-2 / +2 lines)
Lines 1-6 Link Here
1
/*
1
/*
2
 * $MawkId: patchlev.h,v 1.17 2010/02/17 11:41:46 tom Exp $
2
 * $MawkId: patchlev.h,v 1.18 2010/02/21 00:18:47 tom Exp $
3
 */
3
 */
4
#define  PATCHLEVEL	3
4
#define  PATCHLEVEL	3
5
#define  PATCH_STRING	".4"
5
#define  PATCH_STRING	".4"
6
#define  DATE_STRING    "20100217"
6
#define  DATE_STRING    "20100220"
(-)mawk-1.3.4-20100224+bad/rexp3.c (-2 / +8 lines)
Lines 10-16 Link Here
10
********************************************/
10
********************************************/
11
11
12
/*
12
/*
13
 * $MawkId: rexp3.c,v 1.19 2010/02/17 11:38:24 Jonathan.Nieder Exp $
13
 * $MawkId: rexp3.c,v 1.22 2010/02/21 02:05:44 tom Exp $
14
 * @Log: rexp3.c,v @
14
 * @Log: rexp3.c,v @
15
 * Revision 1.3  1993/07/24  17:55:15  mike
15
 * Revision 1.3  1993/07/24  17:55:15  mike
16
 * more cleanup
16
 * more cleanup
Lines 157-163 Link Here
157
	goto reswitch;
157
	goto reswitch;
158
158
159
    case M_STR + U_ON + END_OFF:
159
    case M_STR + U_ON + END_OFF:
160
	if (!(s = str_str(s, str_len, m->s_data.str, m->s_len))) {
160
	if (s >= str_end) {
161
	    goto refill;
162
	}
163
	if (!(s = str_str(s, (unsigned) (str_end - s), m->s_data.str, m->s_len))) {
161
	    goto refill;
164
	    goto refill;
162
	}
165
	}
163
	if (s >= str + strlen(str)) {
166
	if (s >= str + strlen(str)) {
Lines 237-242 Link Here
237
		s++;
240
		s++;
238
	    }
241
	    }
239
	}
242
	}
243
	if (s >= str_end) {
244
	    goto refill;
245
	}
240
	s++;
246
	s++;
241
	push(m, s, sp, ss, U_ON);
247
	push(m, s, sp, ss, U_ON);
242
	if (!ss) {
248
	if (!ss) {

Return to bug 740484