diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-04-16 06:40:57 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-04-16 06:40:57 +0200 |
commit | 582f234e00c019e6009bea7ab84cb615041cde94 (patch) | |
tree | b29542143d678e2715f9ca75416c5c510dd247ca /tools | |
parent | 6e5012424cacb6eb2e7beae2456dd76f6a022023 (diff) | |
download | nettle-582f234e00c019e6009bea7ab84cb615041cde94.tar.gz |
Deleted useless for loop
Diffstat (limited to 'tools')
-rw-r--r-- | tools/input.c | 67 |
1 files changed, 33 insertions, 34 deletions
diff --git a/tools/input.c b/tools/input.c index f2b57f0a..b8085a4e 100644 --- a/tools/input.c +++ b/tools/input.c @@ -150,41 +150,40 @@ sexp_get_quoted_char(struct sexp_input *input) { sexp_next_char(input); - for (;;) - switch (input->c) - { - default: - return 1; - case '\"': - return 0; - case '\\': - sexp_next_char(input); + switch (input->c) + { + default: + return 1; + case '\"': + return 0; + case '\\': + sexp_next_char(input); - switch (input->c) - { - case 'b': input->c = '\b'; return 1; - case 't': input->c = '\t'; return 1; - case 'n': input->c = '\n'; return 1; - case 'f': input->c = '\f'; return 1; - case 'r': input->c = '\r'; return 1; - case '\\': input->c = '\\'; return 1; - case 'o': - case 'x': - /* FIXME: Not implemnted */ - abort(); - case '\n': - if (sexp_next_char(input) == '\r') - sexp_next_char(input); - - break; - case '\r': - if (sexp_next_char(input) == '\n') - sexp_next_char(input); - - break; - } - return 1; - } + switch (input->c) + { + case 'b': input->c = '\b'; return 1; + case 't': input->c = '\t'; return 1; + case 'n': input->c = '\n'; return 1; + case 'f': input->c = '\f'; return 1; + case 'r': input->c = '\r'; return 1; + case '\\': input->c = '\\'; return 1; + case 'o': + case 'x': + /* FIXME: Not implemnted */ + abort(); + case '\n': + if (sexp_next_char(input) == '\r') + sexp_next_char(input); + + break; + case '\r': + if (sexp_next_char(input) == '\n') + sexp_next_char(input); + + break; + } + return 1; + } } static void |