Displaying 1 result from an estimated 1 matches for "ap_loc".
Did you mean:
app_loc
2006 Apr 01
0
sftp tab completion patch (First release - NOT FOR INCLUDING YET)
...; strlen(tmp) > strlen(file)) {
+ if (el_insertstr(el, tmp + strlen(file)) == -1)
+ fatal("el_insertstr failed.");
+ xfree(tmp);
+ }
+ return (g.gl_matchc);
+}
+
+unsigned char
+complete(EditLine *el, int ch)
+{
+ const LineInfo *lf;
+ size_t len, pos;
+ char *line;
+ int argc = 0, ap_loc = 0, ap_cur = 0;
+ #define MAXARG 99
+ char **ap, *argv[MAXARG];
+
+ ch = ch; /* not used */
+ lf = el_line(el);
+ len = lf->lastchar - lf->buffer + 1;
+ line = (char *)malloc(len);
+ strlcpy(line, lf->buffer, len);
+ pos = len - (lf->lastchar - lf->cursor);
+
+ /* bui...