pike.git/
src/
gc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-06-25
2014-06-25 15:05:20 by Martin Nilsson <nilsson@opera.com>
5f000bf2b47208bc8f4153a2e8485e8866658249 (
17
lines) (+
10
/-
7
)
[
Show
|
Annotate
]
Branch:
8.0
Fixed warnings.
3361:
return !(m->flags & GC_LIVE); }
+
#if 0
static void free_obj_arr(void *oa) { struct array *obj_arr = *((struct array **)oa);
3368:
if (obj_arr) free_array(obj_arr); free(oa); }
+
#endif
/*! @class MasterObject */
4415:
(visit_thing_fn *) (ptrdiff_t) -1, (visit_thing_fn *) (ptrdiff_t) -1, (visit_thing_fn *) (ptrdiff_t) -1,
-
&visit_array,
-
&visit_mapping,
-
&visit_multiset,
-
&visit_object,
+
(visit_thing_fn *)
&visit_array,
+
(visit_thing_fn *)
&visit_mapping,
+
(visit_thing_fn *)
&visit_multiset,
+
(visit_thing_fn *)
&visit_object,
/* visit_function must be called with a whole svalue, so it's not * included here. */ (visit_thing_fn *) (ptrdiff_t) -1,
-
&visit_program,
-
&visit_string,
-
&visit_type,
+
(visit_thing_fn *)
&visit_program,
+
(visit_thing_fn *)
&visit_string,
+
(visit_thing_fn *)
&visit_type,
}; PMOD_EXPORT TYPE_T type_from_visit_fn (visit_thing_fn *fn)