Lines Matching refs:cmd
211 static void phpdbg_line_init(char *cmd, struct phpdbg_init_state *state) { in phpdbg_line_init() argument
212 size_t cmd_len = strlen(cmd); in phpdbg_line_init()
216 while (cmd_len > 0L && isspace(cmd[cmd_len-1])) { in phpdbg_line_init()
220 cmd[cmd_len] = '\0'; in phpdbg_line_init()
222 if (*cmd && cmd_len > 0L && cmd[0] != '#') { in phpdbg_line_init()
224 if (memcmp(cmd, "<:", sizeof("<:")-1) == SUCCESS) { in phpdbg_line_init()
228 if (memcmp(cmd, ":>", sizeof(":>")-1) == SUCCESS) { in phpdbg_line_init()
247 memcpy(&state->code[state->code_len], cmd, cmd_len); in phpdbg_line_init()
255 char *input = phpdbg_read_input(cmd); in phpdbg_line_init()
314 char cmd[PHPDBG_MAX_CMD]; in phpdbg_try_file_init() local
319 while (fgets(cmd, PHPDBG_MAX_CMD, fp) != NULL) { in phpdbg_try_file_init()
320 phpdbg_line_init(cmd, &state); in phpdbg_try_file_init()