version 1.9, 2019/04/11 04:23:22 |
version 1.11, 2019/04/12 09:01:48 |
Line 212 macro_nodeline(struct format *f, const char *name, str |
|
Line 212 macro_nodeline(struct format *f, const char *name, str |
|
* line otherwise. The flag ARG_SPACE inserts spaces between words. |
* line otherwise. The flag ARG_SPACE inserts spaces between words. |
*/ |
*/ |
void |
void |
print_text(struct format *f, const char *word, int flags) { |
print_text(struct format *f, const char *word, int flags) |
|
{ |
switch (f->linestate) { |
switch (f->linestate) { |
case LINE_NEW: |
case LINE_NEW: |
break; |
break; |
Line 224 print_text(struct format *f, const char *word, int fla |
|
Line 225 print_text(struct format *f, const char *word, int fla |
|
macro_close(f); |
macro_close(f); |
break; |
break; |
} |
} |
fputs(word, stdout); |
if (f->linestate == LINE_NEW && (*word == '.' || *word == '\'')) |
|
fputs("\\&", stdout); |
|
while (*word != '\0') { |
|
putchar(*word); |
|
if (*word++ == '\\') |
|
putchar('e'); |
|
} |
f->linestate = LINE_TEXT; |
f->linestate = LINE_TEXT; |
f->flags = 0; |
f->flags = 0; |
} |
} |