Lines Matching refs:proto
309 static size_t protoset_index(const char * const *protoset, const char *proto) in protoset_index() argument
313 DEBUGASSERT(proto == proto_token(proto)); /* Ensure it is tokenized. */ in protoset_index()
316 if(proto == *p) in protoset_index()
322 static void protoset_set(const char **protoset, const char *proto) in protoset_set() argument
324 if(proto) { in protoset_set()
325 size_t n = protoset_index(protoset, proto); in protoset_set()
329 protoset[n] = proto; in protoset_set()
336 static void protoset_clear(const char **protoset, const char *proto) in protoset_clear() argument
338 if(proto) { in protoset_clear()
339 size_t n = protoset_index(protoset, proto); in protoset_clear()
371 size_t proto; in proto2num() local
467 for(proto = 0; protoset[proto] && !result; proto++) in proto2num()
468 result = curlx_dyn_addf(&obuf, "%s,", protoset[proto]); in proto2num()