pinosaur
/
smdp.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #48 from ryanpcmcquen/patch-1
[smdp.git]
/
src
/
markdown.c
diff --git
a/src/markdown.c
b/src/markdown.c
index
2648dc1
..
d5dbe19
100644
(file)
--- a/
src/markdown.c
+++ b/
src/markdown.c
@@
-26,8
+26,8
@@
line_t *new_line() {
line_t *x = malloc(sizeof(line_t));
line_t *new_line() {
line_t *x = malloc(sizeof(line_t));
- x->text =
(void*)0
;
- x->prev = x->next =
(void*)0
;
+ x->text =
NULL
;
+ x->prev = x->next =
NULL
;
x->bits = x->length = x->offset = 0;
return x;
}
x->bits = x->length = x->offset = 0;
return x;
}
@@
-41,8
+41,8
@@
line_t *next_line(line_t *prev) {
slide_t *new_slide() {
slide_t *x = malloc(sizeof(slide_t));
slide_t *new_slide() {
slide_t *x = malloc(sizeof(slide_t));
- x->line =
(void*)0
;
- x->prev = x->next =
(void*)0
;
+ x->line =
NULL
;
+ x->prev = x->next =
NULL
;
x->lines = 0;
return x;
}
x->lines = 0;
return x;
}
@@
-56,8
+56,8
@@
slide_t *next_slide(slide_t *prev) {
deck_t *new_deck() {
deck_t *x = malloc(sizeof(deck_t));
deck_t *new_deck() {
deck_t *x = malloc(sizeof(deck_t));
- x->header =
(void*)0
;
- x->slide =
(void*)0
;
+ x->header =
NULL
;
+ x->slide =
new_slide()
;
x->slides = x->headers = 0;
return x;
}
x->slides = x->headers = 0;
return x;
}