-static void Cbuf_LinkCreate(cmd_state_t *cmd, llist_t *head, cbuf_cmd_t *existing, const char *text)
+static void Cbuf_LinkCreate(cmd_state_t *cmd, llist_t *head, cmd_input_t *existing, const char *text)
cbuf_t *cbuf = cmd->cbuf;
size_t totalsize = 0, newsize = 0;
cbuf_t *cbuf = cmd->cbuf;
size_t totalsize = 0, newsize = 0;
* FIXME: Upon reaching a terminator, we make a redundant
* call just to say "it's the end of the input stream".
*/
* FIXME: Upon reaching a terminator, we make a redundant
* call just to say "it's the end of the input stream".
*/
strlcpy(¤t->text[current->size], in, newsize + 1);
current->size += newsize;
}
strlcpy(¤t->text[current->size], in, newsize + 1);
current->size += newsize;
}
- Cbuf_LinkCreate(cmd, &llist, (List_IsEmpty(&cbuf->start) ? NULL : List_Container(*cbuf->start.prev, cbuf_cmd_t, list)), text);
+ Cbuf_LinkCreate(cmd, &llist, (List_IsEmpty(&cbuf->start) ? NULL : List_Container(*cbuf->start.prev, cmd_input_t, list)), text);
if(!List_IsEmpty(&llist))
List_Splice_Tail(&llist, &cbuf->start);
}
if(!List_IsEmpty(&llist))
List_Splice_Tail(&llist, &cbuf->start);
}
- Cbuf_LinkCreate(cmd, &llist, List_Container(*cbuf->start.next, cbuf_cmd_t, list), text);
+ Cbuf_LinkCreate(cmd, &llist, List_Container(*cbuf->start.next, cmd_input_t, list), text);
static qboolean Cmd_PreprocessString(cmd_state_t *cmd, const char *intext, char *outtext, unsigned maxoutlen, cmd_alias_t *alias );
void Cbuf_Execute (cbuf_t *cbuf)
{
static qboolean Cmd_PreprocessString(cmd_state_t *cmd, const char *intext, char *outtext, unsigned maxoutlen, cmd_alias_t *alias );
void Cbuf_Execute (cbuf_t *cbuf)
{
* commands down. This is necessary because commands (exec, alias)
* can insert data at the beginning of the text buffer
*/
* commands down. This is necessary because commands (exec, alias)
* can insert data at the beginning of the text buffer
*/