Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
582f234e
Commit
582f234e
authored
Apr 16, 2014
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted useless for loop
parent
6e501242
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
34 deletions
+37
-34
ChangeLog
ChangeLog
+4
-0
tools/input.c
tools/input.c
+33
-34
No files found.
ChangeLog
View file @
582f234e
2014-04-16 Niels Möller <nisse@lysator.liu.se>
* tools/input.c (sexp_get_quoted_char): Deleted useless for loop.
2014-04-13 Niels Möller <nisse@lysator.liu.se>
* rsa-compat.c: Deleted file.
...
...
tools/input.c
View file @
582f234e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment