Lines Matching refs:current_form

264   FormInfo *first_form, *current_form, *form = NULL;  in FormAdd()  local
284 current_form = first_form; in FormAdd()
335 current_form->flags |= HTTPPOST_PTRNAME; /* fall through */ in FormAdd()
338 if(current_form->name) in FormAdd()
344 current_form->name = name; /* store for the moment */ in FormAdd()
350 if(current_form->namelength) in FormAdd()
353 current_form->namelength = in FormAdd()
361 current_form->flags |= HTTPPOST_PTRCONTENTS; /* fall through */ in FormAdd()
363 if(current_form->value) in FormAdd()
369 current_form->value = value; /* store for the moment */ in FormAdd()
375 if(current_form->contentslength) in FormAdd()
378 current_form->contentslength = in FormAdd()
384 if(current_form->flags & (HTTPPOST_PTRCONTENTS|HTTPPOST_READFILE)) in FormAdd()
390 current_form->value = strdup(filename); in FormAdd()
391 if(!current_form->value) in FormAdd()
394 current_form->flags |= HTTPPOST_READFILE; in FormAdd()
395 current_form->value_alloc = TRUE; in FormAdd()
409 if(current_form->value) { in FormAdd()
410 if(current_form->flags & HTTPPOST_FILENAME) { in FormAdd()
416 form = AddFormInfo(fname, NULL, current_form); in FormAdd()
423 current_form = form; in FormAdd()
436 current_form->value = strdup(filename); in FormAdd()
437 if(!current_form->value) in FormAdd()
440 current_form->flags |= HTTPPOST_FILENAME; in FormAdd()
441 current_form->value_alloc = TRUE; in FormAdd()
451 current_form->flags |= HTTPPOST_PTRBUFFER|HTTPPOST_BUFFER; in FormAdd()
452 if(current_form->buffer) in FormAdd()
458 current_form->buffer = buffer; /* store for the moment */ in FormAdd()
459 current_form->value = buffer; /* make it non-NULL to be accepted in FormAdd()
468 if(current_form->bufferlength) in FormAdd()
471 current_form->bufferlength = in FormAdd()
476 current_form->flags |= HTTPPOST_CALLBACK; in FormAdd()
477 if(current_form->userp) in FormAdd()
483 current_form->userp = userp; in FormAdd()
484 current_form->value = userp; /* this isn't strictly true but we in FormAdd()
498 if(current_form->contenttype) { in FormAdd()
499 if(current_form->flags & HTTPPOST_FILENAME) { in FormAdd()
505 form = AddFormInfo(NULL, type, current_form); in FormAdd()
512 current_form = form; in FormAdd()
525 current_form->contenttype = strdup(contenttype); in FormAdd()
526 if(!current_form->contenttype) in FormAdd()
529 current_form->contenttype_alloc = TRUE; in FormAdd()
544 if(current_form->contentheader) in FormAdd()
547 current_form->contentheader = list; in FormAdd()
556 if(current_form->showfilename) in FormAdd()
559 current_form->showfilename = strdup(filename); in FormAdd()
560 if(!current_form->showfilename) in FormAdd()
563 current_form->showfilename_alloc = TRUE; in FormAdd()