FreeBSD Bugzilla – Attachment 141002 Details for
Bug 187728
[patch] bc(1) should print error message to stderr
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 993 bytes, created by
ksmakoto
on 2014-03-19 09:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
ksmakoto
Created:
2014-03-19 09:50:00 UTC
Size:
993 bytes
patch
obsolete
>Index: bc.y >=================================================================== >--- bc.y (revision 263333) >+++ bc.y (working copy) >@@ -969,25 +969,19 @@ > int n; > > if (yyin != NULL && feof(yyin)) >- n = asprintf(&str, "%s: %s:%d: %s: unexpected EOF", >+ n = asprintf(&str, "%s: %s:%d: %s: unexpected EOF\n", > __progname, filename, lineno, s); > else if (isspace(yytext[0]) || !isprint(yytext[0])) > n = asprintf(&str, >- "%s: %s:%d: %s: ascii char 0x%02x unexpected", >+ "%s: %s:%d: %s: ascii char 0x%02x unexpected\n", > __progname, filename, lineno, s, yytext[0]); > else >- n = asprintf(&str, "%s: %s:%d: %s: %s unexpected", >+ n = asprintf(&str, "%s: %s:%d: %s: %s unexpected\n", > __progname, filename, lineno, s, yytext); > if (n == -1) > err(1, NULL); > >- fputs("c[", stdout); >- for (p = str; *p != '\0'; p++) { >- if (*p == '[' || *p == ']' || *p =='\\') >- putchar('\\'); >- putchar(*p); >- } >- fputs("]pc\n", stdout); >+ fputs(str, stderr); > free(str); > }
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 187728
: 141002