X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=src%2Fparser.c;h=ce3f7028b5345214f83778c2c6ed2fa494610b4a;hb=bdd26d4dde3b3d3180619cc81622081025ca6cb5;hp=84f3c87beb5fade2ca26dd6bb3a8d122e79915b5;hpb=74ee02092252d171c59425ee5ed18636a97bba13;p=smdp.git diff --git a/src/parser.c b/src/parser.c index 84f3c87..ce3f702 100644 --- a/src/parser.c +++ b/src/parser.c @@ -363,9 +363,6 @@ int markdown_analyse(cstring_t *text) { if(text->text[i] == ' ') { spaces++; - } else if(CHECK_BIT(bits, IS_CODE)) { - other++; - } 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) {