aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-09-25 18:04:11 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-09-25 18:04:11 -0700
commitcd4fa518b86ddfb3e946fa4dd69e9e32a58ef81e (patch)
tree8d0a45f9101c833c6f5442557534714bea381b46 /common.h
parent316d7004a3d4f6905f36301b6d5c9ebd934f11fa (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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/common.h b/common.h
index 832883cd..7932c870 100644
--- a/common.h
+++ b/common.h
@@ -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