mirror of
https://github.com/lloeki/cblocks-clobj.git
synced 2025-12-06 02:34:40 +01:00
cosmetic touches
This commit is contained in:
parent
9916ebe0bc
commit
3b55005f00
1 changed files with 4 additions and 4 deletions
8
main.c
8
main.c
|
|
@ -108,12 +108,12 @@ void Post_dealloc(Post *self) {
|
|||
|
||||
|
||||
Post *Post_alloc() {
|
||||
Post *new = malloc(sizeof(Post));
|
||||
Post *new = malloc(sizeof(Post));
|
||||
new->author = malloc(255);
|
||||
new->body = malloc(2048);
|
||||
new->body = malloc(2048);
|
||||
|
||||
new->init = Block_copy( ^ { Post_init(new); });
|
||||
new->printf = Block_copy( ^ { Post_printf(new); });
|
||||
new->init = Block_copy( ^ { Post_init(new); });
|
||||
new->printf = Block_copy( ^ { Post_printf(new); });
|
||||
new->dealloc = Block_copy( ^ { Post_dealloc(new); });
|
||||
|
||||
return new;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue