2 Unix SMB/Netbios implementation.
9 extern char *dos_char_map
;
10 extern char *upper_char_map
;
11 extern char *lower_char_map
;
37 #define toupper(c) (upper_char_map[(c&0xff)] & 0xff)
38 #define tolower(c) (lower_char_map[(c&0xff)] & 0xff)
39 #define isupper(c) ((c&0xff) != tolower(c&0xff))
40 #define islower(c) ((c&0xff) != toupper(c&0xff))
41 #define isdoschar(c) (dos_char_map[(c&0xff)] != 0)
42 #define isspace(c) ((c)==' ' || (c) == '\t')
44 /* this is used to determine if a character is safe to use in
45 something that may be put on a command line */
46 #define issafe(c) (isalnum((c&0xff)) || strchr("-._",c))
47 #endif /* !CHARSET_C */
49 /* Dynamic codepage files defines. */
51 /* Version id for dynamically loadable codepage files. */
52 #define CODEPAGE_FILE_VERSION_ID 0x1
53 /* Version 1 codepage file header size. */
54 #define CODEPAGE_HEADER_SIZE 8
55 /* Offsets for codepage file header entries. */
56 #define CODEPAGE_VERSION_OFFSET 0
57 #define CODEPAGE_CLIENT_CODEPAGE_OFFSET 2
58 #define CODEPAGE_LENGTH_OFFSET 4