CTRACE(tfp, "endForm:    HTCurrentForm is missing!\n");
CTRACE((tfp, "endForm:    HTCurrentForm is missing!\n"));
PUBLIC void HText_endForm ARGS1(	HText *,	text){    if (HTFormFields == 1 && text && text->first_anchor) {	/*	 *  Support submission of a single text input field in	 *  the form via <return> instead of a submit button. - FM	 */	TextAnchor * a = text->first_anchor;	/*	 *  Go through list of anchors and get our input field. - FM	 */	while (a) {	    if (a->link_type == INPUT_ANCHOR &&		a->input_field->number == HTFormNumber &&		a->input_field->type == F_TEXT_TYPE) {		/*		 *  Got it.  Make it submitting. - FM		 */		a->input_field->submit_action = NULL;		StrAllocCopy(a->input_field->submit_action, HTFormAction);		if (HTFormEnctype != NULL)		    StrAllocCopy(a->input_field->submit_enctype,				 HTFormEnctype);		if (HTFormTitle != NULL)		    StrAllocCopy(a->input_field->submit_title, HTFormTitle);		a->input_field->submit_method = HTFormMethod;		a->input_field->type = F_TEXT_SUBMIT_TYPE;		if (HTFormDisabled)		    a->input_field->disabled = TRUE;		break;	    }	    if (a == text->last_anchor)		break;	    a = a->next;	}    }    /*     *  Append info on the current form to the HText object's list of     *  forms.     *  HText_beginInput call will have set some of the data in the     *  PerFormInfo structure (if there were any form fields at all),     *  we also fill in the ACCEPT-CHARSET data now (this could have     *  been done earlier). - kw     */    if (HTCurrentForm) {	if (HTFormDisabled)	    HTCurrentForm->disabled = TRUE;	HTCurrentForm->accept_cs = HTFormAcceptCharset;	HTFormAcceptCharset = NULL;	if (!text->forms)	    text->forms = HTList_new();	HTList_appendObject(text->forms, HTCurrentForm);	HTCurrentForm = NULL;    } else {	CTRACE(tfp, "endForm:    HTCurrentForm is missing!\n");    }    FREE(HTCurSelectGroup);    FREE(HTCurSelectGroupSize);    FREE(HTCurSelectedOptionValue);    FREE(HTFormAction);    FREE(HTFormEnctype);    FREE(HTFormTitle);    FREE(HTFormAcceptCharset);    HTFormFields = 0;    HTFormDisabled = FALSE;}