Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
SRB2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
265
Issues
265
List
Board
Labels
Milestones
Merge Requests
68
Merge Requests
68
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
STJr
SRB2
Commits
23399009
Commit
23399009
authored
Dec 06, 2020
by
GoldenTails
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make caret coloring support letters.
parent
d004515d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
dehacked.c
src/dehacked.c
+6
-0
No files found.
src/dehacked.c
View file @
23399009
...
...
@@ -59,6 +59,12 @@ ATTRINLINE static FUNCINLINE char myfget_color(MYFILE *f)
if
(
c
>=
'0'
&&
c
<=
'9'
)
return
0x80
+
(
c
-
'0'
);
c
=
tolower
(
c
);
if
(
c
>=
'a'
&&
c
<=
'f'
)
return
0x80
+
10
+
(
c
-
'a'
);
return
0x80
;
// Unhandled -- default to no color
}
...
...
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