Lines Matching refs:line
43 static const char *unslashquote(const char *line, char *param);
90 char *line; in parseconfig() local
104 line = curlx_dyn_ptr(&buf); in parseconfig()
105 if(!line) { in parseconfig()
111 while(*line && ISSPACE(*line)) in parseconfig()
112 line++; in parseconfig()
114 switch(*line) { in parseconfig()
126 option = line; in parseconfig()
131 while(*line && !ISSPACE(*line) && !ISSEP(*line, dashed_option)) in parseconfig()
132 line++; in parseconfig()
135 if(*line) in parseconfig()
136 *line++ = '\0'; /* null-terminate, we have a local copy of the data */ in parseconfig()
143 while(*line && (ISSPACE(*line) || ISSEP(*line, dashed_option))) in parseconfig()
144 line++; in parseconfig()
147 if(*line == '\"') { in parseconfig()
149 line++; in parseconfig()
150 param = malloc(strlen(line) + 1); /* parameter */ in parseconfig()
157 (void)unslashquote(line, param); in parseconfig()
160 param = line; /* parameter starts here */ in parseconfig()
161 while(*line && !ISSPACE(*line)) in parseconfig()
162 line++; in parseconfig()
164 if(*line) { in parseconfig()
165 *line = '\0'; /* null-terminate */ in parseconfig()
168 line++; in parseconfig()
170 while(*line && ISSPACE(*line)) in parseconfig()
171 line++; in parseconfig()
173 switch(*line) { in parseconfig()
267 static const char *unslashquote(const char *line, char *param) in unslashquote() argument
269 while(*line && (*line != '\"')) { in unslashquote()
270 if(*line == '\\') { in unslashquote()
272 line++; in unslashquote()
275 switch(out = *line) { in unslashquote()
292 line++; in unslashquote()
295 *param++ = *line++; in unslashquote()
298 return line; in unslashquote()