/[gentoo-alt]/trunk/sys-apps/gawk/files/gawk-3.1.4-nextc.patch
Gentoo

Contents of /trunk/sys-apps/gawk/files/gawk-3.1.4-nextc.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 242 - (show annotations) (download)
Sun Feb 27 23:26:00 2005 UTC (9 years, 5 months ago) by angusyoung
File size: 716 byte(s)
Bumped gawk from 3.1.4 to 3.1.4-r4

1 Ripped from Fedora.
2
3 --- gawk-3.1.4/awkgram.y.nextc 2004-11-09 15:53:03.355118792 +0100
4 +++ gawk-3.1.4/awkgram.y 2004-11-09 16:05:46.091165288 +0100
5 @@ -1433,6 +1433,11 @@
6 nextc(void)
7 {
8 if (gawk_mb_cur_max > 1) {
9 + if (!lexptr || lexptr >= lexend)
10 + if (!get_src_buf()) {
11 + return EOF;
12 + }
13 +
14 /* Update the buffer index. */
15 cur_ring_idx = (cur_ring_idx == RING_BUFFER_SIZE - 1)? 0 :
16 cur_ring_idx + 1;
17 @@ -1444,11 +1449,6 @@
18 mbstate_t tmp_state;
19 size_t mbclen;
20
21 - if (!lexptr || lexptr >= lexend)
22 - if (!get_src_buf()) {
23 - return EOF;
24 - }
25 -
26 for (idx = 0 ; lexptr + idx < lexend ; idx++) {
27 tmp_state = cur_mbstate;
28 mbclen = mbrlen(lexptr, idx + 1, &tmp_state);

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.20