version 1.163, 2010/08/20 01:02:07 |
version 1.164, 2010/08/29 11:29:51 |
Line 758 mdoc_pmacro(struct mdoc *m, int ln, char *buf, int off |
|
Line 758 mdoc_pmacro(struct mdoc *m, int ln, char *buf, int off |
|
|
|
/* |
/* |
* Copy the first word into a nil-terminated buffer. |
* Copy the first word into a nil-terminated buffer. |
* Stop copying when a tab, space, or eoln is encountered. |
* Stop copying when a tab, space, backslash, or eoln is encountered. |
*/ |
*/ |
|
|
j = 0; |
j = 0; |
while (j < 4 && '\0' != buf[i] && ' ' != buf[i] && '\t' != buf[i]) |
while (j < 4 && '\0' != buf[i] && |
|
' ' != buf[i] && |
|
'\t' != buf[i] && |
|
'\\' != buf[i]) |
mac[j++] = buf[i++]; |
mac[j++] = buf[i++]; |
mac[j] = '\0'; |
mac[j] = '\0'; |
|
|