Lines Matching refs:newform
814 struct FormData *newform = malloc(sizeof(struct FormData)); in AddFormData() local
815 if(!newform) in AddFormData()
817 newform->next = NULL; in AddFormData()
824 newform->line = malloc(length+1); in AddFormData()
825 if(!newform->line) { in AddFormData()
826 free(newform); in AddFormData()
829 memcpy(newform->line, line, length); in AddFormData()
830 newform->length = length; in AddFormData()
831 newform->line[length]=0; /* zero terminate for easier debugging */ in AddFormData()
836 newform->line = (char *)line; in AddFormData()
838 newform->type = type; in AddFormData()
841 (*formp)->next = newform; in AddFormData()
842 *formp = newform; in AddFormData()
845 *formp = newform; in AddFormData()
855 if(!strequal("-", newform->line)) { in AddFormData()
857 if(!stat(newform->line, &file) && !S_ISDIR(file.st_mode)) in AddFormData()
858 *size += filesize(newform->line, file); in AddFormData()