Home
last modified time | relevance | path

Searched refs:hooks (Results 1 – 7 of 7) sorted by relevance

/petsc/src/mat/tests/
H A DcJSON.c171 static unsigned char *cJSON_strdup(const unsigned char *string, const internal_hooks *const hooks) in cJSON_strdup() argument
179 copy = (unsigned char *)hooks->allocate(length); in cJSON_strdup()
186 CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks *hooks) in cJSON_InitHooks() argument
188 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() argument
210 cJSON *node = (cJSON *)hooks->allocate(sizeof(cJSON)); in cJSON_New_Item()
246 internal_hooks hooks; member
359 internal_hooks hooks; member
[all …]
H A DcJSON.h140 CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks *hooks);
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdm.pxi288 cdef object hooks = Fine.get_attr('__coarsenhooks__')
289 assert hooks is not None and type(hooks) is list
290 for hook in hooks:
309 cdef object hooks = Fine.get_attr('__restricthooks__')
310 assert hooks is not None and type(hooks) is list
311 for hook in hooks:
H A DDM.pyx2454 Positional arguments for the hooks.
2456 Keyword arguments for the hooks.
H A DTS.pyx1711 residual evaluation or via hooks set using `setPreStep` or
/petsc/doc/developers/
H A Dcallbacks.md170 when the object is coarsened or refined. The hooks
200 `DM` and also inherits the hooks if it is refined or coarsened.
H A Dbuildsystem.md328 objects. It handles several types of interaction. First, it has hooks