summaryrefslogtreecommitdiff
path: root/src/cmark_ctype.h
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2016-06-06 18:15:21 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2016-06-06 18:30:31 +0200
commit75658002e907063c7e615b2630b873656d2411ba (patch)
tree0703ceba5c0557c7823d09820a22fe73372efe2d /src/cmark_ctype.h
parent45bfbcc9d2a82bb79d57aead9e51099e71e187e9 (diff)
Fix character type detection in commonmark.c
- Implement cmark_isalpha. - Check for ASCII character before implicit cast to char. - Use internal ctype functions in commonmark.c. Fixes test failures on Windows and undefined behavior.
Diffstat (limited to 'src/cmark_ctype.h')
-rw-r--r--src/cmark_ctype.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmark_ctype.h b/src/cmark_ctype.h
index f803946..9a07618 100644
--- a/src/cmark_ctype.h
+++ b/src/cmark_ctype.h
@@ -17,6 +17,8 @@ int cmark_isalnum(char c);
int cmark_isdigit(char c);
+int cmark_isalpha(char c);
+
#ifdef __cplusplus
}
#endif