Add sublime Text 3 project settings.
authorFreeBirdLjj <ljj11011@mail.ustc.edu.cn>
Sun, 28 Sep 2014 12:18:18 +0000 (20:18 +0800)
committerFreeBirdLjj <ljj11011@mail.ustc.edu.cn>
Sun, 28 Sep 2014 12:18:18 +0000 (20:18 +0800)
Makefile
mdp.sublime-project [new file with mode: 0644]
src/cstack.c
src/cstring.c
src/main.c
src/markdown.c
src/parser.c

index 5801f84..7f17a1b 100644 (file)
--- 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 (file)
index 0000000..17711a0
--- /dev/null
@@ -0,0 +1,15 @@
+{
+       "settings":
+       {
+               "tab_size": 4,
+               "translate_tabs_to_spaces": true,
+               "use_tab_stops": false,
+       }
+       ,"folders":
+       [
+       {
+               "follow_symlinks": true,
+               "path": "."
+       }
+       ]
+}
index aafb95f..0043b5c 100644 (file)
@@ -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);
 }
-
index 1939572..59c549c 100644 (file)
@@ -65,4 +65,3 @@ void cstring_delete(cstring_t *self) {
     free(self->text);
     free(self);
 }
-
index c94330a..ef86cdb 100644 (file)
@@ -125,4 +125,3 @@ int main(int argc, char *argv[]) {
 
     return(EXIT_SUCCESS);
 }
-
index 6e7d15f..2648dc1 100644 (file)
@@ -61,4 +61,3 @@ deck_t *new_deck() {
     x->slides = x->headers = 0;
     return x;
 }
-
index c8120cd..7a54986 100644 (file)
@@ -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));
 }
-