Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
f74c4d96
...
f74c4d960cc8c68d59187bf24d87f3ff3c09dbc9
authored
2003-08-20 14:35:34 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(expand_escape): Use argcv_unescape_char() instead of backslash().
1 parent
12c9b1de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
17 deletions
comsat/action.c
comsat/action.c
View file @
f74c4d9
...
...
@@ -79,22 +79,6 @@ act_getline (FILE *fp, char **sptr, size_t *size)
return
used
;
}
/* Convert second character of a backslash sequence to its ASCII
value: */
static
int
backslash
(
int
c
)
{
static
char
transtab
[]
=
"a
\a
b
\b
f
\f
n
\n
r
\r
t
\t
"
;
char
*
p
;
for
(
p
=
transtab
;
*
p
;
p
+=
2
)
{
if
(
*
p
==
c
)
return
p
[
1
];
}
return
c
;
}
static
int
expand_escape
(
char
**
pp
,
message_t
msg
,
struct
obstack
*
stk
)
{
...
...
@@ -213,7 +197,7 @@ expand_line (const char *str, message_t msg)
p
++
;
if
(
*
p
)
{
c
=
backslash
(
*
p
);
c
=
argcv_unescape_char
(
*
p
);
obstack_1grow
(
&
stk
,
c
);
}
break
;
...
...
Please
register
or
sign in
to post a comment