git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
82dce99
)
ctype: make sane_ctype[] const array
author
Nguyễn Thái Ngọc Duy
<redacted>
Mon, 15 Oct 2012 06:25:50 +0000
(13:25 +0700)
committer
Junio C Hamano
<redacted>
Mon, 15 Oct 2012 21:58:16 +0000
(14:58 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
ctype.c
patch
|
blob
|
history
git-compat-util.h
patch
|
blob
|
history
diff --git
a/ctype.c
b/ctype.c
index 935327164b1066ad011d11fdcd3fd1dc1a936c58..faeaf34e67781aa2e10b6f59eaec87af08333ae9 100644
(file)
--- a/
ctype.c
+++ b/
ctype.c
@@
-14,7
+14,7
@@
enum {
P = GIT_PATHSPEC_MAGIC /* other non-alnum, except for ] and } */
};
-unsigned char sane_ctype[256] = {
+
const
unsigned char sane_ctype[256] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, S, S, 0, 0, S, 0, 0, /* 0.. 15 */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 16.. 31 */
S, P, P, P, R, P, P, P, R, R, G, R, P, P, R, P, /* 32.. 47 */
diff --git
a/git-compat-util.h
b/git-compat-util.h
index 5bd9ad7d2a23773b1410ded9f4f241ebe4d4da00..80767ff3a147b91bb525b5330a29339b45bb0717 100644
(file)
--- a/
git-compat-util.h
+++ b/
git-compat-util.h
@@
-470,7
+470,7
@@
extern const char tolower_trans_tbl[256];
#undef isupper
#undef tolower
#undef toupper
-extern unsigned char sane_ctype[256];
+extern
const
unsigned char sane_ctype[256];
#define GIT_SPACE 0x01
#define GIT_DIGIT 0x02
#define GIT_ALPHA 0x04
git clone https://git.99rst.org/PROJECT