version 1.389, 2022/05/30 23:03:47 |
version 1.391, 2022/05/31 20:23:05 |
Line 1520 roff_expand(struct roff *r, struct buf *buf, int ln, i |
|
Line 1520 roff_expand(struct roff *r, struct buf *buf, int ln, i |
|
*dst++ = '"'; |
*dst++ = '"'; |
} |
} |
continue; |
continue; |
|
case 'A': |
|
ubuf[0] = iendarg > iarg ? '1' : '0'; |
|
ubuf[1] = '\0'; |
|
res = ubuf; |
|
break; |
case 'B': |
case 'B': |
npos = 0; |
npos = 0; |
ubuf[0] = iendarg > iarg && iend > iendarg && |
ubuf[0] = iendarg > iarg && iend > iendarg && |
Line 1535 roff_expand(struct roff *r, struct buf *buf, int ln, i |
|
Line 1540 roff_expand(struct roff *r, struct buf *buf, int ln, i |
|
roff_expand_patch(buf, iendarg, "}", iend); |
roff_expand_patch(buf, iendarg, "}", iend); |
roff_expand_patch(buf, iesc, "${", iarg); |
roff_expand_patch(buf, iesc, "${", iarg); |
continue; |
continue; |
|
case 'g': |
|
break; |
case 'n': |
case 'n': |
if (iendarg > iarg) |
if (iendarg > iarg) |
(void)snprintf(ubuf, sizeof(ubuf), "%d", |
(void)snprintf(ubuf, sizeof(ubuf), "%d", |