pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added CREDITS
[smdp.git]
/
tmp.c
diff --git
a/tmp.c
b/tmp.c
index
7e8589e
..
a806ff4
100644
(file)
--- a/
tmp.c
+++ b/
tmp.c
@@
-5,6
+5,7
@@
#include <string.h>
#include "include/parser.h"
#include <string.h>
#include "include/parser.h"
+#include "include/viewer.h"
void usage() {
fprintf(stderr, "Usage: tmp [OPTION]... [FILE]\n");
void usage() {
fprintf(stderr, "Usage: tmp [OPTION]... [FILE]\n");
@@
-58,12
+59,18
@@
int main(int argc, char *argv[]) {
input = stdin;
}
input = stdin;
}
- // load document object from input
- document_t *doc;
- doc = markdown_load(input);
+ // load deck object from input
+ deck_t *deck;
+ deck = markdown_load(input);
+
+ //TODO close file
if(debug > 0) {
if(debug > 0) {
- markdown_debug(d
oc
, debug);
+ markdown_debug(d
eck
, debug);
}
}
+
+ ncurses_display(deck, 0, 0);
+
+ return(EXIT_SUCCESS);
}
}