From: FreeBirdLjj Date: Sun, 28 Sep 2014 12:18:18 +0000 (+0800) Subject: Add sublime Text 3 project settings. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=a10fcae3cba4f58550b24b0029f3932615dadbc3;p=smdp.git Add sublime Text 3 project settings. --- diff --git a/Makefile b/Makefile index 5801f84..7f17a1b 100644 --- a/Makefile +++ b/Makefile @@ -57,4 +57,3 @@ uninstall: $(RM) $(PREFIX)$(DESTDIR)/$(TARGET) .PHONY: all clean install src uninstall - diff --git a/mdp.sublime-project b/mdp.sublime-project new file mode 100644 index 0000000..17711a0 --- /dev/null +++ b/mdp.sublime-project @@ -0,0 +1,15 @@ +{ + "settings": + { + "tab_size": 4, + "translate_tabs_to_spaces": true, + "use_tab_stops": false, + } + ,"folders": + [ + { + "follow_symlinks": true, + "path": "." + } + ] +} diff --git a/src/cstack.c b/src/cstack.c index aafb95f..0043b5c 100644 --- a/src/cstack.c +++ b/src/cstack.c @@ -56,12 +56,11 @@ int cstack_top(cstack_t *self, char c) { return 0; } -int cstack_empty(cstack_t *self) { - return self->head == -1; +int cstack_empty(cstack_t *self) { + return self->head == -1; } void cstack_delete(cstack_t *self) { free(self->content); free(self); } - diff --git a/src/cstring.c b/src/cstring.c index 1939572..59c549c 100644 --- a/src/cstring.c +++ b/src/cstring.c @@ -65,4 +65,3 @@ void cstring_delete(cstring_t *self) { free(self->text); free(self); } - diff --git a/src/main.c b/src/main.c index c94330a..ef86cdb 100644 --- a/src/main.c +++ b/src/main.c @@ -125,4 +125,3 @@ int main(int argc, char *argv[]) { return(EXIT_SUCCESS); } - diff --git a/src/markdown.c b/src/markdown.c index 6e7d15f..2648dc1 100644 --- a/src/markdown.c +++ b/src/markdown.c @@ -61,4 +61,3 @@ deck_t *new_deck() { x->slides = x->headers = 0; return x; } - diff --git a/src/parser.c b/src/parser.c index c8120cd..7a54986 100644 --- a/src/parser.c +++ b/src/parser.c @@ -266,7 +266,7 @@ deck_t *markdown_load(FILE *input) { } tmp = tmp->next; } - + for(tmp = line; tmp != list_last_level_1; tmp = tmp->next) { SET_BIT(tmp->bits, IS_UNORDERED_LIST_1); } @@ -337,12 +337,12 @@ int markdown_analyse(cstring_t *text) { case 3: SET_BIT(bits, IS_UNORDERED_LIST_3); break; default: break; } - + break; } } } - + if(!CHECK_BIT(bits, IS_UNORDERED_LIST_1) && !CHECK_BIT(bits, IS_UNORDERED_LIST_2) && !CHECK_BIT(bits, IS_UNORDERED_LIST_3)) { @@ -518,4 +518,3 @@ int next_blank(cstring_t *text, int i) { int next_word(cstring_t *text, int i) { return next_nonblank(text, next_blank(text, i)); } -