From f42b5b16c7f1f9093da2bc321faadc1bb7f8cc38 Mon Sep 17 00:00:00 2001 From: rlar Date: Tue, 15 Apr 2014 19:12:58 +0200 Subject: [PATCH] lexical.c, simplify --- src/frontend/parser/lexical.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/parser/lexical.c b/src/frontend/parser/lexical.c index f01a9bf6e..d3007e9aa 100644 --- a/src/frontend/parser/lexical.c +++ b/src/frontend/parser/lexical.c @@ -141,14 +141,13 @@ nloop: for (;;) { + c = cp_readchar(&string, cp_inp_cur); + if (string) { - c = cp_readchar(&string, cp_inp_cur); if (c == '\0') c = '\n'; if (c == ESCAPE) c = '['; - } else { - c = cp_readchar(&string, cp_inp_cur); } gotchar: