* grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
* grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
This commit is contained in:
parent
8ee1101a97
commit
b4bf7c3b20
3 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
|
||||||
|
* grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
|
||||||
|
|
||||||
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
|
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
|
||||||
|
|
|
@ -52,6 +52,4 @@ abort (void)
|
||||||
grub_abort ();
|
grub_abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
#define MB_CUR_MAX 6
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -28,8 +28,6 @@ enum
|
||||||
WEOF = -1
|
WEOF = -1
|
||||||
};
|
};
|
||||||
|
|
||||||
#define MB_LEN_MAX 4
|
|
||||||
|
|
||||||
/* UCS-4. */
|
/* UCS-4. */
|
||||||
typedef grub_int32_t wchar_t;
|
typedef grub_int32_t wchar_t;
|
||||||
|
|
||||||
|
@ -38,6 +36,10 @@ typedef struct mbstate {
|
||||||
int count;
|
int count;
|
||||||
} mbstate_t;
|
} mbstate_t;
|
||||||
|
|
||||||
|
/* UTF-8. */
|
||||||
|
#define MB_CUR_MAX 4
|
||||||
|
#define MB_LEN_MAX 4
|
||||||
|
|
||||||
static inline size_t
|
static inline size_t
|
||||||
mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
|
mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue