pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some ncurses tests
[smdp.git]
/
include
/
markdown.h
diff --git
a/include/markdown.h
b/include/markdown.h
index
4d5105c
..
b26765e
100644
(file)
--- a/
include/markdown.h
+++ b/
include/markdown.h
@@
-7,20
+7,15
@@
*/
#include "cstring.h"
*/
#include "cstring.h"
-
-#define SET_BIT(var, pos) ((var) |= (1<<(pos)))
-#define CLEAR_BIT(var, pos) ((var) &= (~(1<<(pos))))
-#define TOGGLE_BIT(var, pos) ((var) ^= (1<<(pos)))
-#define CHECK_BIT(var, pos) ((var) & (1<<(pos)))
+#include "bitops.h"
enum line_bitmask {
enum line_bitmask {
- IS_H
EADER
,
- IS_H
EADER
2,
+ IS_H
1
,
+ IS_H2,
IS_QUOTE,
IS_CODE,
IS_QUOTE,
IS_CODE,
- IS_LIST,
- IS_NUMLIST,
- IS_HR
+ IS_HR,
+ IS_EMPTY
};
typedef struct _line_t {
};
typedef struct _line_t {
@@
-47,9
+42,5
@@
line_t *next_line(line_t *prev);
page_t *new_page();
page_t *next_page(page_t *prev);
document_t *new_document();
page_t *new_page();
page_t *next_page(page_t *prev);
document_t *new_document();
-int is_utf8(char ch);
-int next_nonblank(cstring_t *text, int i);
-int next_blank(cstring_t *text, int i);
-document_t *markdown_load(FILE *input);
#endif // !defined( MARKDOWN_H )
#endif // !defined( MARKDOWN_H )