commit bash-20051123 snapshot
[platform/upstream/bash.git] / shmbutil.h.diff
1 *** ../bash-3.0/include/shmbutil.h      Mon Apr 19 09:59:42 2004
2 --- include/shmbutil.h  Thu Sep  2 15:20:47 2004
3 ***************
4 *** 32,35 ****
5 --- 32,37 ----
6   extern size_t xdupmbstowcs __P((wchar_t **, char ***, const char *));
7   
8 + extern size_t mbstrlen __P((const char *));
9
10   extern char *xstrchr __P((const char *, int));
11   
12 ***************
13 *** 39,42 ****
14 --- 41,47 ----
15   #endif
16   
17 + #define MBSLEN(s)     (((s) && (s)[0]) ? ((s)[1] ? mbstrlen (s) : 1) : 0)
18 + #define MB_STRLEN(s)  ((MB_CUR_MAX > 1) ? MBSLEN (s) : STRLEN (s))
19
20   #else /* !HANDLE_MULTIBYTE */
21   
22 ***************
23 *** 54,57 ****
24 --- 59,64 ----
25   #define MB_NULLWCH(x)         (0)
26   #endif
27
28 + #define MB_STRLEN(s)          (STRLEN(s))
29   
30   #endif /* !HANDLE_MULTIBYTE */