Searched refs:hooks (Results 1 – 7 of 7) sorted by relevance
171 static unsigned char *cJSON_strdup(const unsigned char *string, const internal_hooks *const hooks) in cJSON_strdup() argument179 copy = (unsigned char *)hooks->allocate(length); in cJSON_strdup()186 CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks *hooks) in cJSON_InitHooks() argument188 if (hooks == NULL) { in cJSON_InitHooks()197 if (hooks->malloc_fn != NULL) global_hooks.allocate = hooks->malloc_fn; in cJSON_InitHooks()200 if (hooks->free_fn != NULL) global_hooks.deallocate = hooks->free_fn; in cJSON_InitHooks()208 static cJSON *cJSON_New_Item(const internal_hooks *const hooks) in cJSON_New_Item() argument210 cJSON *node = (cJSON *)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()246 internal_hooks hooks; member359 internal_hooks hooks; member[all …]
140 CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks *hooks);
288 cdef object hooks = Fine.get_attr('__coarsenhooks__')289 assert hooks is not None and type(hooks) is list290 for hook in hooks:309 cdef object hooks = Fine.get_attr('__restricthooks__')310 assert hooks is not None and type(hooks) is list311 for hook in hooks:
2454 Positional arguments for the hooks.2456 Keyword arguments for the hooks.
1711 residual evaluation or via hooks set using `setPreStep` or
170 when the object is coarsened or refined. The hooks200 `DM` and also inherits the hooks if it is refined or coarsened.
328 objects. It handles several types of interaction. First, it has hooks