Lines Matching refs:tok
129 char *tok = netrcbuffer; in parsenetrc() local
130 while(tok && !done) { in parsenetrc()
134 while(ISBLANK(*tok)) in parsenetrc()
135 tok++; in parsenetrc()
138 if((*tok == '\n') || (*tok == '\r')) in parsenetrc()
142 if(!*tok || (*tok == '\n')) in parsenetrc()
147 quoted = (*tok == '\"'); in parsenetrc()
149 tok_end = tok; in parsenetrc()
156 if(!len || Curl_dyn_addn(&token, tok, len)) { in parsenetrc()
204 tok = Curl_dyn_ptr(&token); in parsenetrc()
208 if(strcasecompare("macdef", tok)) in parsenetrc()
213 else if(strcasecompare("machine", tok)) { in parsenetrc()
225 else if(strcasecompare("default", tok)) { in parsenetrc()
231 if(!*tok) in parsenetrc()
235 if(strcasecompare(host, tok)) { in parsenetrc()
248 our_login = !Curl_timestrcmp(login, tok); in parsenetrc()
252 login = strdup(tok); in parsenetrc()
263 password = strdup(tok); in parsenetrc()
271 else if(strcasecompare("login", tok)) in parsenetrc()
273 else if(strcasecompare("password", tok)) in parsenetrc()
275 else if(strcasecompare("machine", tok)) { in parsenetrc()
284 else if(strcasecompare("default", tok)) { in parsenetrc()
297 tok = ++tok_end; in parsenetrc()
301 if(tok) in parsenetrc()
302 nl = strchr(tok, '\n'); in parsenetrc()