| # | Line 185 | Line 185 | register FILE *fp; | |
|---|---|---|
| 185 | stderr_v(s) /* put string to stderr */ | |
| 186 | register char *s; | |
| 187 | { | |
| 188 | < | static int inline = 0; |
| 188 | > | static int midline = 0; |
| 189 | ||
| 190 | < | if (!inline++) { |
| 190 | > | if (!*s) |
| 191 | > | return; |
| 192 | > | if (!midline++) { |
| 193 | fputs(progname, stderr); | |
| 194 | fputs(": ", stderr); | |
| 195 | } | |
| 196 | fputs(s, stderr); | |
| 197 | < | if (*s && s[strlen(s)-1] == '\n') { |
| 197 | > | if (s[strlen(s)-1] == '\n') { |
| 198 | fflush(stderr); | |
| 199 | < | inline = 0; |
| 199 | > | midline = 0; |
| 200 | } | |
| 201 | } | |
| 202 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |