From 914b96cc9a552dd020f27df1bd2ae7d073fd7b80 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 20 Dec 2019 22:13:23 +0100 Subject: vt: use break, not continue --- vt.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/vt.c b/vt.c index 84a20d44..387819fe 100644 --- a/vt.c +++ b/vt.c @@ -1100,24 +1100,24 @@ vt_from_slave(struct terminal *term, const uint8_t *data, size_t len) ; for (size_t i = 0; i < len; i++) { switch (current_state) { - case STATE_GROUND: current_state = state_ground_switch(term, data[i]); continue; - case STATE_ESCAPE: current_state = state_escape_switch(term, data[i]); continue; - case STATE_ESCAPE_INTERMEDIATE: current_state = state_escape_intermediate_switch(term, data[i]); continue; - case STATE_CSI_ENTRY: current_state = state_csi_entry_switch(term, data[i]); continue; - case STATE_CSI_PARAM: current_state = state_csi_param_switch(term, data[i]); continue; - case STATE_CSI_INTERMEDIATE: current_state = state_csi_intermediate_switch(term, data[i]); continue; - case STATE_CSI_IGNORE: current_state = state_csi_ignore_switch(term, data[i]); continue; - case STATE_OSC_STRING: current_state = state_osc_string_switch(term, data[i]); continue; - case STATE_DCS_ENTRY: current_state = state_dcs_entry_switch(term, data[i]); continue; - case STATE_DCS_PARAM: current_state = state_dcs_param_switch(term, data[i]); continue; - case STATE_DCS_INTERMEDIATE: current_state = state_dcs_intermediate_switch(term, data[i]); continue; - case STATE_DCS_IGNORE: current_state = state_dcs_ignore_switch(term, data[i]); continue; - case STATE_DCS_PASSTHROUGH: current_state = state_dcs_passthrough_switch(term, data[i]); continue; - case STATE_SOS_PM_APC_STRING: current_state = state_sos_pm_apc_string_switch(term, data[i]); continue; - - case STATE_UTF8_COLLECT_1: current_state = state_utf8_collect_1_switch(term, data[i]); continue; - case STATE_UTF8_COLLECT_2: current_state = state_utf8_collect_2_switch(term, data[i]); continue; - case STATE_UTF8_COLLECT_3: current_state = state_utf8_collect_3_switch(term, data[i]); continue; + case STATE_GROUND: current_state = state_ground_switch(term, data[i]); break; + case STATE_ESCAPE: current_state = state_escape_switch(term, data[i]); break; + case STATE_ESCAPE_INTERMEDIATE: current_state = state_escape_intermediate_switch(term, data[i]); break; + case STATE_CSI_ENTRY: current_state = state_csi_entry_switch(term, data[i]); break; + case STATE_CSI_PARAM: current_state = state_csi_param_switch(term, data[i]); break; + case STATE_CSI_INTERMEDIATE: current_state = state_csi_intermediate_switch(term, data[i]); break; + case STATE_CSI_IGNORE: current_state = state_csi_ignore_switch(term, data[i]); break; + case STATE_OSC_STRING: current_state = state_osc_string_switch(term, data[i]); break; + case STATE_DCS_ENTRY: current_state = state_dcs_entry_switch(term, data[i]); break; + case STATE_DCS_PARAM: current_state = state_dcs_param_switch(term, data[i]); break; + case STATE_DCS_INTERMEDIATE: current_state = state_dcs_intermediate_switch(term, data[i]); break; + case STATE_DCS_IGNORE: current_state = state_dcs_ignore_switch(term, data[i]); break; + case STATE_DCS_PASSTHROUGH: current_state = state_dcs_passthrough_switch(term, data[i]); break; + case STATE_SOS_PM_APC_STRING: current_state = state_sos_pm_apc_string_switch(term, data[i]); break; + + case STATE_UTF8_COLLECT_1: current_state = state_utf8_collect_1_switch(term, data[i]); break; + case STATE_UTF8_COLLECT_2: current_state = state_utf8_collect_2_switch(term, data[i]); break; + case STATE_UTF8_COLLECT_3: current_state = state_utf8_collect_3_switch(term, data[i]); break; } } -- cgit v1.3