FreeBSD Bugzilla – Attachment 24052 Details for
Bug 41190
[patch] sed(1) report the { linenum instead of EOF linenum on pending }
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.23 KB, created by
Cyrille Lefevre
on 2002-07-31 03:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Cyrille Lefevre
Created:
2002-07-31 03:10:01 UTC
Size:
1.23 KB
patch
obsolete
>Index: compile.c >=================================================================== >RCS file: /home/ncvs/src/usr.bin/sed/compile.c,v >retrieving revision 1.21 >diff -u -r1.21 compile.c >--- compile.c 1 Jun 2002 13:25:47 -0000 1.21 >+++ compile.c 31 Jul 2002 01:53:02 -0000 >@@ -165,9 +165,12 @@ > stack = 0; > for (;;) { > if ((p = cu_fgets(lbuf, sizeof(lbuf), NULL)) == NULL) { >- if (stack != 0) >+ if (stack != 0) { >+ for (cmd = stack; cmd->next; cmd = cmd->next) >+ /* nothing */ ; > errx(1, "%lu: %s: unexpected EOF (pending }'s)", >- linenum, fname); >+ cmd->linenum, fname); >+ } > return (link); > } > >@@ -226,6 +229,7 @@ > p++; > EATSPACE(); > cmd->next = stack; >+ cmd->linenum = linenum; > stack = cmd; > link = &cmd->u.c; > if (*p) >Index: defs.h >=================================================================== >RCS file: /home/ncvs/src/usr.bin/sed/defs.h,v >retrieving revision 1.3 >diff -u -r1.3 defs.h >--- defs.h 11 Aug 1997 07:21:00 -0000 1.3 >+++ defs.h 31 Jul 2002 01:51:04 -0000 >@@ -88,6 +88,7 @@ > int fd; /* File descriptor for w */ > } u; > char code; /* Command code */ >+ u_long linenum; /* Line number. */ > u_int nonsel:1; /* True if ! */ > u_int inrange:1; /* True if in range */ > };
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41190
: 24052