Lines Matching refs:hp
16 PetscErrorCode PetscOptionsHelpPrintedDestroy(PetscOptionsHelpPrinted *hp) in PetscOptionsHelpPrintedDestroy() argument
19 if (!*hp) PetscFunctionReturn(PETSC_SUCCESS); in PetscOptionsHelpPrintedDestroy()
20 kh_destroy(HTPrinted, (*hp)->printed); in PetscOptionsHelpPrintedDestroy()
21 PetscCall(PetscSegBufferDestroy(&(*hp)->strings)); in PetscOptionsHelpPrintedDestroy()
22 PetscCall(PetscFree(*hp)); in PetscOptionsHelpPrintedDestroy()
39 PetscErrorCode PetscOptionsHelpPrintedCreate(PetscOptionsHelpPrinted *hp) in PetscOptionsHelpPrintedCreate() argument
42 PetscCall(PetscNew(hp)); in PetscOptionsHelpPrintedCreate()
43 (*hp)->printed = kh_init(HTPrinted); in PetscOptionsHelpPrintedCreate()
44 PetscCall(PetscSegBufferCreate(sizeof(char), 10000, &(*hp)->strings)); in PetscOptionsHelpPrintedCreate()
65 PetscErrorCode PetscOptionsHelpPrintedCheck(PetscOptionsHelpPrinted hp, const char *pre, const char… in PetscOptionsHelpPrintedCheck() argument
82 PetscCall(PetscSegBufferGet(hp->strings, lboth, &both)); in PetscOptionsHelpPrintedCheck()
85 kh_put(HTPrinted, hp->printed, both, &newitem); in PetscOptionsHelpPrintedCheck()
86 if (!newitem) PetscCall(PetscSegBufferUnuse(hp->strings, lboth)); in PetscOptionsHelpPrintedCheck()