3eb9473e |
1 | /*++\r |
2 | \r |
3 | Copyright (c) 2004, Intel Corporation \r |
4 | All rights reserved. This program and the accompanying materials \r |
5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r |
7 | http://opensource.org/licenses/bsd-license.php \r |
8 | \r |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r |
11 | \r |
12 | Module Name:\r |
13 | \r |
14 | StrGather.h\r |
15 | \r |
16 | Abstract:\r |
17 | \r |
18 | Common defines and prototypes for StrGather.\r |
19 | \r |
20 | --*/\r |
21 | \r |
22 | #ifndef _STR_GATHER_H_\r |
23 | #define _STR_GATHER_H_\r |
24 | \r |
25 | #define MALLOC(size) malloc (size)\r |
26 | #define FREE(ptr) free (ptr)\r |
27 | \r |
28 | #define PROGRAM_NAME "StrGather"\r |
29 | \r |
30 | typedef CHAR16 WCHAR;\r |
31 | \r |
32 | #define UNICODE_TO_ASCII(w) (INT8) ((w) & 0xFF)\r |
33 | #define ASCII_TO_UNICODE(a) (WCHAR) ((UINT8) (a))\r |
34 | \r |
35 | #define UNICODE_HASH L'#'\r |
36 | #define UNICODE_BACKSLASH L'\\'\r |
37 | #define UNICODE_SLASH L'/'\r |
38 | #define UNICODE_EQUAL_SIGN L'='\r |
39 | #define UNICODE_PLUS_SIGN L'+'\r |
40 | \r |
41 | #define UNICODE_FILE_START 0xFEFF\r |
42 | #define UNICODE_CR 0x000D\r |
43 | #define UNICODE_LF 0x000A\r |
44 | #define UNICODE_NULL 0x0000\r |
45 | #define UNICODE_SPACE L' '\r |
46 | #define UNICODE_SLASH L'/'\r |
47 | #define UNICODE_DOUBLE_QUOTE L'"'\r |
48 | #define UNICODE_Z L'Z'\r |
49 | #define UNICODE_z L'z'\r |
50 | #define UNICODE_A L'A'\r |
51 | #define UNICODE_a L'a'\r |
52 | #define UNICODE_F L'F'\r |
53 | #define UNICODE_f L'f'\r |
54 | #define UNICODE_UNDERSCORE L'_'\r |
55 | #define UNICODE_0 L'0'\r |
56 | #define UNICODE_9 L'9'\r |
57 | #define UNICODE_TAB L'\t'\r |
58 | #define UNICODE_NBR_STRING L"\\nbr"\r |
59 | #define UNICODE_BR_STRING L"\\br"\r |
60 | #define UNICODE_WIDE_STRING L"\\wide"\r |
61 | #define UNICODE_NARROW_STRING L"\\narrow"\r |
62 | \r |
63 | //\r |
64 | // This is the length of a valid string identifier\r |
65 | //\r |
66 | #define LANGUAGE_IDENTIFIER_NAME_LEN 3\r |
67 | \r |
68 | typedef struct _TEXT_STRING_LIST {\r |
69 | struct _TEXT_STRING_LIST *Next;\r |
70 | UINT8 *Str;\r |
71 | } TEXT_STRING_LIST;\r |
72 | \r |
73 | typedef struct _WCHAR_STRING_LIST {\r |
74 | struct _WCHAR_STRING_LIST *Next;\r |
75 | WCHAR *Str;\r |
76 | } WCHAR_STRING_LIST;\r |
77 | \r |
78 | typedef struct _WCHAR_MATCHING_STRING_LIST {\r |
79 | struct _WCHAR_MATCHING_STRING_LIST *Next;\r |
80 | WCHAR *Str1;\r |
81 | WCHAR *Str2;\r |
82 | } WCHAR_MATCHING_STRING_LIST;\r |
83 | \r |
84 | #endif // #ifndef _STR_GATHER_H_\r |