Lines Matching refs:state
659 /* states for the state-machine algorithm in magic_rsl_to_request() */
678 rsl_states state;
690 state = rsl_leading_space;
699 /* process whitespace actions for each state */
700 if (state == rsl_leading_space) {
701 /* eat whitespace in this state */
704 else if (state == rsl_type) {
708 else if (state == rsl_subtype) {
710 state++;
713 else if (state == rsl_separator) {
714 /* eat whitespace in this state */
717 else if (state == rsl_encoding) {
727 MODNAME ": bad state %d (ws)", state);
732 else if (state == rsl_type &&
734 /* copy the char and go to rsl_subtype state */
736 state++;
739 /* process non-space actions for each state */
740 if (state == rsl_leading_space) {
742 state++;
748 else if (state == rsl_type ||
749 state == rsl_subtype) {
754 else if (state == rsl_separator) {
756 state++;
762 else if (state == rsl_encoding) {
771 MODNAME ": bad state %d (ns)", state);
780 /* if we ended prior to state rsl_subtype, we had incomplete info */
781 if (state != rsl_subtype && state != rsl_separator &&
782 state != rsl_encoding) {
794 if (state == rsl_encoding) {
805 (state == rsl_encoding && !r->content_encoding)) {
807 MODNAME ": unexpected state %d; could be caused by bad "
809 state);