cosmetic touches

This commit is contained in:
Loic Nageleisen 2013-02-01 21:53:33 +01:00
parent 9916ebe0bc
commit 3b55005f00

8
main.c
View file

@ -108,12 +108,12 @@ void Post_dealloc(Post *self) {
Post *Post_alloc() { Post *Post_alloc() {
Post *new = malloc(sizeof(Post)); Post *new = malloc(sizeof(Post));
new->author = malloc(255); new->author = malloc(255);
new->body = malloc(2048); new->body = malloc(2048);
new->init = Block_copy( ^ { Post_init(new); }); new->init = Block_copy( ^ { Post_init(new); });
new->printf = Block_copy( ^ { Post_printf(new); }); new->printf = Block_copy( ^ { Post_printf(new); });
new->dealloc = Block_copy( ^ { Post_dealloc(new); }); new->dealloc = Block_copy( ^ { Post_dealloc(new); });
return new; return new;