pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added viewer to main program - display dummy text for testing
[smdp.git]
/
tmp.c
diff --git
a/tmp.c
b/tmp.c
index
8fbfa0d
..
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");
@@
-59,15
+60,17
@@
int main(int argc, char *argv[]) {
}
// load deck object from input
}
// load deck object from input
- deck_t *d
oc
;
- d
oc
= markdown_load(input);
+ deck_t *d
eck
;
+ d
eck
= markdown_load(input);
//TODO close file
if(debug > 0) {
//TODO close file
if(debug > 0) {
- markdown_debug(d
oc
, debug);
+ markdown_debug(d
eck
, debug);
}
}
+ ncurses_display(deck, 0, 0);
+
return(EXIT_SUCCESS);
}
return(EXIT_SUCCESS);
}