on master help sign in
Avoid an isspace call
becbf15Neil Mitchell
hexml.c+1−1
@@ -270,7 +270,7 @@ char static inline get(document* d) { char c = peek(d); skip(d, 1); return c; }
270// Remove whitespace characters from the cursor while they are still whitespace
270// Remove whitespace characters from the cursor while they are still whitespace
271void static inline trim(document* d)
271void static inline trim(document* d)
272{
272{
273− while (isspace(peek(d)))
273+ while (is_space(peek(d)))
274 skip(d, 1);
274 skip(d, 1);
275}
275}
276
276