Lines Matching refs:line
1207 static sds *cliSplitArgs(char *line, int *argc) { in cliSplitArgs() argument
1208 if (config.eval_ldb && (strstr(line,"eval ") == line || in cliSplitArgs()
1209 strstr(line,"e ") == line)) in cliSplitArgs()
1213 int len = strlen(line); in cliSplitArgs()
1214 int elen = line[1] == ' ' ? 2 : 5; /* "e " or "eval "? */ in cliSplitArgs()
1215 argv[0] = sdsnewlen(line,elen-1); in cliSplitArgs()
1216 argv[1] = sdsnewlen(line+elen,len-elen); in cliSplitArgs()
1219 return sdssplitargs(line,argc); in cliSplitArgs()
1265 char *line; in repl() local
1286 while((line = linenoise(context ? config.prompt : "not connected> ")) != NULL) { in repl()
1287 if (line[0] != '\0') { in repl()
1288 argv = cliSplitArgs(line,&argc); in repl()
1289 if (history) linenoiseHistoryAdd(line); in repl()
1294 linenoiseFree(line); in repl()
1353 linenoiseFree(line); in repl()