void MSC_free_request( gpre_req* request) { gpreGlob.requests = request->req_next; gpreGlob.cur_routine->act_object = (ref*) request->req_routine; MSC_free(request); }
void CMP_check( gpre_req* request, SSHORT min_reqd) { const int length = request->req_blr - request->req_base; if (!min_reqd && (length < request->req_length - 100)) return; const int n = ((length + min_reqd + 100) > request->req_length * 2) ? length + min_reqd + 100 : request->req_length * 2; UCHAR* const old = request->req_base; UCHAR* p = MSC_alloc(n); request->req_base = p; request->req_length = n; request->req_blr = request->req_base + length; memcpy(p, old, length); MSC_free(old); }