diff options
author | Kevin Ballard <kevin@sb.org> | 2014-09-25 18:04:11 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-25 18:04:11 -0700 |
commit | cd4fa518b86ddfb3e946fa4dd69e9e32a58ef81e (patch) | |
tree | 8d0a45f9101c833c6f5442557534714bea381b46 /common.h | |
parent | 316d7004a3d4f6905f36301b6d5c9ebd934f11fa (diff) |
Remove my_wcswidth() in favor of fish_wcswidth()
my_wcswidth() was just a wrapper around fish_wcswidth() already.
Instead, add two convenience overrides of fish_wcswidth() to common.h
that make it a drop-in replacement for my_wcswidth().
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -713,11 +713,13 @@ const wchar_t *wcsfuncname(const wchar_t *str); bool wcsvarchr(wchar_t chr); - /** - A wcswidth workalike. Fish uses this since the regular wcswidth seems flaky. + Convenience variants on fish_wcwswidth(). + + See fallback.h for the normal definitions. */ -int my_wcswidth(const wchar_t *c); +int fish_wcswidth(const wchar_t *str); +int fish_wcswidth(const wcstring& str); /** This functions returns the end of the quoted substring beginning at |