Lines Matching refs:offs
637 _history_expand_command(const char *command, size_t offs, size_t cmdlen, in _history_expand_command() argument
653 if (strchr(":^*$", command[offs + 1])) { in _history_expand_command()
663 idx = (command[offs + 1] == ':')? 1:0; in _history_expand_command()
666 if (command[offs + 1] == '#') { in _history_expand_command()
668 if ((aptr = el_malloc((offs + 1) * sizeof(*aptr))) in _history_expand_command()
671 (void)strncpy(aptr, command, offs); in _history_expand_command()
672 aptr[offs] = '\0'; in _history_expand_command()
677 qchar = (offs > 0 && command[offs - 1] == '"')? '"':0; in _history_expand_command()
678 ptr = get_history_event(command + offs, &idx, qchar); in _history_expand_command()
680 has_mods = command[offs + (size_t)idx] == ':'; in _history_expand_command()
695 cmd = command + offs + idx + 1; in _history_expand_command()
735 command + offs + idx); in _history_expand_command()
746 if (*cmd == '\0' || ((size_t)(cmd - (command + offs)) >= cmdlen)) { in _history_expand_command()