View | Details | Raw Unified | Return to bug 143090 | Differences between
and this patch

Collapse All | Expand All

(-)usr.bin/indent/Makefile (+2 lines)
Lines 3-6 Link Here
3
PROG=	indent
3
PROG=	indent
4
SRCS=	indent.c io.c lexi.c parse.c pr_comment.c args.c
4
SRCS=	indent.c io.c lexi.c parse.c pr_comment.c args.c
5
5
6
WARNS?=		6
7
6
.include <bsd.prog.mk>
8
.include <bsd.prog.mk>
(-)usr.bin/indent/lexi.c (+9 lines)
Lines 222-227 Link Here
222
			    break;
222
			    break;
223
		}
223
		}
224
		CHECK_SIZE_TOKEN;
224
		CHECK_SIZE_TOKEN;
225
		if ((s_token == e_token) && *buf_ptr == 'L' &&
226
			(*(buf_ptr + 1) == '\'' || *(buf_ptr + 1) == '"' )) {
227
		    /* widecharacter literal */
228
		    *e_token++ = *buf_ptr++;        /* copy L */
229
		    *e_token++ = *buf_ptr;          /* copy ' or " */
230
		    qchar = *buf_ptr++;             /* set string delimeter */
231
		    goto found_string;
232
		}
225
		/* copy it over */
233
		/* copy it over */
226
		*e_token++ = *buf_ptr++;
234
		*e_token++ = *buf_ptr++;
227
		if (buf_ptr >= buf_end)
235
		if (buf_ptr >= buf_end)
Lines 361-366 Link Here
361
    case '\'':			/* start of quoted character */
369
    case '\'':			/* start of quoted character */
362
    case '"':			/* start of string */
370
    case '"':			/* start of string */
363
	qchar = *token;
371
	qchar = *token;
372
found_string:
364
	if (troff) {
373
	if (troff) {
365
	    e_token[-1] = '`';
374
	    e_token[-1] = '`';
366
	    if (qchar == '"')
375
	    if (qchar == '"')

Return to bug 143090