Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
019d7b34
Commit
019d7b34
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
chars: delete a now-unused function
parent
622995fb
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/chars.c
+2
-20
src/chars.c
src/proto.h
+0
-3
src/proto.h
with
2 additions
and
23 deletions
+2
-23
src/chars.c
View file @
019d7b34
...
...
@@ -217,13 +217,12 @@ bool is_word_mbchar(const char *c, bool allow_punct)
FALSE
);
}
/* c is a control character. It displays as ^@, ^?, or ^[ch], where ch
* is (c + 64). We return that character. */
/* Return the visible representation of control character c. */
char
control_rep
(
const
signed
char
c
)
{
assert
(
is_cntrl_char
(
c
));
/*
Treat newlines embedded in a line as
encoded null
s
. */
/*
An embedded newline is an
encoded null. */
if
(
c
==
'\n'
)
return
'@'
;
else
if
(
c
==
NANO_CONTROL_8
)
...
...
@@ -236,23 +235,6 @@ char control_rep(const signed char c)
return
c
+
64
;
}
#ifdef ENABLE_UTF8
/* c is a wide control character. It displays as ^@, ^?, or ^[ch],
* where ch is (c + 64). We return that wide character. */
wchar_t
control_wrep
(
wchar_t
wc
)
{
assert
(
is_cntrl_wchar
(
wc
));
/* Treat newlines embedded in a line as encoded nulls. */
if
(
wc
==
'\n'
)
return
'@'
;
else
if
(
wc
==
NANO_CONTROL_8
)
return
'?'
;
else
return
wc
+
64
;
}
#endif
/* Return the visible representation of multibyte control character c. */
char
control_mbrep
(
const
char
*
c
)
{
...
...
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
019d7b34
...
...
@@ -190,9 +190,6 @@ bool is_cntrl_mbchar(const char *c);
bool
is_punct_mbchar
(
const
char
*
c
);
bool
is_word_mbchar
(
const
char
*
c
,
bool
allow_punct
);
char
control_rep
(
const
signed
char
c
);
#ifdef ENABLE_UTF8
wchar_t
control_wrep
(
wchar_t
wc
);
#endif
char
control_mbrep
(
const
char
*
c
);
char
*
mbrep
(
const
char
*
c
,
char
*
crep
,
int
*
crep_len
);
int
mbwidth
(
const
char
*
c
);
...
...
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
Menu
Projects
Groups
Snippets
Help