diff options
| author | Jari Aalto <jari.aalto@cante.net> | 2005-12-07 14:08:12 +0000 |
|---|---|---|
| committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:57 +0000 |
| commit | 95732b497d12c98613bb3c5db16b61f377501a59 (patch) | |
| tree | 5e1cdf79eb0407e09dca4c0ec29e11442c7d1d15 /include | |
| parent | eb87367179effbe5f430236db8259006d71438b7 (diff) | |
| download | android_external_bash-95732b497d12c98613bb3c5db16b61f377501a59.tar.gz android_external_bash-95732b497d12c98613bb3c5db16b61f377501a59.tar.bz2 android_external_bash-95732b497d12c98613bb3c5db16b61f377501a59.zip | |
Imported from ../bash-3.1.tar.gz.
Diffstat (limited to 'include')
| -rw-r--r-- | include/shmbutil.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/shmbutil.h b/include/shmbutil.h index 1139d50..f5f8b98 100644 --- a/include/shmbutil.h +++ b/include/shmbutil.h @@ -43,6 +43,9 @@ extern char *xstrchr __P((const char *, int)); #define MBSLEN(s) (((s) && (s)[0]) ? ((s)[1] ? mbstrlen (s) : 1) : 0) #define MB_STRLEN(s) ((MB_CUR_MAX > 1) ? MBSLEN (s) : STRLEN (s)) +#define MBLEN(s, n) ((MB_CUR_MAX > 1) ? mblen ((s), (n)) : 1) +#define MBRLEN(s, n, p) ((MB_CUR_MAX > 1) ? mbrlen ((s), (n), (p)) : 1) + #else /* !HANDLE_MULTIBYTE */ #undef MB_LEN_MAX @@ -61,6 +64,9 @@ extern char *xstrchr __P((const char *, int)); #define MB_STRLEN(s) (STRLEN(s)) +#define MBLEN(s, n) 1 +#define MBRLEN(s, n, p) 1 + #endif /* !HANDLE_MULTIBYTE */ /* Declare and initialize a multibyte state. Call must be terminated |
