aboutsummaryrefslogtreecommitdiffhomepage
path: root/fallback.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-15 10:45:18 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-15 10:45:18 -0700
commitea1bfd715e0765db680f804d2450d44e4028a519 (patch)
tree3f7702dcc5c65cbd1fff44191668dddfb231d062 /fallback.h
parentb1281c3fb904c12b1710045c8084bc521e80d7f9 (diff)
Set of changes to improve Unicode support with respect to combining characters.
Diffstat (limited to 'fallback.h')
-rw-r--r--fallback.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fallback.h b/fallback.h
index e4813fb2..7a1a9dc7 100644
--- a/fallback.h
+++ b/fallback.h
@@ -12,6 +12,10 @@
#include <sys/types.h>
#include <signal.h>
+/** fish's internal versions of wcwidth and wcswidth, which can use an internal implementation if the system one is busted. */
+int fish_wcwidth(wchar_t wc);
+int fish_wcswidth(const wchar_t *str, size_t n);
+
#ifndef WCHAR_MAX
/**
This _should_ be defined by wchar.h, but e.g. OpenBSD doesn't.