From 6b240196296cd029771810b6f2c8fc5b61529c56 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 6 Jun 2015 23:30:02 +0200 Subject: Factored out `S_find_first_nonspace` in `S_proces_line`. Added fields `offset`, `first_nonspace`, `indent`, and `blank` to `cmark_parser` struct. This just removes some repetition in the code. --- src/parser.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/parser.h') diff --git a/src/parser.h b/src/parser.h index cbccae3..ccdf84b 100644 --- a/src/parser.h +++ b/src/parser.h @@ -16,6 +16,10 @@ struct cmark_parser { struct cmark_node* root; struct cmark_node* current; int line_number; + int offset; + int first_nonspace; + int indent; + bool blank; cmark_strbuf *curline; int last_line_length; cmark_strbuf *linebuf; -- cgit v1.2.3