X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fmarkdown.h;h=b338154120ab9077bd8cb5d1187960b4682f4056;hb=e51b855ccbe106c89063653e1f7e79b1a0a03887;hp=d1b81ac3ca5c03fac0efac8fd94c6964bbc1512c;hpb=5f369c826ac0ca4989892b3691f66d0ac73679f3;p=smdp.git diff --git a/include/markdown.h b/include/markdown.h index d1b81ac..b338154 100644 --- a/include/markdown.h +++ b/include/markdown.h @@ -3,7 +3,7 @@ /* * An implementation of markdown objects. - * Copyright (C) 2014 Michael Goehler + * Copyright (C) 2015 Michael Goehler * * This file is part of mdp. * @@ -32,6 +32,8 @@ * function: next_slide to extend a linked list of type slide by one element * function: new_line to initialize a new linked list of type line * function: next_line to extend a linked list of type line by one element + * function: free_line to free a line elements memory + * function: free_deck to free a deck's memory * */ @@ -51,6 +53,7 @@ enum line_bitmask { IS_UNORDERED_LIST_3, IS_UNORDERED_LIST_EXT, IS_CENTER, + IS_STOP, IS_EMPTY }; @@ -68,6 +71,7 @@ typedef struct _slide_t { struct _slide_t *prev; struct _slide_t *next; int lines; + int stop; } slide_t; typedef struct _deck_t { @@ -82,5 +86,7 @@ line_t *next_line(line_t *prev); slide_t *new_slide(); slide_t *next_slide(slide_t *prev); deck_t *new_deck(); +void free_line(line_t *l); +void free_deck(deck_t *); #endif // !defined( MARKDOWN_H )