From b8232da3405d4e75e984d14d980111c966b55ffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 9 Nov 2002 12:07:43 +0000 Subject: Source formatting fixes. --- lexer.l | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'lexer.l') diff --git a/lexer.l b/lexer.l index e8a2be9..ef550e7 100644 --- a/lexer.l +++ b/lexer.l @@ -82,10 +82,11 @@ required { return REQUIRED; } %% -void escapes(cp, tp) /* process standard C-style escape sequences in a string */ -const char *cp; /* source string with escapes */ -char *tp; /* target buffer for digested string */ +void escapes( + const char *cp, /* source string with escapes */ + char *tp /* target buffer for digested string */ +) { while (*cp) { @@ -111,12 +112,12 @@ char *tp; /* target buffer for digested string */ { switch (*++cp) { - case '\\': cval = '\\'; break; - case 'n': cval = '\n'; break; - case 't': cval = '\t'; break; - case 'b': cval = '\b'; break; - case 'r': cval = '\r'; break; - default: cval = *cp; + case '\\': cval = '\\'; break; + case 'n': cval = '\n'; break; + case 't': cval = '\t'; break; + case 'b': cval = '\b'; break; + case 'r': cval = '\r'; break; + default: cval = *cp; } cp++; } -- cgit v1.2.3-2-g168b