pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for bool type.
[smdp.git]
/
src
/
parser.c
diff --git
a/src/parser.c
b/src/parser.c
index
84f3c87
..
ce3f702
100644
(file)
--- a/
src/parser.c
+++ b/
src/parser.c
@@
-363,9
+363,6
@@
int markdown_analyse(cstring_t *text) {
if(text->text[i] == ' ') {
spaces++;
if(text->text[i] == ' ') {
spaces++;
- } else if(CHECK_BIT(bits, IS_CODE)) {
- other++;
-
} else {
switch(text->text[i]) {
case '=': equals++; break;
} else {
switch(text->text[i]) {
case '=': equals++; break;
@@
-481,8
+478,8
@@
void markdown_debug(deck_t *deck, int debug) {
}
}
}
}
-
int
is_utf8(char ch) {
- return (ch & 0x80);
+
bool
is_utf8(char ch) {
+ return (ch & 0x80)
!= 0x00
;
}
int length_utf8(char ch) {
}
int length_utf8(char ch) {