{
const char *cmd;
unsigned int i = 0;
-
+
for (i=0 ; i<sizeof(cmdline_vt100_commands)/sizeof(const char *) ; i++) {
cmd = *(cmdline_vt100_commands + i);
goto match_command;
}
break;
-
+
default:
vt->bufpos = 0;
break;
}
return -2;
-
+
match_command:
return match_command(vt->buf, size);
}