nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
loader: `MModule::load` cause build_module_importation
[nit.git]
/
clib
/
gc_static_objects_list.c
diff --git
a/clib/gc_static_objects_list.c
b/clib/gc_static_objects_list.c
index
662967a
..
baa77c8
100644
(file)
--- a/
clib/gc_static_objects_list.c
+++ b/
clib/gc_static_objects_list.c
@@
-13,14
+13,15
@@
#include "gc_static_objects_list.h"
#include "gc_static_objects_list.h"
-void GC_List_Init (GC_List * list){
+void GC_List_Init(GC_List *list) {
list->top = NULL;
list->size = 0;
}
list->top = NULL;
list->size = 0;
}
-int GC_List_Push (GC_List * list, val_t *pointer){
+int GC_List_Push(GC_List *list, val_t *pointer) {
GC_static_object *newElement;
GC_static_object *newElement;
- if ((newElement = (GC_static_object *) malloc (sizeof (GC_static_object))) == NULL)
+ newElement = (GC_static_object*)malloc(sizeof(GC_static_object));
+ if (newElement == NULL)
return -1;
newElement->pointer = pointer;
return -1;
newElement->pointer = pointer;