Lines Matching refs:line
44 static const char *unslashquote(const char *line, char *param);
122 char *line;
136 line = curlx_dyn_ptr(&buf);
137 if(!line) {
142 /* line with # in the first non-blank column is a comment! */
143 while(*line && ISSPACE(*line))
144 line++;
146 switch(*line) {
158 option = line;
163 while(*line && !ISSPACE(*line) && !ISSEP(*line, dashed_option))
164 line++;
167 if(*line)
168 *line++ = '\0'; /* null-terminate, we have a local copy of the data */
175 while(*line && (ISSPACE(*line) || ISSEP(*line, dashed_option)))
176 line++;
179 if(*line == '\"') {
181 line++;
182 param = malloc(strlen(line) + 1); /* parameter */
189 (void)unslashquote(line, param);
192 param = line; /* parameter starts here */
193 while(*line && !ISSPACE(*line))
194 line++;
196 if(*line) {
197 *line = '\0'; /* null-terminate */
200 line++;
202 while(*line && ISSPACE(*line))
203 line++;
205 switch(*line) {
291 * Copies the string from line to the buffer at param, unquoting
297 static const char *unslashquote(const char *line, char *param)
299 while(*line && (*line != '\"')) {
300 if(*line == '\\') {
302 line++;
305 switch(out = *line) {
322 line++;
325 *param++ = *line++;
328 return line;
332 * Reads a line from the given file, ensuring is NUL terminated.
343 /* only if there's data in the line, return TRUE */