Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
de4e3abd
Commit
de4e3abd
authored
5 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bunch of enumeration value '...' not handled in switch GCC warnings
in unicode_width().
parent
999d7a45
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/unicode.c
+3
-1
3 additions, 1 deletion
src/xpdev/unicode.c
with
3 additions
and
1 deletion
src/xpdev/unicode.c
+
3
−
1
View file @
de4e3abd
...
...
@@ -311,6 +311,7 @@ enum unicode_codepoint cp437_unicode_tbl[] =
size_t
unicode_width
(
enum
unicode_codepoint
u
)
{
switch
(
u
)
{
case
UNICODE_UNDEFINED
:
case
UNICODE_ZERO_WIDTH_SPACE
:
case
UNICODE_ZERO_WIDTH_NON_JOINER
:
case
UNICODE_ZERO_WIDTH_JOINER
:
...
...
@@ -333,8 +334,9 @@ size_t unicode_width(enum unicode_codepoint u)
case
UNICODE_ZERO_WIDTH_NO_BREAK_SPACE
:
return
0
;
/* TODO: return 2 for "fullwdith" chars */
default:
return
1
;
}
return
1
;
}
char
unicode_to_cp437
(
enum
unicode_codepoint
codepoint
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment