summaryrefslogtreecommitdiffstats
path: root/core/bstr.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-01-13 16:13:13 +0100
committerwm4 <wm4@nowhere>2013-01-13 17:32:39 +0100
commit20c9dfa61692d9ed741a91177d3fa185d73c02dd (patch)
tree8931b8f4036bbcc4941c8d372546b08dbd75e53b /core/bstr.h
parentcbdee50f29e2d1c44453f7b5ed5d67296f7a16dc (diff)
downloadmpv-20c9dfa61692d9ed741a91177d3fa185d73c02dd.tar.bz2
mpv-20c9dfa61692d9ed741a91177d3fa185d73c02dd.tar.xz
Replace strsep() uses
This function sucks and apparently is not very portable (at least on mingw, the configure check fails). Also remove the emulation of that function from osdep/strsep*, and remove the configure check.
Diffstat (limited to 'core/bstr.h')
-rw-r--r--core/bstr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/bstr.h b/core/bstr.h
index dfe6f3a556..bcac6cdba3 100644
--- a/core/bstr.h
+++ b/core/bstr.h
@@ -65,6 +65,7 @@ struct bstr *bstr_splitlines(void *talloc_ctx, struct bstr str);
struct bstr bstr_lstrip(struct bstr str);
struct bstr bstr_strip(struct bstr str);
struct bstr bstr_split(struct bstr str, const char *sep, struct bstr *rest);
+bool bstr_split_tok(bstr str, const char *tok, bstr *out_left, bstr *out_right);
struct bstr bstr_splice(struct bstr str, int start, int end);
long long bstrtoll(struct bstr str, struct bstr *rest, int base);
double bstrtod(struct bstr str, struct bstr *rest);