Lines Matching full:scratch
53 * in scratch->ptr1 and the new value is allocated and copied.
63 ctx->scratch->ptr1 = *valp; in string_save()
66 *valp = ctx->scratch->ptr1; in string_save()
82 free(ctx->scratch->ptr1); in string_commit()
92 *valp = ctx->scratch->ptr1; in string_rollback()
101 free(ctx->scratch->ptr1); in string_free()
155 * Save the old IP address in scratch->int1 and set the new one.
160 ctx->scratch->int1 = (valp[0] << 24) | (valp[1] << 16) | (valp[2] << 8) in ip_save()
177 valp[0] = ctx->scratch->int1 >> 24; in ip_rollback()
178 valp[1] = ctx->scratch->int1 >> 16; in ip_rollback()
179 valp[2] = ctx->scratch->int1 >> 8; in ip_rollback()
180 valp[3] = ctx->scratch->int1; in ip_rollback()
208 * Save the old value in a fresh allocated oid pointed to by scratch->ptr1.
214 if ((ctx->scratch->ptr1 = malloc(sizeof(struct asn_oid))) == NULL) in oid_save()
216 *(struct asn_oid *)ctx->scratch->ptr1 = *oid; in oid_save()
225 *oid = *(struct asn_oid *)ctx->scratch->ptr1; in oid_rollback()
226 free(ctx->scratch->ptr1); in oid_rollback()
232 free(ctx->scratch->ptr1); in oid_commit()