Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
9765c2fa
Commit
9765c2fa
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: elide a function that is called just once
parent
85ebe971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/chars.c
+1
-6
src/chars.c
with
1 addition
and
6 deletions
+1
-6
src/chars.c
View file @
9765c2fa
...
...
@@ -88,11 +88,6 @@ void mbtowc_reset(void)
IGNORE_CALL_RESULT
(
mbtowc
(
NULL
,
NULL
,
0
));
}
void
wctomb_reset
(
void
)
{
IGNORE_CALL_RESULT
(
wctomb
(
NULL
,
0
));
}
/* This function is equivalent to isalpha() for multibyte characters. */
bool
is_alpha_mbchar
(
const
char
*
c
)
{
...
...
@@ -353,7 +348,7 @@ char *make_mbchar(long chr, int *chr_mb_len)
/* Reject invalid Unicode characters. */
if
(
*
chr_mb_len
<
0
||
!
is_valid_unicode
((
wchar_t
)
chr
))
{
wctomb_reset
(
);
IGNORE_CALL_RESULT
(
wctomb
(
NULL
,
0
)
);
*
chr_mb_len
=
0
;
}
}
else
...
...
This diff is collapsed.
Click to expand it.
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