Mercurial > audlegacy-plugins
comparison src/stdio/stdio.c @ 2050:2ffc6a69fcd1
string API calls -> vtable
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sat, 13 Oct 2007 19:55:04 -0500 |
parents | 6e2070ea35e7 |
children | bd3a24b39058 |
comparison
equal
deleted
inserted
replaced
2049:9550e809dc12 | 2050:2ffc6a69fcd1 |
---|---|
35 gint realchar; | 35 gint realchar; |
36 | 36 |
37 if (!encoded_path) | 37 if (!encoded_path) |
38 return NULL; | 38 return NULL; |
39 | 39 |
40 if (!str_has_prefix_nocase(encoded_path, "file:")) | 40 if (!aud_str_has_prefix_nocase(encoded_path, "file:")) |
41 return NULL; | 41 return NULL; |
42 | 42 |
43 cur = encoded_path + 5; | 43 cur = encoded_path + 5; |
44 | 44 |
45 if (str_has_prefix_nocase(cur, "//localhost")) | 45 if (aud_str_has_prefix_nocase(cur, "//localhost")) |
46 cur += 11; | 46 cur += 11; |
47 | 47 |
48 if (*cur == '/') | 48 if (*cur == '/') |
49 while (cur[1] == '/') | 49 while (cur[1] == '/') |
50 cur++; | 50 cur++; |