mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Change WCHAR_END to use WCHAR_MAX instead of hard-coding a value.
darcs-hash:20051004144745-35ec8-4e638c4bc56f613ac7ecd9d00e859d3d213cde66.gz
This commit is contained in:
@@ -8,17 +8,11 @@ Header file for the low level input library
|
|||||||
|
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
/**
|
#define WCHAR_END (WCHAR_MAX + (unsigned long)1)
|
||||||
Hopefully, the biggest value that a wchar_t can have. UCS4 is a
|
|
||||||
31-bit character set, we use the upper half for special key
|
|
||||||
sequences. On systems where wchar_t is not a 31 (or less) bit character set
|
|
||||||
in a 32 (or more) bit type this will fail horribly.
|
|
||||||
*/
|
|
||||||
#define WCHAR_END 0x80000000
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
R_NULL = WCHAR_END + 1
|
R_NULL = WCHAR_END + (unsigned long)1
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user