Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- llava_next/include/default.h +27 -0
- llava_next/include/ks_names.h +1712 -0
- llava_next/include/tclThread.h +36 -0
- llava_next/include/tdbc.h +80 -0
- llava_next/include/term_entry.h +239 -0
- llava_next/include/tkMacOSXKeysyms.h +1308 -0
- llava_next/include/unctrl.h +68 -0
- llava_next/share/doc/readline/CHANGES +1941 -0
- llava_next/share/doc/readline/INSTALL +310 -0
- llava_next/share/doc/readline/README +196 -0
- llava_next/share/doc/xz/AUTHORS +58 -0
- llava_next/share/doc/xz/COPYING +83 -0
- llava_next/share/doc/xz/COPYING.0BSD +11 -0
- llava_next/share/doc/xz/COPYING.GPLv2 +339 -0
- llava_next/share/doc/xz/NEWS +0 -0
- llava_next/share/doc/xz/README +310 -0
- llava_next/share/doc/xz/THANKS +207 -0
- llava_next/share/doc/xz/examples/00_README.txt +31 -0
- llava_next/share/doc/xz/examples/01_compress_easy.c +296 -0
- llava_next/share/doc/xz/examples/02_decompress.c +286 -0
- llava_next/share/doc/xz/examples/03_compress_custom.c +192 -0
- llava_next/share/doc/xz/examples/04_compress_easy_mt.c +205 -0
- llava_next/share/doc/xz/examples/11_file_info.c +205 -0
- llava_next/share/doc/xz/examples/Makefile +21 -0
- llava_next/share/doc/xz/faq.txt +244 -0
- llava_next/share/doc/xz/history.txt +150 -0
- llava_next/share/doc/xz/lzma-file-format.txt +173 -0
- llava_next/share/doc/xz/xz-file-format.txt +1174 -0
- llava_next/share/info/libffi.info +1060 -0
- llava_next/share/info/libquadmath.info +816 -0
- llava_next/share/info/readline.info +0 -0
- llava_next/share/info/rluserman.info +2087 -0
- llava_next/share/locale/ca/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/cs/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/da/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/eo/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/es/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/fr/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/hu/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/pl/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/pt/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/sr/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/sv/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/tr/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/uk/LC_MESSAGES/xz.mo +0 -0
- llava_next/share/locale/vi/LC_MESSAGES/xz.mo +0 -0
- parrot/lib/python3.10/site-packages/torch/ao/__pycache__/__init__.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/torch/ao/ns/fx/__pycache__/__init__.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/torch/ao/ns/fx/__pycache__/graph_matcher.cpython-310.pyc +0 -0
- parrot/lib/python3.10/site-packages/torch/ao/ns/fx/__pycache__/n_shadows_utils.cpython-310.pyc +0 -0
llava_next/include/default.h
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* default.h --
|
| 3 |
+
*
|
| 4 |
+
* This file defines the defaults for all options for all of
|
| 5 |
+
* the Tk widgets.
|
| 6 |
+
*
|
| 7 |
+
* Copyright (c) 1991-1994 The Regents of the University of California.
|
| 8 |
+
* Copyright (c) 1994 Sun Microsystems, Inc.
|
| 9 |
+
*
|
| 10 |
+
* See the file "license.terms" for information on usage and redistribution
|
| 11 |
+
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
| 12 |
+
*/
|
| 13 |
+
|
| 14 |
+
#ifndef _DEFAULT
|
| 15 |
+
#define _DEFAULT
|
| 16 |
+
|
| 17 |
+
#ifdef _WIN32
|
| 18 |
+
# include "tkWinDefault.h"
|
| 19 |
+
#else
|
| 20 |
+
# if defined(MAC_OSX_TK)
|
| 21 |
+
# include "tkMacOSXDefault.h"
|
| 22 |
+
# else
|
| 23 |
+
# include "tkUnixDefault.h"
|
| 24 |
+
# endif
|
| 25 |
+
#endif
|
| 26 |
+
|
| 27 |
+
#endif /* _DEFAULT */
|
llava_next/include/ks_names.h
ADDED
|
@@ -0,0 +1,1712 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* This file should be maintained in sync with xlib/X11/keysymdefs.h
|
| 3 |
+
*
|
| 4 |
+
* Note that this should be done manually only, because in some cases
|
| 5 |
+
* keysymdefs.h defines the same integer for multiple keysyms, e.g.:
|
| 6 |
+
*
|
| 7 |
+
* #define XK_Greek_LAMDA 0x7CB
|
| 8 |
+
* #define XK_Greek_LAMBDA 0x7CB
|
| 9 |
+
*
|
| 10 |
+
* #define XK_Cyrillic_DZHE 0x6BF
|
| 11 |
+
* #define XK_Serbian_DZE 0x6BF (deprecated)
|
| 12 |
+
*
|
| 13 |
+
*/
|
| 14 |
+
{ "BackSpace", 0xFF08 },
|
| 15 |
+
{ "Tab", 0xFF09 },
|
| 16 |
+
{ "Linefeed", 0xFF0A },
|
| 17 |
+
{ "Clear", 0xFF0B },
|
| 18 |
+
{ "Return", 0xFF0D },
|
| 19 |
+
{ "Pause", 0xFF13 },
|
| 20 |
+
{ "Scroll_Lock", 0xFF14 },
|
| 21 |
+
{ "Sys_Req", 0xFF15 },
|
| 22 |
+
{ "Escape", 0xFF1B },
|
| 23 |
+
{ "Multi_key", 0xFF20 },
|
| 24 |
+
{ "Kanji", 0xFF21 },
|
| 25 |
+
{ "Muhenkan", 0xFF22 },
|
| 26 |
+
{ "Henkan_Mode", 0xFF23 },
|
| 27 |
+
{ "Henkan", 0xFF23 },
|
| 28 |
+
{ "Romaji", 0xFF24 },
|
| 29 |
+
{ "Hiragana", 0xFF25 },
|
| 30 |
+
{ "Katakana", 0xFF26 },
|
| 31 |
+
{ "Hiragana_Katakana", 0xFF27 },
|
| 32 |
+
{ "Zenkaku", 0xFF28 },
|
| 33 |
+
{ "Hankaku", 0xFF29 },
|
| 34 |
+
{ "Zenkaku_Hankaku", 0xFF2A },
|
| 35 |
+
{ "Touroku", 0xFF2B },
|
| 36 |
+
{ "Massyo", 0xFF2C },
|
| 37 |
+
{ "Kana_Lock", 0xFF2D },
|
| 38 |
+
{ "Kana_Shift", 0xFF2E },
|
| 39 |
+
{ "Eisu_Shift", 0xFF2F },
|
| 40 |
+
{ "Eisu_toggle", 0xFF30 },
|
| 41 |
+
{ "Hangul", 0xFF31 },
|
| 42 |
+
{ "Hangul_Start", 0xFF32 },
|
| 43 |
+
{ "Hangul_End", 0xFF33 },
|
| 44 |
+
{ "Hangul_Hanja", 0xFF34 },
|
| 45 |
+
{ "Hangul_Jamo", 0xFF35 },
|
| 46 |
+
{ "Hangul_Romaja", 0xFF36 },
|
| 47 |
+
{ "Codeinput", 0xFF37 },
|
| 48 |
+
{ "Hangul_Jeonja", 0xFF38 },
|
| 49 |
+
{ "Hangul_Banja", 0xFF39 },
|
| 50 |
+
{ "Hangul_PreHanja", 0xFF3A },
|
| 51 |
+
{ "Hangul_PostHanja", 0xFF3B },
|
| 52 |
+
{ "SingleCandidate", 0xFF3C },
|
| 53 |
+
{ "MultipleCandidate", 0xFF3D },
|
| 54 |
+
{ "PreviousCandidate", 0xFF3E },
|
| 55 |
+
{ "Hangul_Special", 0xFF3F },
|
| 56 |
+
{ "Home", 0xFF50 },
|
| 57 |
+
{ "Left", 0xFF51 },
|
| 58 |
+
{ "Up", 0xFF52 },
|
| 59 |
+
{ "Right", 0xFF53 },
|
| 60 |
+
{ "Down", 0xFF54 },
|
| 61 |
+
{ "Prior", 0xFF55 },
|
| 62 |
+
{ "Page_Up", 0xFF55 },
|
| 63 |
+
{ "Next", 0xFF56 },
|
| 64 |
+
{ "Page_Down", 0xFF56 },
|
| 65 |
+
{ "End", 0xFF57 },
|
| 66 |
+
{ "Begin", 0xFF58 },
|
| 67 |
+
{ "Win_L", 0xFF5B },
|
| 68 |
+
{ "Win_R", 0xFF5C },
|
| 69 |
+
{ "App", 0xFF5D },
|
| 70 |
+
{ "Select", 0xFF60 },
|
| 71 |
+
{ "Print", 0xFF61 },
|
| 72 |
+
{ "Execute", 0xFF62 },
|
| 73 |
+
{ "Insert", 0xFF63 },
|
| 74 |
+
{ "Undo", 0xFF65 },
|
| 75 |
+
{ "Redo", 0xFF66 },
|
| 76 |
+
{ "Menu", 0xFF67 },
|
| 77 |
+
{ "Find", 0xFF68 },
|
| 78 |
+
{ "Cancel", 0xFF69 },
|
| 79 |
+
{ "Help", 0xFF6A },
|
| 80 |
+
{ "Break", 0xFF6B },
|
| 81 |
+
{ "Mode_switch", 0xFF7E },
|
| 82 |
+
{ "script_switch", 0xFF7E },
|
| 83 |
+
{ "kana_switch", 0xFF7E },
|
| 84 |
+
{ "Arabic_switch", 0xFF7E },
|
| 85 |
+
{ "Greek_switch", 0xFF7E },
|
| 86 |
+
{ "Hebrew_switch", 0xFF7E },
|
| 87 |
+
{ "Num_Lock", 0xFF7F },
|
| 88 |
+
{ "KP_Space", 0xFF80 },
|
| 89 |
+
{ "KP_Tab", 0xFF89 },
|
| 90 |
+
{ "KP_Enter", 0xFF8D },
|
| 91 |
+
{ "KP_F1", 0xFF91 },
|
| 92 |
+
{ "KP_F2", 0xFF92 },
|
| 93 |
+
{ "KP_F3", 0xFF93 },
|
| 94 |
+
{ "KP_F4", 0xFF94 },
|
| 95 |
+
{ "KP_Home", 0xFF95 },
|
| 96 |
+
{ "KP_Left", 0xFF96 },
|
| 97 |
+
{ "KP_Up", 0xFF97 },
|
| 98 |
+
{ "KP_Right", 0xFF98 },
|
| 99 |
+
{ "KP_Down", 0xFF99 },
|
| 100 |
+
{ "KP_Prior", 0xFF9A },
|
| 101 |
+
{ "KP_Page_Up", 0xFF9A },
|
| 102 |
+
{ "KP_Next", 0xFF9B },
|
| 103 |
+
{ "KP_Page_Down", 0xFF9B },
|
| 104 |
+
{ "KP_End", 0xFF9C },
|
| 105 |
+
{ "KP_Begin", 0xFF9D },
|
| 106 |
+
{ "KP_Insert", 0xFF9E },
|
| 107 |
+
{ "KP_Delete", 0xFF9F },
|
| 108 |
+
{ "KP_Multiply", 0xFFAA },
|
| 109 |
+
{ "KP_Add", 0xFFAB },
|
| 110 |
+
{ "KP_Separator", 0xFFAC },
|
| 111 |
+
{ "KP_Subtract", 0xFFAD },
|
| 112 |
+
{ "KP_Decimal", 0xFFAE },
|
| 113 |
+
{ "KP_Divide", 0xFFAF },
|
| 114 |
+
{ "KP_0", 0xFFB0 },
|
| 115 |
+
{ "KP_1", 0xFFB1 },
|
| 116 |
+
{ "KP_2", 0xFFB2 },
|
| 117 |
+
{ "KP_3", 0xFFB3 },
|
| 118 |
+
{ "KP_4", 0xFFB4 },
|
| 119 |
+
{ "KP_5", 0xFFB5 },
|
| 120 |
+
{ "KP_6", 0xFFB6 },
|
| 121 |
+
{ "KP_7", 0xFFB7 },
|
| 122 |
+
{ "KP_8", 0xFFB8 },
|
| 123 |
+
{ "KP_9", 0xFFB9 },
|
| 124 |
+
{ "KP_Equal", 0xFFBD },
|
| 125 |
+
{ "F1", 0xFFBE },
|
| 126 |
+
{ "F2", 0xFFBF },
|
| 127 |
+
{ "F3", 0xFFC0 },
|
| 128 |
+
{ "F4", 0xFFC1 },
|
| 129 |
+
{ "F5", 0xFFC2 },
|
| 130 |
+
{ "F6", 0xFFC3 },
|
| 131 |
+
{ "F7", 0xFFC4 },
|
| 132 |
+
{ "F8", 0xFFC5 },
|
| 133 |
+
{ "F9", 0xFFC6 },
|
| 134 |
+
{ "F10", 0xFFC7 },
|
| 135 |
+
{ "F11", 0xFFC8 },
|
| 136 |
+
{ "L1", 0xFFC8 },
|
| 137 |
+
{ "F12", 0xFFC9 },
|
| 138 |
+
{ "L2", 0xFFC9 },
|
| 139 |
+
{ "F13", 0xFFCA },
|
| 140 |
+
{ "L3", 0xFFCA },
|
| 141 |
+
{ "F14", 0xFFCB },
|
| 142 |
+
{ "L4", 0xFFCB },
|
| 143 |
+
{ "F15", 0xFFCC },
|
| 144 |
+
{ "L5", 0xFFCC },
|
| 145 |
+
{ "F16", 0xFFCD },
|
| 146 |
+
{ "L6", 0xFFCD },
|
| 147 |
+
{ "F17", 0xFFCE },
|
| 148 |
+
{ "L7", 0xFFCE },
|
| 149 |
+
{ "F18", 0xFFCF },
|
| 150 |
+
{ "L8", 0xFFCF },
|
| 151 |
+
{ "F19", 0xFFD0 },
|
| 152 |
+
{ "L9", 0xFFD0 },
|
| 153 |
+
{ "F20", 0xFFD1 },
|
| 154 |
+
{ "L10", 0xFFD1 },
|
| 155 |
+
{ "F21", 0xFFD2 },
|
| 156 |
+
{ "R1", 0xFFD2 },
|
| 157 |
+
{ "F22", 0xFFD3 },
|
| 158 |
+
{ "R2", 0xFFD3 },
|
| 159 |
+
{ "F23", 0xFFD4 },
|
| 160 |
+
{ "R3", 0xFFD4 },
|
| 161 |
+
{ "F24", 0xFFD5 },
|
| 162 |
+
{ "R4", 0xFFD5 },
|
| 163 |
+
{ "F25", 0xFFD6 },
|
| 164 |
+
{ "R5", 0xFFD6 },
|
| 165 |
+
{ "F26", 0xFFD7 },
|
| 166 |
+
{ "R6", 0xFFD7 },
|
| 167 |
+
{ "F27", 0xFFD8 },
|
| 168 |
+
{ "R7", 0xFFD8 },
|
| 169 |
+
{ "F28", 0xFFD9 },
|
| 170 |
+
{ "R8", 0xFFD9 },
|
| 171 |
+
{ "F29", 0xFFDA },
|
| 172 |
+
{ "R9", 0xFFDA },
|
| 173 |
+
{ "F30", 0xFFDB },
|
| 174 |
+
{ "R10", 0xFFDB },
|
| 175 |
+
{ "F31", 0xFFDC },
|
| 176 |
+
{ "R11", 0xFFDC },
|
| 177 |
+
{ "F32", 0xFFDD },
|
| 178 |
+
{ "R12", 0xFFDD },
|
| 179 |
+
{ "F33", 0xFFDE },
|
| 180 |
+
{ "R13", 0xFFDE },
|
| 181 |
+
{ "F34", 0xFFDF },
|
| 182 |
+
{ "R14", 0xFFDF },
|
| 183 |
+
{ "F35", 0xFFE0 },
|
| 184 |
+
{ "R15", 0xFFE0 },
|
| 185 |
+
{ "Shift_L", 0xFFE1 },
|
| 186 |
+
{ "Shift_R", 0xFFE2 },
|
| 187 |
+
{ "Control_L", 0xFFE3 },
|
| 188 |
+
{ "Control_R", 0xFFE4 },
|
| 189 |
+
{ "Caps_Lock", 0xFFE5 },
|
| 190 |
+
{ "Shift_Lock", 0xFFE6 },
|
| 191 |
+
{ "Meta_L", 0xFFE7 },
|
| 192 |
+
{ "Meta_R", 0xFFE8 },
|
| 193 |
+
{ "Alt_L", 0xFFE9 },
|
| 194 |
+
{ "Alt_R", 0xFFEA },
|
| 195 |
+
{ "Super_L", 0xFFEB },
|
| 196 |
+
{ "Super_R", 0xFFEC },
|
| 197 |
+
{ "Hyper_L", 0xFFED },
|
| 198 |
+
{ "Hyper_R", 0xFFEE },
|
| 199 |
+
{ "braille_dot_1", 0xFFF1 },
|
| 200 |
+
{ "braille_dot_2", 0xFFF2 },
|
| 201 |
+
{ "braille_dot_3", 0xFFF3 },
|
| 202 |
+
{ "braille_dot_4", 0xFFF4 },
|
| 203 |
+
{ "braille_dot_5", 0xFFF5 },
|
| 204 |
+
{ "braille_dot_6", 0xFFF6 },
|
| 205 |
+
{ "braille_dot_7", 0xFFF7 },
|
| 206 |
+
{ "braille_dot_8", 0xFFF8 },
|
| 207 |
+
{ "braille_dot_9", 0xFFF9 },
|
| 208 |
+
{ "braille_dot_10", 0xFFFA },
|
| 209 |
+
{ "Delete", 0xFFFF },
|
| 210 |
+
{ "ISO_Lock", 0xFE01 },
|
| 211 |
+
{ "ISO_Level2_Latch", 0xFE02 },
|
| 212 |
+
{ "ISO_Level3_Shift", 0xFE03 },
|
| 213 |
+
{ "ISO_Level3_Latch", 0xFE04 },
|
| 214 |
+
{ "ISO_Level3_Lock", 0xFE05 },
|
| 215 |
+
{ "ISO_Group_Latch", 0xFE06 },
|
| 216 |
+
{ "ISO_Group_Lock", 0xFE07 },
|
| 217 |
+
{ "ISO_Next_Group", 0xFE08 },
|
| 218 |
+
{ "ISO_Next_Group_Lock", 0xFE09 },
|
| 219 |
+
{ "ISO_Prev_Group", 0xFE0A },
|
| 220 |
+
{ "ISO_Prev_Group_Lock", 0xFE0B },
|
| 221 |
+
{ "ISO_First_Group", 0xFE0C },
|
| 222 |
+
{ "ISO_First_Group_Lock", 0xFE0D },
|
| 223 |
+
{ "ISO_Last_Group", 0xFE0E },
|
| 224 |
+
{ "ISO_Last_Group_Lock", 0xFE0F },
|
| 225 |
+
{ "ISO_Level5_Shift", 0xFE11 },
|
| 226 |
+
{ "ISO_Level5_Latch", 0xFE12 },
|
| 227 |
+
{ "ISO_Level5_Lock", 0xFE13 },
|
| 228 |
+
{ "ISO_Left_Tab", 0xFE20 },
|
| 229 |
+
{ "ISO_Move_Line_Up", 0xFE21 },
|
| 230 |
+
{ "ISO_Move_Line_Down", 0xFE22 },
|
| 231 |
+
{ "ISO_Partial_Line_Up", 0xFE23 },
|
| 232 |
+
{ "ISO_Partial_Line_Down", 0xFE24 },
|
| 233 |
+
{ "ISO_Partial_Space_Left", 0xFE25 },
|
| 234 |
+
{ "ISO_Partial_Space_Right", 0xFE26 },
|
| 235 |
+
{ "ISO_Set_Margin_Left", 0xFE27 },
|
| 236 |
+
{ "ISO_Set_Margin_Right", 0xFE28 },
|
| 237 |
+
{ "ISO_Release_Margin_Left", 0xFE29 },
|
| 238 |
+
{ "ISO_Release_Margin_Right", 0xFE2A },
|
| 239 |
+
{ "ISO_Release_Both_Margins", 0xFE2B },
|
| 240 |
+
{ "ISO_Fast_Cursor_Left", 0xFE2C },
|
| 241 |
+
{ "ISO_Fast_Cursor_Right", 0xFE2D },
|
| 242 |
+
{ "ISO_Fast_Cursor_Up", 0xFE2E },
|
| 243 |
+
{ "ISO_Fast_Cursor_Down", 0xFE2F },
|
| 244 |
+
{ "ISO_Continuous_Underline", 0xFE30 },
|
| 245 |
+
{ "ISO_Discontinuous_Underline", 0xFE31 },
|
| 246 |
+
{ "ISO_Emphasize", 0xFE32 },
|
| 247 |
+
{ "ISO_Center_Object", 0xFE33 },
|
| 248 |
+
{ "ISO_Enter", 0xFE34 },
|
| 249 |
+
{ "dead_grave", 0xFE50 },
|
| 250 |
+
{ "dead_acute", 0xFE51 },
|
| 251 |
+
{ "dead_circumflex", 0xFE52 },
|
| 252 |
+
{ "dead_tilde", 0xFE53 },
|
| 253 |
+
{ "dead_perispomeni", 0xFE53 },
|
| 254 |
+
{ "dead_macron", 0xFE54 },
|
| 255 |
+
{ "dead_breve", 0xFE55 },
|
| 256 |
+
{ "dead_abovedot", 0xFE56 },
|
| 257 |
+
{ "dead_diaeresis", 0xFE57 },
|
| 258 |
+
{ "dead_abovering", 0xFE58 },
|
| 259 |
+
{ "dead_doubleacute", 0xFE59 },
|
| 260 |
+
{ "dead_caron", 0xFE5A },
|
| 261 |
+
{ "dead_cedilla", 0xFE5B },
|
| 262 |
+
{ "dead_ogonek", 0xFE5C },
|
| 263 |
+
{ "dead_iota", 0xFE5D },
|
| 264 |
+
{ "dead_voiced_sound", 0xFE5E },
|
| 265 |
+
{ "dead_semivoiced_sound", 0xFE5F },
|
| 266 |
+
{ "dead_belowdot", 0xFE60 },
|
| 267 |
+
{ "dead_hook", 0xFE61 },
|
| 268 |
+
{ "dead_horn", 0xFE62 },
|
| 269 |
+
{ "dead_stroke", 0xFE63 },
|
| 270 |
+
{ "dead_abovecomma", 0xFE64 },
|
| 271 |
+
{ "dead_psili", 0xFE64 },
|
| 272 |
+
{ "dead_abovereversedcomma", 0xFE65 },
|
| 273 |
+
{ "dead_dasia", 0xFE65 },
|
| 274 |
+
{ "dead_doublegrave", 0xFE66 },
|
| 275 |
+
{ "dead_belowring", 0xFE67 },
|
| 276 |
+
{ "dead_belowmacron", 0xFE68 },
|
| 277 |
+
{ "dead_belowcircumflex", 0xFE69 },
|
| 278 |
+
{ "dead_belowtilde", 0xFE6A },
|
| 279 |
+
{ "dead_belowbreve", 0xFE6B },
|
| 280 |
+
{ "dead_belowdiaeresis", 0xFE6C },
|
| 281 |
+
{ "dead_invertedbreve", 0xFE6D },
|
| 282 |
+
{ "dead_belowcomma", 0xFE6E },
|
| 283 |
+
{ "dead_currency", 0xFE6F },
|
| 284 |
+
{ "AccessX_Enable", 0xFE70 },
|
| 285 |
+
{ "AccessX_Feedback_Enable", 0xFE71 },
|
| 286 |
+
{ "RepeatKeys_Enable", 0xFE72 },
|
| 287 |
+
{ "SlowKeys_Enable", 0xFE73 },
|
| 288 |
+
{ "BounceKeys_Enable", 0xFE74 },
|
| 289 |
+
{ "StickyKeys_Enable", 0xFE75 },
|
| 290 |
+
{ "MouseKeys_Enable", 0xFE76 },
|
| 291 |
+
{ "MouseKeys_Accel_Enable", 0xFE77 },
|
| 292 |
+
{ "Overlay1_Enable", 0xFE78 },
|
| 293 |
+
{ "Overlay2_Enable", 0xFE79 },
|
| 294 |
+
{ "AudibleBell_Enable", 0xFE7A },
|
| 295 |
+
{ "dead_a", 0xFE80 },
|
| 296 |
+
{ "dead_A", 0xFE81 },
|
| 297 |
+
{ "dead_e", 0xFE82 },
|
| 298 |
+
{ "dead_E", 0xFE83 },
|
| 299 |
+
{ "dead_i", 0xFE84 },
|
| 300 |
+
{ "dead_I", 0xFE85 },
|
| 301 |
+
{ "dead_o", 0xFE86 },
|
| 302 |
+
{ "dead_O", 0xFE87 },
|
| 303 |
+
{ "dead_u", 0xFE88 },
|
| 304 |
+
{ "dead_U", 0xFE89 },
|
| 305 |
+
{ "dead_schwa", 0xFE8A },
|
| 306 |
+
{ "dead_small_schwa", 0xFE8A },
|
| 307 |
+
{ "dead_SCHWA", 0xFE8B },
|
| 308 |
+
{ "dead_capital_schwa", 0xFE8B },
|
| 309 |
+
{ "dead_greek", 0xFE8C },
|
| 310 |
+
{ "dead_lowline", 0xFE90 },
|
| 311 |
+
{ "dead_aboveverticalline", 0xFE91 },
|
| 312 |
+
{ "dead_belowverticalline", 0xFE92 },
|
| 313 |
+
{ "dead_longsolidusoverlay", 0xFE93 },
|
| 314 |
+
{ "ch", 0xFEA0 },
|
| 315 |
+
{ "Ch", 0xFEA1 },
|
| 316 |
+
{ "CH", 0xFEA2 },
|
| 317 |
+
{ "c_h", 0xFEA3 },
|
| 318 |
+
{ "C_h", 0xFEA4 },
|
| 319 |
+
{ "C_H", 0xFEA5 },
|
| 320 |
+
{ "First_Virtual_Screen", 0xFED0 },
|
| 321 |
+
{ "Prev_Virtual_Screen", 0xFED1 },
|
| 322 |
+
{ "Next_Virtual_Screen", 0xFED2 },
|
| 323 |
+
{ "Last_Virtual_Screen", 0xFED4 },
|
| 324 |
+
{ "Terminate_Server", 0xFED5 },
|
| 325 |
+
{ "Pointer_Left", 0xFEE0 },
|
| 326 |
+
{ "Pointer_Right", 0xFEE1 },
|
| 327 |
+
{ "Pointer_Up", 0xFEE2 },
|
| 328 |
+
{ "Pointer_Down", 0xFEE3 },
|
| 329 |
+
{ "Pointer_UpLeft", 0xFEE4 },
|
| 330 |
+
{ "Pointer_UpRight", 0xFEE5 },
|
| 331 |
+
{ "Pointer_DownLeft", 0xFEE6 },
|
| 332 |
+
{ "Pointer_DownRight", 0xFEE7 },
|
| 333 |
+
{ "Pointer_Button_Dflt", 0xFEE8 },
|
| 334 |
+
{ "Pointer_Button1", 0xFEE9 },
|
| 335 |
+
{ "Pointer_Button2", 0xFEEA },
|
| 336 |
+
{ "Pointer_Button3", 0xFEEB },
|
| 337 |
+
{ "Pointer_Button4", 0xFEEC },
|
| 338 |
+
{ "Pointer_Button5", 0xFEED },
|
| 339 |
+
{ "Pointer_DblClick_Dflt", 0xFEEE },
|
| 340 |
+
{ "Pointer_DblClick1", 0xFEEF },
|
| 341 |
+
{ "Pointer_DblClick2", 0xFEF0 },
|
| 342 |
+
{ "Pointer_DblClick3", 0xFEF1 },
|
| 343 |
+
{ "Pointer_DblClick4", 0xFEF2 },
|
| 344 |
+
{ "Pointer_DblClick5", 0xFEF3 },
|
| 345 |
+
{ "Pointer_Drag_Dflt", 0xFEF4 },
|
| 346 |
+
{ "Pointer_Drag1", 0xFEF5 },
|
| 347 |
+
{ "Pointer_Drag2", 0xFEF6 },
|
| 348 |
+
{ "Pointer_Drag3", 0xFEF7 },
|
| 349 |
+
{ "Pointer_Drag4", 0xFEF8 },
|
| 350 |
+
{ "Pointer_EnableKeys", 0xFEF9 },
|
| 351 |
+
{ "Pointer_Accelerate", 0xFEFA },
|
| 352 |
+
{ "Pointer_DfltBtnNext", 0xFEFB },
|
| 353 |
+
{ "Pointer_DfltBtnPrev", 0xFEFC },
|
| 354 |
+
{ "Pointer_Drag5", 0xFEFD },
|
| 355 |
+
{ "space", 0x20 },
|
| 356 |
+
{ "exclam", 0x21 },
|
| 357 |
+
{ "quotedbl", 0x22 },
|
| 358 |
+
{ "numbersign", 0x23 },
|
| 359 |
+
{ "dollar", 0x24 },
|
| 360 |
+
{ "percent", 0x25 },
|
| 361 |
+
{ "ampersand", 0x26 },
|
| 362 |
+
{ "apostrophe", 0x27 },
|
| 363 |
+
{ "quoteright", 0x27 },
|
| 364 |
+
{ "parenleft", 0x28 },
|
| 365 |
+
{ "parenright", 0x29 },
|
| 366 |
+
{ "asterisk", 0x2A },
|
| 367 |
+
{ "plus", 0x2B },
|
| 368 |
+
{ "comma", 0x2C },
|
| 369 |
+
{ "minus", 0x2D },
|
| 370 |
+
{ "period", 0x2E },
|
| 371 |
+
{ "slash", 0x2F },
|
| 372 |
+
{ "0", 0x30 },
|
| 373 |
+
{ "1", 0x31 },
|
| 374 |
+
{ "2", 0x32 },
|
| 375 |
+
{ "3", 0x33 },
|
| 376 |
+
{ "4", 0x34 },
|
| 377 |
+
{ "5", 0x35 },
|
| 378 |
+
{ "6", 0x36 },
|
| 379 |
+
{ "7", 0x37 },
|
| 380 |
+
{ "8", 0x38 },
|
| 381 |
+
{ "9", 0x39 },
|
| 382 |
+
{ "colon", 0x3A },
|
| 383 |
+
{ "semicolon", 0x3B },
|
| 384 |
+
{ "less", 0x3C },
|
| 385 |
+
{ "equal", 0x3D },
|
| 386 |
+
{ "greater", 0x3E },
|
| 387 |
+
{ "question", 0x3F },
|
| 388 |
+
{ "at", 0x40 },
|
| 389 |
+
{ "A", 0x41 },
|
| 390 |
+
{ "B", 0x42 },
|
| 391 |
+
{ "C", 0x43 },
|
| 392 |
+
{ "D", 0x44 },
|
| 393 |
+
{ "E", 0x45 },
|
| 394 |
+
{ "F", 0x46 },
|
| 395 |
+
{ "G", 0x47 },
|
| 396 |
+
{ "H", 0x48 },
|
| 397 |
+
{ "I", 0x49 },
|
| 398 |
+
{ "J", 0x4A },
|
| 399 |
+
{ "K", 0x4B },
|
| 400 |
+
{ "L", 0x4C },
|
| 401 |
+
{ "M", 0x4D },
|
| 402 |
+
{ "N", 0x4E },
|
| 403 |
+
{ "O", 0x4F },
|
| 404 |
+
{ "P", 0x50 },
|
| 405 |
+
{ "Q", 0x51 },
|
| 406 |
+
{ "R", 0x52 },
|
| 407 |
+
{ "S", 0x53 },
|
| 408 |
+
{ "T", 0x54 },
|
| 409 |
+
{ "U", 0x55 },
|
| 410 |
+
{ "V", 0x56 },
|
| 411 |
+
{ "W", 0x57 },
|
| 412 |
+
{ "X", 0x58 },
|
| 413 |
+
{ "Y", 0x59 },
|
| 414 |
+
{ "Z", 0x5A },
|
| 415 |
+
{ "bracketleft", 0x5B },
|
| 416 |
+
{ "backslash", 0x5C },
|
| 417 |
+
{ "bracketright", 0x5D },
|
| 418 |
+
{ "asciicircum", 0x5E },
|
| 419 |
+
{ "underscore", 0x5F },
|
| 420 |
+
{ "grave", 0x60 },
|
| 421 |
+
{ "quoteleft", 0x60 },
|
| 422 |
+
{ "a", 0x61 },
|
| 423 |
+
{ "b", 0x62 },
|
| 424 |
+
{ "c", 0x63 },
|
| 425 |
+
{ "d", 0x64 },
|
| 426 |
+
{ "e", 0x65 },
|
| 427 |
+
{ "f", 0x66 },
|
| 428 |
+
{ "g", 0x67 },
|
| 429 |
+
{ "h", 0x68 },
|
| 430 |
+
{ "i", 0x69 },
|
| 431 |
+
{ "j", 0x6A },
|
| 432 |
+
{ "k", 0x6B },
|
| 433 |
+
{ "l", 0x6C },
|
| 434 |
+
{ "m", 0x6D },
|
| 435 |
+
{ "n", 0x6E },
|
| 436 |
+
{ "o", 0x6F },
|
| 437 |
+
{ "p", 0x70 },
|
| 438 |
+
{ "q", 0x71 },
|
| 439 |
+
{ "r", 0x72 },
|
| 440 |
+
{ "s", 0x73 },
|
| 441 |
+
{ "t", 0x74 },
|
| 442 |
+
{ "u", 0x75 },
|
| 443 |
+
{ "v", 0x76 },
|
| 444 |
+
{ "w", 0x77 },
|
| 445 |
+
{ "x", 0x78 },
|
| 446 |
+
{ "y", 0x79 },
|
| 447 |
+
{ "z", 0x7A },
|
| 448 |
+
{ "braceleft", 0x7B },
|
| 449 |
+
{ "bar", 0x7C },
|
| 450 |
+
{ "braceright", 0x7D },
|
| 451 |
+
{ "asciitilde", 0x7E },
|
| 452 |
+
{ "nobreakspace", 0xA0 },
|
| 453 |
+
{ "exclamdown", 0xA1 },
|
| 454 |
+
{ "cent", 0xA2 },
|
| 455 |
+
{ "sterling", 0xA3 },
|
| 456 |
+
{ "currency", 0xA4 },
|
| 457 |
+
{ "yen", 0xA5 },
|
| 458 |
+
{ "brokenbar", 0xA6 },
|
| 459 |
+
{ "section", 0xA7 },
|
| 460 |
+
{ "diaeresis", 0xA8 },
|
| 461 |
+
{ "copyright", 0xA9 },
|
| 462 |
+
{ "ordfeminine", 0xAA },
|
| 463 |
+
{ "guillemetleft", 0xAB },
|
| 464 |
+
{ "guillemotleft", 0xAB },
|
| 465 |
+
{ "notsign", 0xAC },
|
| 466 |
+
{ "hyphen", 0xAD },
|
| 467 |
+
{ "registered", 0xAE },
|
| 468 |
+
{ "macron", 0xAF },
|
| 469 |
+
{ "degree", 0xB0 },
|
| 470 |
+
{ "plusminus", 0xB1 },
|
| 471 |
+
{ "twosuperior", 0xB2 },
|
| 472 |
+
{ "threesuperior", 0xB3 },
|
| 473 |
+
{ "acute", 0xB4 },
|
| 474 |
+
{ "mu", 0xB5 },
|
| 475 |
+
{ "paragraph", 0xB6 },
|
| 476 |
+
{ "periodcentered", 0xB7 },
|
| 477 |
+
{ "cedilla", 0xB8 },
|
| 478 |
+
{ "onesuperior", 0xB9 },
|
| 479 |
+
{ "ordmasculine", 0xBA },
|
| 480 |
+
{ "masculine", 0xBA },
|
| 481 |
+
{ "guillemetright", 0xBB },
|
| 482 |
+
{ "guillemotright", 0xBB },
|
| 483 |
+
{ "onequarter", 0xBC },
|
| 484 |
+
{ "onehalf", 0xBD },
|
| 485 |
+
{ "threequarters", 0xBE },
|
| 486 |
+
{ "questiondown", 0xBF },
|
| 487 |
+
{ "Agrave", 0xC0 },
|
| 488 |
+
{ "Aacute", 0xC1 },
|
| 489 |
+
{ "Acircumflex", 0xC2 },
|
| 490 |
+
{ "Atilde", 0xC3 },
|
| 491 |
+
{ "Adiaeresis", 0xC4 },
|
| 492 |
+
{ "Aring", 0xC5 },
|
| 493 |
+
{ "AE", 0xC6 },
|
| 494 |
+
{ "Ccedilla", 0xC7 },
|
| 495 |
+
{ "Egrave", 0xC8 },
|
| 496 |
+
{ "Eacute", 0xC9 },
|
| 497 |
+
{ "Ecircumflex", 0xCA },
|
| 498 |
+
{ "Ediaeresis", 0xCB },
|
| 499 |
+
{ "Igrave", 0xCC },
|
| 500 |
+
{ "Iacute", 0xCD },
|
| 501 |
+
{ "Icircumflex", 0xCE },
|
| 502 |
+
{ "Idiaeresis", 0xCF },
|
| 503 |
+
{ "ETH", 0xD0 },
|
| 504 |
+
{ "Eth", 0xD0 },
|
| 505 |
+
{ "Ntilde", 0xD1 },
|
| 506 |
+
{ "Ograve", 0xD2 },
|
| 507 |
+
{ "Oacute", 0xD3 },
|
| 508 |
+
{ "Ocircumflex", 0xD4 },
|
| 509 |
+
{ "Otilde", 0xD5 },
|
| 510 |
+
{ "Odiaeresis", 0xD6 },
|
| 511 |
+
{ "multiply", 0xD7 },
|
| 512 |
+
{ "Oslash", 0xD8 },
|
| 513 |
+
{ "Ooblique", 0xD8 },
|
| 514 |
+
{ "Ugrave", 0xD9 },
|
| 515 |
+
{ "Uacute", 0xDA },
|
| 516 |
+
{ "Ucircumflex", 0xDB },
|
| 517 |
+
{ "Udiaeresis", 0xDC },
|
| 518 |
+
{ "Yacute", 0xDD },
|
| 519 |
+
{ "THORN", 0xDE },
|
| 520 |
+
{ "Thorn", 0xDE },
|
| 521 |
+
{ "ssharp", 0xDF },
|
| 522 |
+
{ "agrave", 0xE0 },
|
| 523 |
+
{ "aacute", 0xE1 },
|
| 524 |
+
{ "acircumflex", 0xE2 },
|
| 525 |
+
{ "atilde", 0xE3 },
|
| 526 |
+
{ "adiaeresis", 0xE4 },
|
| 527 |
+
{ "aring", 0xE5 },
|
| 528 |
+
{ "ae", 0xE6 },
|
| 529 |
+
{ "ccedilla", 0xE7 },
|
| 530 |
+
{ "egrave", 0xE8 },
|
| 531 |
+
{ "eacute", 0xE9 },
|
| 532 |
+
{ "ecircumflex", 0xEA },
|
| 533 |
+
{ "ediaeresis", 0xEB },
|
| 534 |
+
{ "igrave", 0xEC },
|
| 535 |
+
{ "iacute", 0xED },
|
| 536 |
+
{ "icircumflex", 0xEE },
|
| 537 |
+
{ "idiaeresis", 0xEF },
|
| 538 |
+
{ "eth", 0xF0 },
|
| 539 |
+
{ "ntilde", 0xF1 },
|
| 540 |
+
{ "ograve", 0xF2 },
|
| 541 |
+
{ "oacute", 0xF3 },
|
| 542 |
+
{ "ocircumflex", 0xF4 },
|
| 543 |
+
{ "otilde", 0xF5 },
|
| 544 |
+
{ "odiaeresis", 0xF6 },
|
| 545 |
+
{ "division", 0xF7 },
|
| 546 |
+
{ "oslash", 0xF8 },
|
| 547 |
+
{ "ooblique", 0xF8 },
|
| 548 |
+
{ "ugrave", 0xF9 },
|
| 549 |
+
{ "uacute", 0xFA },
|
| 550 |
+
{ "ucircumflex", 0xFB },
|
| 551 |
+
{ "udiaeresis", 0xFC },
|
| 552 |
+
{ "yacute", 0xFD },
|
| 553 |
+
{ "thorn", 0xFE },
|
| 554 |
+
{ "ydiaeresis", 0xFF },
|
| 555 |
+
{ "Aogonek", 0x1A1 },
|
| 556 |
+
{ "breve", 0x1A2 },
|
| 557 |
+
{ "Lstroke", 0x1A3 },
|
| 558 |
+
{ "Lcaron", 0x1A5 },
|
| 559 |
+
{ "Sacute", 0x1A6 },
|
| 560 |
+
{ "Scaron", 0x1A9 },
|
| 561 |
+
{ "Scedilla", 0x1AA },
|
| 562 |
+
{ "Tcaron", 0x1AB },
|
| 563 |
+
{ "Zacute", 0x1AC },
|
| 564 |
+
{ "Zcaron", 0x1AE },
|
| 565 |
+
{ "Zabovedot", 0x1AF },
|
| 566 |
+
{ "aogonek", 0x1B1 },
|
| 567 |
+
{ "ogonek", 0x1B2 },
|
| 568 |
+
{ "lstroke", 0x1B3 },
|
| 569 |
+
{ "lcaron", 0x1B5 },
|
| 570 |
+
{ "sacute", 0x1B6 },
|
| 571 |
+
{ "caron", 0x1B7 },
|
| 572 |
+
{ "scaron", 0x1B9 },
|
| 573 |
+
{ "scedilla", 0x1BA },
|
| 574 |
+
{ "tcaron", 0x1BB },
|
| 575 |
+
{ "zacute", 0x1BC },
|
| 576 |
+
{ "doubleacute", 0x1BD },
|
| 577 |
+
{ "zcaron", 0x1BE },
|
| 578 |
+
{ "zabovedot", 0x1BF },
|
| 579 |
+
{ "Racute", 0x1C0 },
|
| 580 |
+
{ "Abreve", 0x1C3 },
|
| 581 |
+
{ "Lacute", 0x1C5 },
|
| 582 |
+
{ "Cacute", 0x1C6 },
|
| 583 |
+
{ "Ccaron", 0x1C8 },
|
| 584 |
+
{ "Eogonek", 0x1CA },
|
| 585 |
+
{ "Ecaron", 0x1CC },
|
| 586 |
+
{ "Dcaron", 0x1CF },
|
| 587 |
+
{ "Dstroke", 0x1D0 },
|
| 588 |
+
{ "Nacute", 0x1D1 },
|
| 589 |
+
{ "Ncaron", 0x1D2 },
|
| 590 |
+
{ "Odoubleacute", 0x1D5 },
|
| 591 |
+
{ "Rcaron", 0x1D8 },
|
| 592 |
+
{ "Uring", 0x1D9 },
|
| 593 |
+
{ "Udoubleacute", 0x1DB },
|
| 594 |
+
{ "Tcedilla", 0x1DE },
|
| 595 |
+
{ "racute", 0x1E0 },
|
| 596 |
+
{ "abreve", 0x1E3 },
|
| 597 |
+
{ "lacute", 0x1E5 },
|
| 598 |
+
{ "cacute", 0x1E6 },
|
| 599 |
+
{ "ccaron", 0x1E8 },
|
| 600 |
+
{ "eogonek", 0x1EA },
|
| 601 |
+
{ "ecaron", 0x1EC },
|
| 602 |
+
{ "dcaron", 0x1EF },
|
| 603 |
+
{ "dstroke", 0x1F0 },
|
| 604 |
+
{ "nacute", 0x1F1 },
|
| 605 |
+
{ "ncaron", 0x1F2 },
|
| 606 |
+
{ "odoubleacute", 0x1F5 },
|
| 607 |
+
{ "rcaron", 0x1F8 },
|
| 608 |
+
{ "uring", 0x1F9 },
|
| 609 |
+
{ "udoubleacute", 0x1FB },
|
| 610 |
+
{ "tcedilla", 0x1FE },
|
| 611 |
+
{ "abovedot", 0x1FF },
|
| 612 |
+
{ "Hstroke", 0x2A1 },
|
| 613 |
+
{ "Hcircumflex", 0x2A6 },
|
| 614 |
+
{ "Iabovedot", 0x2A9 },
|
| 615 |
+
{ "Gbreve", 0x2AB },
|
| 616 |
+
{ "Jcircumflex", 0x2AC },
|
| 617 |
+
{ "hstroke", 0x2B1 },
|
| 618 |
+
{ "hcircumflex", 0x2B6 },
|
| 619 |
+
{ "idotless", 0x2B9 },
|
| 620 |
+
{ "gbreve", 0x2BB },
|
| 621 |
+
{ "jcircumflex", 0x2BC },
|
| 622 |
+
{ "Cabovedot", 0x2C5 },
|
| 623 |
+
{ "Ccircumflex", 0x2C6 },
|
| 624 |
+
{ "Gabovedot", 0x2D5 },
|
| 625 |
+
{ "Gcircumflex", 0x2D8 },
|
| 626 |
+
{ "Ubreve", 0x2DD },
|
| 627 |
+
{ "Scircumflex", 0x2DE },
|
| 628 |
+
{ "cabovedot", 0x2E5 },
|
| 629 |
+
{ "ccircumflex", 0x2E6 },
|
| 630 |
+
{ "gabovedot", 0x2F5 },
|
| 631 |
+
{ "gcircumflex", 0x2F8 },
|
| 632 |
+
{ "ubreve", 0x2FD },
|
| 633 |
+
{ "scircumflex", 0x2FE },
|
| 634 |
+
{ "kra", 0x3A2 },
|
| 635 |
+
{ "kappa", 0x3A2 },
|
| 636 |
+
{ "Rcedilla", 0x3A3 },
|
| 637 |
+
{ "Itilde", 0x3A5 },
|
| 638 |
+
{ "Lcedilla", 0x3A6 },
|
| 639 |
+
{ "Emacron", 0x3AA },
|
| 640 |
+
{ "Gcedilla", 0x3AB },
|
| 641 |
+
{ "Tslash", 0x3AC },
|
| 642 |
+
{ "rcedilla", 0x3B3 },
|
| 643 |
+
{ "itilde", 0x3B5 },
|
| 644 |
+
{ "lcedilla", 0x3B6 },
|
| 645 |
+
{ "emacron", 0x3BA },
|
| 646 |
+
{ "gcedilla", 0x3BB },
|
| 647 |
+
{ "gacute", 0x3BB },
|
| 648 |
+
{ "tslash", 0x3BC },
|
| 649 |
+
{ "ENG", 0x3BD },
|
| 650 |
+
{ "eng", 0x3BF },
|
| 651 |
+
{ "Amacron", 0x3C0 },
|
| 652 |
+
{ "Iogonek", 0x3C7 },
|
| 653 |
+
{ "Eabovedot", 0x3CC },
|
| 654 |
+
{ "Imacron", 0x3CF },
|
| 655 |
+
{ "Ncedilla", 0x3D1 },
|
| 656 |
+
{ "Omacron", 0x3D2 },
|
| 657 |
+
{ "Kcedilla", 0x3D3 },
|
| 658 |
+
{ "Uogonek", 0x3D9 },
|
| 659 |
+
{ "Utilde", 0x3DD },
|
| 660 |
+
{ "Umacron", 0x3DE },
|
| 661 |
+
{ "amacron", 0x3E0 },
|
| 662 |
+
{ "iogonek", 0x3E7 },
|
| 663 |
+
{ "eabovedot", 0x3EC },
|
| 664 |
+
{ "imacron", 0x3EF },
|
| 665 |
+
{ "ncedilla", 0x3F1 },
|
| 666 |
+
{ "omacron", 0x3F2 },
|
| 667 |
+
{ "kcedilla", 0x3F3 },
|
| 668 |
+
{ "uogonek", 0x3F9 },
|
| 669 |
+
{ "utilde", 0x3FD },
|
| 670 |
+
{ "umacron", 0x3FE },
|
| 671 |
+
{ "OE", 0x13BC },
|
| 672 |
+
{ "oe", 0x13BD },
|
| 673 |
+
{ "Ydiaeresis", 0x13BE },
|
| 674 |
+
{ "overline", 0x47E },
|
| 675 |
+
{ "kana_fullstop", 0x4A1 },
|
| 676 |
+
{ "kana_openingbracket", 0x4A2 },
|
| 677 |
+
{ "kana_closingbracket", 0x4A3 },
|
| 678 |
+
{ "kana_comma", 0x4A4 },
|
| 679 |
+
{ "kana_conjunctive", 0x4A5 },
|
| 680 |
+
{ "kana_middledot", 0x4A5 },
|
| 681 |
+
{ "kana_WO", 0x4A6 },
|
| 682 |
+
{ "kana_a", 0x4A7 },
|
| 683 |
+
{ "kana_i", 0x4A8 },
|
| 684 |
+
{ "kana_u", 0x4A9 },
|
| 685 |
+
{ "kana_e", 0x4AA },
|
| 686 |
+
{ "kana_o", 0x4AB },
|
| 687 |
+
{ "kana_ya", 0x4AC },
|
| 688 |
+
{ "kana_yu", 0x4AD },
|
| 689 |
+
{ "kana_yo", 0x4AE },
|
| 690 |
+
{ "kana_tsu", 0x4AF },
|
| 691 |
+
{ "kana_tu", 0x4AF },
|
| 692 |
+
{ "prolongedsound", 0x4B0 },
|
| 693 |
+
{ "kana_A", 0x4B1 },
|
| 694 |
+
{ "kana_I", 0x4B2 },
|
| 695 |
+
{ "kana_U", 0x4B3 },
|
| 696 |
+
{ "kana_E", 0x4B4 },
|
| 697 |
+
{ "kana_O", 0x4B5 },
|
| 698 |
+
{ "kana_KA", 0x4B6 },
|
| 699 |
+
{ "kana_KI", 0x4B7 },
|
| 700 |
+
{ "kana_KU", 0x4B8 },
|
| 701 |
+
{ "kana_KE", 0x4B9 },
|
| 702 |
+
{ "kana_KO", 0x4BA },
|
| 703 |
+
{ "kana_SA", 0x4BB },
|
| 704 |
+
{ "kana_SHI", 0x4BC },
|
| 705 |
+
{ "kana_SU", 0x4BD },
|
| 706 |
+
{ "kana_SE", 0x4BE },
|
| 707 |
+
{ "kana_SO", 0x4BF },
|
| 708 |
+
{ "kana_TA", 0x4C0 },
|
| 709 |
+
{ "kana_CHI", 0x4C1 },
|
| 710 |
+
{ "kana_TI", 0x4C1 },
|
| 711 |
+
{ "kana_TSU", 0x4C2 },
|
| 712 |
+
{ "kana_TU", 0x4C2 },
|
| 713 |
+
{ "kana_TE", 0x4C3 },
|
| 714 |
+
{ "kana_TO", 0x4C4 },
|
| 715 |
+
{ "kana_NA", 0x4C5 },
|
| 716 |
+
{ "kana_NI", 0x4C6 },
|
| 717 |
+
{ "kana_NU", 0x4C7 },
|
| 718 |
+
{ "kana_NE", 0x4C8 },
|
| 719 |
+
{ "kana_NO", 0x4C9 },
|
| 720 |
+
{ "kana_HA", 0x4CA },
|
| 721 |
+
{ "kana_HI", 0x4CB },
|
| 722 |
+
{ "kana_FU", 0x4CC },
|
| 723 |
+
{ "kana_HU", 0x4CC },
|
| 724 |
+
{ "kana_HE", 0x4CD },
|
| 725 |
+
{ "kana_HO", 0x4CE },
|
| 726 |
+
{ "kana_MA", 0x4CF },
|
| 727 |
+
{ "kana_MI", 0x4D0 },
|
| 728 |
+
{ "kana_MU", 0x4D1 },
|
| 729 |
+
{ "kana_ME", 0x4D2 },
|
| 730 |
+
{ "kana_MO", 0x4D3 },
|
| 731 |
+
{ "kana_YA", 0x4D4 },
|
| 732 |
+
{ "kana_YU", 0x4D5 },
|
| 733 |
+
{ "kana_YO", 0x4D6 },
|
| 734 |
+
{ "kana_RA", 0x4D7 },
|
| 735 |
+
{ "kana_RI", 0x4D8 },
|
| 736 |
+
{ "kana_RU", 0x4D9 },
|
| 737 |
+
{ "kana_RE", 0x4DA },
|
| 738 |
+
{ "kana_RO", 0x4DB },
|
| 739 |
+
{ "kana_WA", 0x4DC },
|
| 740 |
+
{ "kana_N", 0x4DD },
|
| 741 |
+
{ "voicedsound", 0x4DE },
|
| 742 |
+
{ "semivoicedsound", 0x4DF },
|
| 743 |
+
{ "Arabic_comma", 0x5AC },
|
| 744 |
+
{ "Arabic_semicolon", 0x5BB },
|
| 745 |
+
{ "Arabic_question_mark", 0x5BF },
|
| 746 |
+
{ "Arabic_hamza", 0x5C1 },
|
| 747 |
+
{ "Arabic_maddaonalef", 0x5C2 },
|
| 748 |
+
{ "Arabic_hamzaonalef", 0x5C3 },
|
| 749 |
+
{ "Arabic_hamzaonwaw", 0x5C4 },
|
| 750 |
+
{ "Arabic_hamzaunderalef", 0x5C5 },
|
| 751 |
+
{ "Arabic_hamzaonyeh", 0x5C6 },
|
| 752 |
+
{ "Arabic_alef", 0x5C7 },
|
| 753 |
+
{ "Arabic_beh", 0x5C8 },
|
| 754 |
+
{ "Arabic_tehmarbuta", 0x5C9 },
|
| 755 |
+
{ "Arabic_teh", 0x5CA },
|
| 756 |
+
{ "Arabic_theh", 0x5CB },
|
| 757 |
+
{ "Arabic_jeem", 0x5CC },
|
| 758 |
+
{ "Arabic_hah", 0x5CD },
|
| 759 |
+
{ "Arabic_khah", 0x5CE },
|
| 760 |
+
{ "Arabic_dal", 0x5CF },
|
| 761 |
+
{ "Arabic_thal", 0x5D0 },
|
| 762 |
+
{ "Arabic_ra", 0x5D1 },
|
| 763 |
+
{ "Arabic_zain", 0x5D2 },
|
| 764 |
+
{ "Arabic_seen", 0x5D3 },
|
| 765 |
+
{ "Arabic_sheen", 0x5D4 },
|
| 766 |
+
{ "Arabic_sad", 0x5D5 },
|
| 767 |
+
{ "Arabic_dad", 0x5D6 },
|
| 768 |
+
{ "Arabic_tah", 0x5D7 },
|
| 769 |
+
{ "Arabic_zah", 0x5D8 },
|
| 770 |
+
{ "Arabic_ain", 0x5D9 },
|
| 771 |
+
{ "Arabic_ghain", 0x5DA },
|
| 772 |
+
{ "Arabic_tatweel", 0x5E0 },
|
| 773 |
+
{ "Arabic_feh", 0x5E1 },
|
| 774 |
+
{ "Arabic_qaf", 0x5E2 },
|
| 775 |
+
{ "Arabic_kaf", 0x5E3 },
|
| 776 |
+
{ "Arabic_lam", 0x5E4 },
|
| 777 |
+
{ "Arabic_meem", 0x5E5 },
|
| 778 |
+
{ "Arabic_noon", 0x5E6 },
|
| 779 |
+
{ "Arabic_ha", 0x5E7 },
|
| 780 |
+
{ "Arabic_heh", 0x5E7 },
|
| 781 |
+
{ "Arabic_waw", 0x5E8 },
|
| 782 |
+
{ "Arabic_alefmaksura", 0x5E9 },
|
| 783 |
+
{ "Arabic_yeh", 0x5EA },
|
| 784 |
+
{ "Arabic_fathatan", 0x5EB },
|
| 785 |
+
{ "Arabic_dammatan", 0x5EC },
|
| 786 |
+
{ "Arabic_kasratan", 0x5ED },
|
| 787 |
+
{ "Arabic_fatha", 0x5EE },
|
| 788 |
+
{ "Arabic_damma", 0x5EF },
|
| 789 |
+
{ "Arabic_kasra", 0x5F0 },
|
| 790 |
+
{ "Arabic_shadda", 0x5F1 },
|
| 791 |
+
{ "Arabic_sukun", 0x5F2 },
|
| 792 |
+
{ "Serbian_dje", 0x6A1 },
|
| 793 |
+
{ "Macedonia_gje", 0x6A2 },
|
| 794 |
+
{ "Cyrillic_io", 0x6A3 },
|
| 795 |
+
{ "Ukrainian_ie", 0x6A4 },
|
| 796 |
+
{ "Ukranian_je", 0x6A4 },
|
| 797 |
+
{ "Macedonia_dse", 0x6A5 },
|
| 798 |
+
{ "Ukrainian_i", 0x6A6 },
|
| 799 |
+
{ "Ukranian_i", 0x6A6 },
|
| 800 |
+
{ "Ukrainian_yi", 0x6A7 },
|
| 801 |
+
{ "Ukranian_yi", 0x6A7 },
|
| 802 |
+
{ "Cyrillic_je", 0x6A8 },
|
| 803 |
+
{ "Serbian_je", 0x6A8 },
|
| 804 |
+
{ "Cyrillic_lje", 0x6A9 },
|
| 805 |
+
{ "Serbian_lje", 0x6A9 },
|
| 806 |
+
{ "Cyrillic_nje", 0x6AA },
|
| 807 |
+
{ "Serbian_nje", 0x6AA },
|
| 808 |
+
{ "Serbian_tshe", 0x6AB },
|
| 809 |
+
{ "Macedonia_kje", 0x6AC },
|
| 810 |
+
{ "Ukrainian_ghe_with_upturn", 0x6AD },
|
| 811 |
+
{ "Byelorussian_shortu", 0x6AE },
|
| 812 |
+
{ "Cyrillic_dzhe", 0x6AF },
|
| 813 |
+
{ "Serbian_dze", 0x6AF },
|
| 814 |
+
{ "numerosign", 0x6B0 },
|
| 815 |
+
{ "Serbian_DJE", 0x6B1 },
|
| 816 |
+
{ "Macedonia_GJE", 0x6B2 },
|
| 817 |
+
{ "Cyrillic_IO", 0x6B3 },
|
| 818 |
+
{ "Ukrainian_IE", 0x6B4 },
|
| 819 |
+
{ "Ukranian_JE", 0x6B4 },
|
| 820 |
+
{ "Macedonia_DSE", 0x6B5 },
|
| 821 |
+
{ "Ukrainian_I", 0x6B6 },
|
| 822 |
+
{ "Ukranian_I", 0x6B6 },
|
| 823 |
+
{ "Ukrainian_YI", 0x6B7 },
|
| 824 |
+
{ "Ukranian_YI", 0x6B7 },
|
| 825 |
+
{ "Cyrillic_JE", 0x6B8 },
|
| 826 |
+
{ "Serbian_JE", 0x6B8 },
|
| 827 |
+
{ "Cyrillic_LJE", 0x6B9 },
|
| 828 |
+
{ "Serbian_LJE", 0x6B9 },
|
| 829 |
+
{ "Cyrillic_NJE", 0x6BA },
|
| 830 |
+
{ "Serbian_NJE", 0x6BA },
|
| 831 |
+
{ "Serbian_TSHE", 0x6BB },
|
| 832 |
+
{ "Macedonia_KJE", 0x6BC },
|
| 833 |
+
{ "Ukrainian_GHE_WITH_UPTURN", 0x6BD },
|
| 834 |
+
{ "Byelorussian_SHORTU", 0x6BE },
|
| 835 |
+
{ "Cyrillic_DZHE", 0x6BF },
|
| 836 |
+
{ "Serbian_DZE", 0x6BF },
|
| 837 |
+
{ "Cyrillic_yu", 0x6C0 },
|
| 838 |
+
{ "Cyrillic_a", 0x6C1 },
|
| 839 |
+
{ "Cyrillic_be", 0x6C2 },
|
| 840 |
+
{ "Cyrillic_tse", 0x6C3 },
|
| 841 |
+
{ "Cyrillic_de", 0x6C4 },
|
| 842 |
+
{ "Cyrillic_ie", 0x6C5 },
|
| 843 |
+
{ "Cyrillic_ef", 0x6C6 },
|
| 844 |
+
{ "Cyrillic_ghe", 0x6C7 },
|
| 845 |
+
{ "Cyrillic_ha", 0x6C8 },
|
| 846 |
+
{ "Cyrillic_i", 0x6C9 },
|
| 847 |
+
{ "Cyrillic_shorti", 0x6CA },
|
| 848 |
+
{ "Cyrillic_ka", 0x6CB },
|
| 849 |
+
{ "Cyrillic_el", 0x6CC },
|
| 850 |
+
{ "Cyrillic_em", 0x6CD },
|
| 851 |
+
{ "Cyrillic_en", 0x6CE },
|
| 852 |
+
{ "Cyrillic_o", 0x6CF },
|
| 853 |
+
{ "Cyrillic_pe", 0x6D0 },
|
| 854 |
+
{ "Cyrillic_ya", 0x6D1 },
|
| 855 |
+
{ "Cyrillic_er", 0x6D2 },
|
| 856 |
+
{ "Cyrillic_es", 0x6D3 },
|
| 857 |
+
{ "Cyrillic_te", 0x6D4 },
|
| 858 |
+
{ "Cyrillic_u", 0x6D5 },
|
| 859 |
+
{ "Cyrillic_zhe", 0x6D6 },
|
| 860 |
+
{ "Cyrillic_ve", 0x6D7 },
|
| 861 |
+
{ "Cyrillic_softsign", 0x6D8 },
|
| 862 |
+
{ "Cyrillic_yeru", 0x6D9 },
|
| 863 |
+
{ "Cyrillic_ze", 0x6DA },
|
| 864 |
+
{ "Cyrillic_sha", 0x6DB },
|
| 865 |
+
{ "Cyrillic_e", 0x6DC },
|
| 866 |
+
{ "Cyrillic_shcha", 0x6DD },
|
| 867 |
+
{ "Cyrillic_che", 0x6DE },
|
| 868 |
+
{ "Cyrillic_hardsign", 0x6DF },
|
| 869 |
+
{ "Cyrillic_YU", 0x6E0 },
|
| 870 |
+
{ "Cyrillic_A", 0x6E1 },
|
| 871 |
+
{ "Cyrillic_BE", 0x6E2 },
|
| 872 |
+
{ "Cyrillic_TSE", 0x6E3 },
|
| 873 |
+
{ "Cyrillic_DE", 0x6E4 },
|
| 874 |
+
{ "Cyrillic_IE", 0x6E5 },
|
| 875 |
+
{ "Cyrillic_EF", 0x6E6 },
|
| 876 |
+
{ "Cyrillic_GHE", 0x6E7 },
|
| 877 |
+
{ "Cyrillic_HA", 0x6E8 },
|
| 878 |
+
{ "Cyrillic_I", 0x6E9 },
|
| 879 |
+
{ "Cyrillic_SHORTI", 0x6EA },
|
| 880 |
+
{ "Cyrillic_KA", 0x6EB },
|
| 881 |
+
{ "Cyrillic_EL", 0x6EC },
|
| 882 |
+
{ "Cyrillic_EM", 0x6ED },
|
| 883 |
+
{ "Cyrillic_EN", 0x6EE },
|
| 884 |
+
{ "Cyrillic_O", 0x6EF },
|
| 885 |
+
{ "Cyrillic_PE", 0x6F0 },
|
| 886 |
+
{ "Cyrillic_YA", 0x6F1 },
|
| 887 |
+
{ "Cyrillic_ER", 0x6F2 },
|
| 888 |
+
{ "Cyrillic_ES", 0x6F3 },
|
| 889 |
+
{ "Cyrillic_TE", 0x6F4 },
|
| 890 |
+
{ "Cyrillic_U", 0x6F5 },
|
| 891 |
+
{ "Cyrillic_ZHE", 0x6F6 },
|
| 892 |
+
{ "Cyrillic_VE", 0x6F7 },
|
| 893 |
+
{ "Cyrillic_SOFTSIGN", 0x6F8 },
|
| 894 |
+
{ "Cyrillic_YERU", 0x6F9 },
|
| 895 |
+
{ "Cyrillic_ZE", 0x6FA },
|
| 896 |
+
{ "Cyrillic_SHA", 0x6FB },
|
| 897 |
+
{ "Cyrillic_E", 0x6FC },
|
| 898 |
+
{ "Cyrillic_SHCHA", 0x6FD },
|
| 899 |
+
{ "Cyrillic_CHE", 0x6FE },
|
| 900 |
+
{ "Cyrillic_HARDSIGN", 0x6FF },
|
| 901 |
+
{ "Greek_ALPHAaccent", 0x7A1 },
|
| 902 |
+
{ "Greek_EPSILONaccent", 0x7A2 },
|
| 903 |
+
{ "Greek_ETAaccent", 0x7A3 },
|
| 904 |
+
{ "Greek_IOTAaccent", 0x7A4 },
|
| 905 |
+
{ "Greek_IOTAdieresis", 0x7A5 },
|
| 906 |
+
{ "Greek_IOTAdiaeresis", 0x7A5 },
|
| 907 |
+
{ "Greek_IOTAaccentdiaeresis", 0x7A6 },
|
| 908 |
+
{ "Greek_OMICRONaccent", 0x7A7 },
|
| 909 |
+
{ "Greek_UPSILONaccent", 0x7A8 },
|
| 910 |
+
{ "Greek_UPSILONdieresis", 0x7A9 },
|
| 911 |
+
{ "Greek_UPSILONaccentdieresis", 0x7AA },
|
| 912 |
+
{ "Greek_OMEGAaccent", 0x7AB },
|
| 913 |
+
{ "Greek_accentdieresis", 0x7AE },
|
| 914 |
+
{ "Greek_horizbar", 0x7AF },
|
| 915 |
+
{ "Greek_alphaaccent", 0x7B1 },
|
| 916 |
+
{ "Greek_epsilonaccent", 0x7B2 },
|
| 917 |
+
{ "Greek_etaaccent", 0x7B3 },
|
| 918 |
+
{ "Greek_iotaaccent", 0x7B4 },
|
| 919 |
+
{ "Greek_iotadieresis", 0x7B5 },
|
| 920 |
+
{ "Greek_iotaaccentdieresis", 0x7B6 },
|
| 921 |
+
{ "Greek_omicronaccent", 0x7B7 },
|
| 922 |
+
{ "Greek_upsilonaccent", 0x7B8 },
|
| 923 |
+
{ "Greek_upsilondieresis", 0x7B9 },
|
| 924 |
+
{ "Greek_upsilonaccentdieresis", 0x7BA },
|
| 925 |
+
{ "Greek_omegaaccent", 0x7BB },
|
| 926 |
+
{ "Greek_ALPHA", 0x7C1 },
|
| 927 |
+
{ "Greek_BETA", 0x7C2 },
|
| 928 |
+
{ "Greek_GAMMA", 0x7C3 },
|
| 929 |
+
{ "Greek_DELTA", 0x7C4 },
|
| 930 |
+
{ "Greek_EPSILON", 0x7C5 },
|
| 931 |
+
{ "Greek_ZETA", 0x7C6 },
|
| 932 |
+
{ "Greek_ETA", 0x7C7 },
|
| 933 |
+
{ "Greek_THETA", 0x7C8 },
|
| 934 |
+
{ "Greek_IOTA", 0x7C9 },
|
| 935 |
+
{ "Greek_KAPPA", 0x7CA },
|
| 936 |
+
{ "Greek_LAMDA", 0x7CB },
|
| 937 |
+
{ "Greek_LAMBDA", 0x7CB },
|
| 938 |
+
{ "Greek_MU", 0x7CC },
|
| 939 |
+
{ "Greek_NU", 0x7CD },
|
| 940 |
+
{ "Greek_XI", 0x7CE },
|
| 941 |
+
{ "Greek_OMICRON", 0x7CF },
|
| 942 |
+
{ "Greek_PI", 0x7D0 },
|
| 943 |
+
{ "Greek_RHO", 0x7D1 },
|
| 944 |
+
{ "Greek_SIGMA", 0x7D2 },
|
| 945 |
+
{ "Greek_TAU", 0x7D4 },
|
| 946 |
+
{ "Greek_UPSILON", 0x7D5 },
|
| 947 |
+
{ "Greek_PHI", 0x7D6 },
|
| 948 |
+
{ "Greek_CHI", 0x7D7 },
|
| 949 |
+
{ "Greek_PSI", 0x7D8 },
|
| 950 |
+
{ "Greek_OMEGA", 0x7D9 },
|
| 951 |
+
{ "Greek_alpha", 0x7E1 },
|
| 952 |
+
{ "Greek_beta", 0x7E2 },
|
| 953 |
+
{ "Greek_gamma", 0x7E3 },
|
| 954 |
+
{ "Greek_delta", 0x7E4 },
|
| 955 |
+
{ "Greek_epsilon", 0x7E5 },
|
| 956 |
+
{ "Greek_zeta", 0x7E6 },
|
| 957 |
+
{ "Greek_eta", 0x7E7 },
|
| 958 |
+
{ "Greek_theta", 0x7E8 },
|
| 959 |
+
{ "Greek_iota", 0x7E9 },
|
| 960 |
+
{ "Greek_kappa", 0x7EA },
|
| 961 |
+
{ "Greek_lamda", 0x7EB },
|
| 962 |
+
{ "Greek_lambda", 0x7EB },
|
| 963 |
+
{ "Greek_mu", 0x7EC },
|
| 964 |
+
{ "Greek_nu", 0x7ED },
|
| 965 |
+
{ "Greek_xi", 0x7EE },
|
| 966 |
+
{ "Greek_omicron", 0x7EF },
|
| 967 |
+
{ "Greek_pi", 0x7F0 },
|
| 968 |
+
{ "Greek_rho", 0x7F1 },
|
| 969 |
+
{ "Greek_sigma", 0x7F2 },
|
| 970 |
+
{ "Greek_finalsmallsigma", 0x7F3 },
|
| 971 |
+
{ "Greek_tau", 0x7F4 },
|
| 972 |
+
{ "Greek_upsilon", 0x7F5 },
|
| 973 |
+
{ "Greek_phi", 0x7F6 },
|
| 974 |
+
{ "Greek_chi", 0x7F7 },
|
| 975 |
+
{ "Greek_psi", 0x7F8 },
|
| 976 |
+
{ "Greek_omega", 0x7F9 },
|
| 977 |
+
{ "leftradical", 0x8A1 },
|
| 978 |
+
{ "topleftradical", 0x8A2 },
|
| 979 |
+
{ "horizconnector", 0x8A3 },
|
| 980 |
+
{ "topintegral", 0x8A4 },
|
| 981 |
+
{ "botintegral", 0x8A5 },
|
| 982 |
+
{ "vertconnector", 0x8A6 },
|
| 983 |
+
{ "topleftsqbracket", 0x8A7 },
|
| 984 |
+
{ "botleftsqbracket", 0x8A8 },
|
| 985 |
+
{ "toprightsqbracket", 0x8A9 },
|
| 986 |
+
{ "botrightsqbracket", 0x8AA },
|
| 987 |
+
{ "topleftparens", 0x8AB },
|
| 988 |
+
{ "botleftparens", 0x8AC },
|
| 989 |
+
{ "toprightparens", 0x8AD },
|
| 990 |
+
{ "botrightparens", 0x8AE },
|
| 991 |
+
{ "leftmiddlecurlybrace", 0x8AF },
|
| 992 |
+
{ "rightmiddlecurlybrace", 0x8B0 },
|
| 993 |
+
{ "topleftsummation", 0x8B1 },
|
| 994 |
+
{ "botleftsummation", 0x8B2 },
|
| 995 |
+
{ "topvertsummationconnector", 0x8B3 },
|
| 996 |
+
{ "botvertsummationconnector", 0x8B4 },
|
| 997 |
+
{ "toprightsummation", 0x8B5 },
|
| 998 |
+
{ "botrightsummation", 0x8B6 },
|
| 999 |
+
{ "rightmiddlesummation", 0x8B7 },
|
| 1000 |
+
{ "lessthanequal", 0x8BC },
|
| 1001 |
+
{ "notequal", 0x8BD },
|
| 1002 |
+
{ "greaterthanequal", 0x8BE },
|
| 1003 |
+
{ "integral", 0x8BF },
|
| 1004 |
+
{ "therefore", 0x8C0 },
|
| 1005 |
+
{ "variation", 0x8C1 },
|
| 1006 |
+
{ "infinity", 0x8C2 },
|
| 1007 |
+
{ "nabla", 0x8C5 },
|
| 1008 |
+
{ "approximate", 0x8C8 },
|
| 1009 |
+
{ "similarequal", 0x8C9 },
|
| 1010 |
+
{ "ifonlyif", 0x8CD },
|
| 1011 |
+
{ "implies", 0x8CE },
|
| 1012 |
+
{ "identical", 0x8CF },
|
| 1013 |
+
{ "radical", 0x8D6 },
|
| 1014 |
+
{ "includedin", 0x8DA },
|
| 1015 |
+
{ "includes", 0x8DB },
|
| 1016 |
+
{ "intersection", 0x8DC },
|
| 1017 |
+
{ "union", 0x8DD },
|
| 1018 |
+
{ "logicaland", 0x8DE },
|
| 1019 |
+
{ "logicalor", 0x8DF },
|
| 1020 |
+
{ "partialderivative", 0x8EF },
|
| 1021 |
+
{ "function", 0x8F6 },
|
| 1022 |
+
{ "leftarrow", 0x8FB },
|
| 1023 |
+
{ "uparrow", 0x8FC },
|
| 1024 |
+
{ "rightarrow", 0x8FD },
|
| 1025 |
+
{ "downarrow", 0x8FE },
|
| 1026 |
+
{ "blank", 0x9DF },
|
| 1027 |
+
{ "soliddiamond", 0x9E0 },
|
| 1028 |
+
{ "checkerboard", 0x9E1 },
|
| 1029 |
+
{ "ht", 0x9E2 },
|
| 1030 |
+
{ "ff", 0x9E3 },
|
| 1031 |
+
{ "cr", 0x9E4 },
|
| 1032 |
+
{ "lf", 0x9E5 },
|
| 1033 |
+
{ "nl", 0x9E8 },
|
| 1034 |
+
{ "vt", 0x9E9 },
|
| 1035 |
+
{ "lowrightcorner", 0x9EA },
|
| 1036 |
+
{ "uprightcorner", 0x9EB },
|
| 1037 |
+
{ "upleftcorner", 0x9EC },
|
| 1038 |
+
{ "lowleftcorner", 0x9ED },
|
| 1039 |
+
{ "crossinglines", 0x9EE },
|
| 1040 |
+
{ "horizlinescan1", 0x9EF },
|
| 1041 |
+
{ "horizlinescan3", 0x9F0 },
|
| 1042 |
+
{ "horizlinescan5", 0x9F1 },
|
| 1043 |
+
{ "horizlinescan7", 0x9F2 },
|
| 1044 |
+
{ "horizlinescan9", 0x9F3 },
|
| 1045 |
+
{ "leftt", 0x9F4 },
|
| 1046 |
+
{ "rightt", 0x9F5 },
|
| 1047 |
+
{ "bott", 0x9F6 },
|
| 1048 |
+
{ "topt", 0x9F7 },
|
| 1049 |
+
{ "vertbar", 0x9F8 },
|
| 1050 |
+
{ "emspace", 0xAA1 },
|
| 1051 |
+
{ "enspace", 0xAA2 },
|
| 1052 |
+
{ "em3space", 0xAA3 },
|
| 1053 |
+
{ "em4space", 0xAA4 },
|
| 1054 |
+
{ "digitspace", 0xAA5 },
|
| 1055 |
+
{ "punctspace", 0xAA6 },
|
| 1056 |
+
{ "thinspace", 0xAA7 },
|
| 1057 |
+
{ "hairspace", 0xAA8 },
|
| 1058 |
+
{ "emdash", 0xAA9 },
|
| 1059 |
+
{ "endash", 0xAAA },
|
| 1060 |
+
{ "signifblank", 0xAAC },
|
| 1061 |
+
{ "ellipsis", 0xAAE },
|
| 1062 |
+
{ "doubbaselinedot", 0xAAF },
|
| 1063 |
+
{ "onethird", 0xAB0 },
|
| 1064 |
+
{ "twothirds", 0xAB1 },
|
| 1065 |
+
{ "onefifth", 0xAB2 },
|
| 1066 |
+
{ "twofifths", 0xAB3 },
|
| 1067 |
+
{ "threefifths", 0xAB4 },
|
| 1068 |
+
{ "fourfifths", 0xAB5 },
|
| 1069 |
+
{ "onesixth", 0xAB6 },
|
| 1070 |
+
{ "fivesixths", 0xAB7 },
|
| 1071 |
+
{ "careof", 0xAB8 },
|
| 1072 |
+
{ "figdash", 0xABB },
|
| 1073 |
+
{ "leftanglebracket", 0xABC },
|
| 1074 |
+
{ "decimalpoint", 0xABD },
|
| 1075 |
+
{ "rightanglebracket", 0xABE },
|
| 1076 |
+
{ "marker", 0xABF },
|
| 1077 |
+
{ "oneeighth", 0xAC3 },
|
| 1078 |
+
{ "threeeighths", 0xAC4 },
|
| 1079 |
+
{ "fiveeighths", 0xAC5 },
|
| 1080 |
+
{ "seveneighths", 0xAC6 },
|
| 1081 |
+
{ "trademark", 0xAC9 },
|
| 1082 |
+
{ "signaturemark", 0xACA },
|
| 1083 |
+
{ "trademarkincircle", 0xACB },
|
| 1084 |
+
{ "leftopentriangle", 0xACC },
|
| 1085 |
+
{ "rightopentriangle", 0xACD },
|
| 1086 |
+
{ "emopencircle", 0xACE },
|
| 1087 |
+
{ "emopenrectangle", 0xACF },
|
| 1088 |
+
{ "leftsinglequotemark", 0xAD0 },
|
| 1089 |
+
{ "rightsinglequotemark", 0xAD1 },
|
| 1090 |
+
{ "leftdoublequotemark", 0xAD2 },
|
| 1091 |
+
{ "rightdoublequotemark", 0xAD3 },
|
| 1092 |
+
{ "prescription", 0xAD4 },
|
| 1093 |
+
{ "permille", 0xAD5 },
|
| 1094 |
+
{ "minutes", 0xAD6 },
|
| 1095 |
+
{ "seconds", 0xAD7 },
|
| 1096 |
+
{ "latincross", 0xAD9 },
|
| 1097 |
+
{ "hexagram", 0xADA },
|
| 1098 |
+
{ "filledrectbullet", 0xADB },
|
| 1099 |
+
{ "filledlefttribullet", 0xADC },
|
| 1100 |
+
{ "filledrighttribullet", 0xADD },
|
| 1101 |
+
{ "emfilledcircle", 0xADE },
|
| 1102 |
+
{ "emfilledrect", 0xADF },
|
| 1103 |
+
{ "enopencircbullet", 0xAE0 },
|
| 1104 |
+
{ "enopensquarebullet", 0xAE1 },
|
| 1105 |
+
{ "openrectbullet", 0xAE2 },
|
| 1106 |
+
{ "opentribulletup", 0xAE3 },
|
| 1107 |
+
{ "opentribulletdown", 0xAE4 },
|
| 1108 |
+
{ "openstar", 0xAE5 },
|
| 1109 |
+
{ "enfilledcircbullet", 0xAE6 },
|
| 1110 |
+
{ "enfilledsqbullet", 0xAE7 },
|
| 1111 |
+
{ "filledtribulletup", 0xAE8 },
|
| 1112 |
+
{ "filledtribulletdown", 0xAE9 },
|
| 1113 |
+
{ "leftpointer", 0xAEA },
|
| 1114 |
+
{ "rightpointer", 0xAEB },
|
| 1115 |
+
{ "club", 0xAEC },
|
| 1116 |
+
{ "diamond", 0xAED },
|
| 1117 |
+
{ "heart", 0xAEE },
|
| 1118 |
+
{ "maltesecross", 0xAF0 },
|
| 1119 |
+
{ "dagger", 0xAF1 },
|
| 1120 |
+
{ "doubledagger", 0xAF2 },
|
| 1121 |
+
{ "checkmark", 0xAF3 },
|
| 1122 |
+
{ "ballotcross", 0xAF4 },
|
| 1123 |
+
{ "musicalsharp", 0xAF5 },
|
| 1124 |
+
{ "musicalflat", 0xAF6 },
|
| 1125 |
+
{ "malesymbol", 0xAF7 },
|
| 1126 |
+
{ "femalesymbol", 0xAF8 },
|
| 1127 |
+
{ "telephone", 0xAF9 },
|
| 1128 |
+
{ "telephonerecorder", 0xAFA },
|
| 1129 |
+
{ "phonographcopyright", 0xAFB },
|
| 1130 |
+
{ "caret", 0xAFC },
|
| 1131 |
+
{ "singlelowquotemark", 0xAFD },
|
| 1132 |
+
{ "doublelowquotemark", 0xAFE },
|
| 1133 |
+
{ "cursor", 0xAFF },
|
| 1134 |
+
{ "leftcaret", 0xBA3 },
|
| 1135 |
+
{ "rightcaret", 0xBA6 },
|
| 1136 |
+
{ "downcaret", 0xBA8 },
|
| 1137 |
+
{ "upcaret", 0xBA9 },
|
| 1138 |
+
{ "overbar", 0xBC0 },
|
| 1139 |
+
{ "downtack", 0xBC2 },
|
| 1140 |
+
{ "upshoe", 0xBC3 },
|
| 1141 |
+
{ "downstile", 0xBC4 },
|
| 1142 |
+
{ "underbar", 0xBC6 },
|
| 1143 |
+
{ "jot", 0xBCA },
|
| 1144 |
+
{ "quad", 0xBCC },
|
| 1145 |
+
{ "uptack", 0xBCE },
|
| 1146 |
+
{ "circle", 0xBCF },
|
| 1147 |
+
{ "upstile", 0xBD3 },
|
| 1148 |
+
{ "downshoe", 0xBD6 },
|
| 1149 |
+
{ "rightshoe", 0xBD8 },
|
| 1150 |
+
{ "leftshoe", 0xBDA },
|
| 1151 |
+
{ "lefttack", 0xBDC },
|
| 1152 |
+
{ "righttack", 0xBFC },
|
| 1153 |
+
{ "hebrew_doublelowline", 0xCDF },
|
| 1154 |
+
{ "hebrew_aleph", 0xCE0 },
|
| 1155 |
+
{ "hebrew_bet", 0xCE1 },
|
| 1156 |
+
{ "hebrew_beth", 0xCE1 },
|
| 1157 |
+
{ "hebrew_gimel", 0xCE2 },
|
| 1158 |
+
{ "hebrew_gimmel", 0xCE2 },
|
| 1159 |
+
{ "hebrew_dalet", 0xCE3 },
|
| 1160 |
+
{ "hebrew_daleth", 0xCE3 },
|
| 1161 |
+
{ "hebrew_he", 0xCE4 },
|
| 1162 |
+
{ "hebrew_waw", 0xCE5 },
|
| 1163 |
+
{ "hebrew_zain", 0xCE6 },
|
| 1164 |
+
{ "hebrew_zayin", 0xCE6 },
|
| 1165 |
+
{ "hebrew_chet", 0xCE7 },
|
| 1166 |
+
{ "hebrew_het", 0xCE7 },
|
| 1167 |
+
{ "hebrew_tet", 0xCE8 },
|
| 1168 |
+
{ "hebrew_teth", 0xCE8 },
|
| 1169 |
+
{ "hebrew_yod", 0xCE9 },
|
| 1170 |
+
{ "hebrew_finalkaph", 0xCEA },
|
| 1171 |
+
{ "hebrew_kaph", 0xCEB },
|
| 1172 |
+
{ "hebrew_lamed", 0xCEC },
|
| 1173 |
+
{ "hebrew_finalmem", 0xCED },
|
| 1174 |
+
{ "hebrew_mem", 0xCEE },
|
| 1175 |
+
{ "hebrew_finalnun", 0xCEF },
|
| 1176 |
+
{ "hebrew_nun", 0xCF0 },
|
| 1177 |
+
{ "hebrew_samech", 0xCF1 },
|
| 1178 |
+
{ "hebrew_samekh", 0xCF1 },
|
| 1179 |
+
{ "hebrew_ayin", 0xCF2 },
|
| 1180 |
+
{ "hebrew_finalpe", 0xCF3 },
|
| 1181 |
+
{ "hebrew_pe", 0xCF4 },
|
| 1182 |
+
{ "hebrew_finalzade", 0xCF5 },
|
| 1183 |
+
{ "hebrew_finalzadi", 0xCF5 },
|
| 1184 |
+
{ "hebrew_zade", 0xCF6 },
|
| 1185 |
+
{ "hebrew_zadi", 0xCF6 },
|
| 1186 |
+
{ "hebrew_qoph", 0xCF7 },
|
| 1187 |
+
{ "hebrew_kuf", 0xCF7 },
|
| 1188 |
+
{ "hebrew_resh", 0xCF8 },
|
| 1189 |
+
{ "hebrew_shin", 0xCF9 },
|
| 1190 |
+
{ "hebrew_taw", 0xCFA },
|
| 1191 |
+
{ "hebrew_taf", 0xCFA },
|
| 1192 |
+
{ "Thai_kokai", 0xDA1 },
|
| 1193 |
+
{ "Thai_khokhai", 0xDA2 },
|
| 1194 |
+
{ "Thai_khokhuat", 0xDA3 },
|
| 1195 |
+
{ "Thai_khokhwai", 0xDA4 },
|
| 1196 |
+
{ "Thai_khokhon", 0xDA5 },
|
| 1197 |
+
{ "Thai_khorakhang", 0xDA6 },
|
| 1198 |
+
{ "Thai_ngongu", 0xDA7 },
|
| 1199 |
+
{ "Thai_chochan", 0xDA8 },
|
| 1200 |
+
{ "Thai_choching", 0xDA9 },
|
| 1201 |
+
{ "Thai_chochang", 0xDAA },
|
| 1202 |
+
{ "Thai_soso", 0xDAB },
|
| 1203 |
+
{ "Thai_chochoe", 0xDAC },
|
| 1204 |
+
{ "Thai_yoying", 0xDAD },
|
| 1205 |
+
{ "Thai_dochada", 0xDAE },
|
| 1206 |
+
{ "Thai_topatak", 0xDAF },
|
| 1207 |
+
{ "Thai_thothan", 0xDB0 },
|
| 1208 |
+
{ "Thai_thonangmontho", 0xDB1 },
|
| 1209 |
+
{ "Thai_thophuthao", 0xDB2 },
|
| 1210 |
+
{ "Thai_nonen", 0xDB3 },
|
| 1211 |
+
{ "Thai_dodek", 0xDB4 },
|
| 1212 |
+
{ "Thai_totao", 0xDB5 },
|
| 1213 |
+
{ "Thai_thothung", 0xDB6 },
|
| 1214 |
+
{ "Thai_thothahan", 0xDB7 },
|
| 1215 |
+
{ "Thai_thothong", 0xDB8 },
|
| 1216 |
+
{ "Thai_nonu", 0xDB9 },
|
| 1217 |
+
{ "Thai_bobaimai", 0xDBA },
|
| 1218 |
+
{ "Thai_popla", 0xDBB },
|
| 1219 |
+
{ "Thai_phophung", 0xDBC },
|
| 1220 |
+
{ "Thai_fofa", 0xDBD },
|
| 1221 |
+
{ "Thai_phophan", 0xDBE },
|
| 1222 |
+
{ "Thai_fofan", 0xDBF },
|
| 1223 |
+
{ "Thai_phosamphao", 0xDC0 },
|
| 1224 |
+
{ "Thai_moma", 0xDC1 },
|
| 1225 |
+
{ "Thai_yoyak", 0xDC2 },
|
| 1226 |
+
{ "Thai_rorua", 0xDC3 },
|
| 1227 |
+
{ "Thai_ru", 0xDC4 },
|
| 1228 |
+
{ "Thai_loling", 0xDC5 },
|
| 1229 |
+
{ "Thai_lu", 0xDC6 },
|
| 1230 |
+
{ "Thai_wowaen", 0xDC7 },
|
| 1231 |
+
{ "Thai_sosala", 0xDC8 },
|
| 1232 |
+
{ "Thai_sorusi", 0xDC9 },
|
| 1233 |
+
{ "Thai_sosua", 0xDCA },
|
| 1234 |
+
{ "Thai_hohip", 0xDCB },
|
| 1235 |
+
{ "Thai_lochula", 0xDCC },
|
| 1236 |
+
{ "Thai_oang", 0xDCD },
|
| 1237 |
+
{ "Thai_honokhuk", 0xDCE },
|
| 1238 |
+
{ "Thai_paiyannoi", 0xDCF },
|
| 1239 |
+
{ "Thai_saraa", 0xDD0 },
|
| 1240 |
+
{ "Thai_maihanakat", 0xDD1 },
|
| 1241 |
+
{ "Thai_saraaa", 0xDD2 },
|
| 1242 |
+
{ "Thai_saraam", 0xDD3 },
|
| 1243 |
+
{ "Thai_sarai", 0xDD4 },
|
| 1244 |
+
{ "Thai_saraii", 0xDD5 },
|
| 1245 |
+
{ "Thai_saraue", 0xDD6 },
|
| 1246 |
+
{ "Thai_sarauee", 0xDD7 },
|
| 1247 |
+
{ "Thai_sarau", 0xDD8 },
|
| 1248 |
+
{ "Thai_sarauu", 0xDD9 },
|
| 1249 |
+
{ "Thai_phinthu", 0xDDA },
|
| 1250 |
+
{ "Thai_maihanakat_maitho", 0xDDE },
|
| 1251 |
+
{ "Thai_baht", 0xDDF },
|
| 1252 |
+
{ "Thai_sarae", 0xDE0 },
|
| 1253 |
+
{ "Thai_saraae", 0xDE1 },
|
| 1254 |
+
{ "Thai_sarao", 0xDE2 },
|
| 1255 |
+
{ "Thai_saraaimaimuan", 0xDE3 },
|
| 1256 |
+
{ "Thai_saraaimaimalai", 0xDE4 },
|
| 1257 |
+
{ "Thai_lakkhangyao", 0xDE5 },
|
| 1258 |
+
{ "Thai_maiyamok", 0xDE6 },
|
| 1259 |
+
{ "Thai_maitaikhu", 0xDE7 },
|
| 1260 |
+
{ "Thai_maiek", 0xDE8 },
|
| 1261 |
+
{ "Thai_maitho", 0xDE9 },
|
| 1262 |
+
{ "Thai_maitri", 0xDEA },
|
| 1263 |
+
{ "Thai_maichattawa", 0xDEB },
|
| 1264 |
+
{ "Thai_thanthakhat", 0xDEC },
|
| 1265 |
+
{ "Thai_nikhahit", 0xDED },
|
| 1266 |
+
{ "Thai_leksun", 0xDF0 },
|
| 1267 |
+
{ "Thai_leknung", 0xDF1 },
|
| 1268 |
+
{ "Thai_leksong", 0xDF2 },
|
| 1269 |
+
{ "Thai_leksam", 0xDF3 },
|
| 1270 |
+
{ "Thai_leksi", 0xDF4 },
|
| 1271 |
+
{ "Thai_lekha", 0xDF5 },
|
| 1272 |
+
{ "Thai_lekhok", 0xDF6 },
|
| 1273 |
+
{ "Thai_lekchet", 0xDF7 },
|
| 1274 |
+
{ "Thai_lekpaet", 0xDF8 },
|
| 1275 |
+
{ "Thai_lekkao", 0xDF9 },
|
| 1276 |
+
{ "Hangul_Kiyeog", 0xEA1 },
|
| 1277 |
+
{ "Hangul_SsangKiyeog", 0xEA2 },
|
| 1278 |
+
{ "Hangul_KiyeogSios", 0xEA3 },
|
| 1279 |
+
{ "Hangul_Nieun", 0xEA4 },
|
| 1280 |
+
{ "Hangul_NieunJieuj", 0xEA5 },
|
| 1281 |
+
{ "Hangul_NieunHieuh", 0xEA6 },
|
| 1282 |
+
{ "Hangul_Dikeud", 0xEA7 },
|
| 1283 |
+
{ "Hangul_SsangDikeud", 0xEA8 },
|
| 1284 |
+
{ "Hangul_Rieul", 0xEA9 },
|
| 1285 |
+
{ "Hangul_RieulKiyeog", 0xEAA },
|
| 1286 |
+
{ "Hangul_RieulMieum", 0xEAB },
|
| 1287 |
+
{ "Hangul_RieulPieub", 0xEAC },
|
| 1288 |
+
{ "Hangul_RieulSios", 0xEAD },
|
| 1289 |
+
{ "Hangul_RieulTieut", 0xEAE },
|
| 1290 |
+
{ "Hangul_RieulPhieuf", 0xEAF },
|
| 1291 |
+
{ "Hangul_RieulHieuh", 0xEB0 },
|
| 1292 |
+
{ "Hangul_Mieum", 0xEB1 },
|
| 1293 |
+
{ "Hangul_Pieub", 0xEB2 },
|
| 1294 |
+
{ "Hangul_SsangPieub", 0xEB3 },
|
| 1295 |
+
{ "Hangul_PieubSios", 0xEB4 },
|
| 1296 |
+
{ "Hangul_Sios", 0xEB5 },
|
| 1297 |
+
{ "Hangul_SsangSios", 0xEB6 },
|
| 1298 |
+
{ "Hangul_Ieung", 0xEB7 },
|
| 1299 |
+
{ "Hangul_Jieuj", 0xEB8 },
|
| 1300 |
+
{ "Hangul_SsangJieuj", 0xEB9 },
|
| 1301 |
+
{ "Hangul_Cieuc", 0xEBA },
|
| 1302 |
+
{ "Hangul_Khieuq", 0xEBB },
|
| 1303 |
+
{ "Hangul_Tieut", 0xEBC },
|
| 1304 |
+
{ "Hangul_Phieuf", 0xEBD },
|
| 1305 |
+
{ "Hangul_Hieuh", 0xEBE },
|
| 1306 |
+
{ "Hangul_A", 0xEBF },
|
| 1307 |
+
{ "Hangul_AE", 0xEC0 },
|
| 1308 |
+
{ "Hangul_YA", 0xEC1 },
|
| 1309 |
+
{ "Hangul_YAE", 0xEC2 },
|
| 1310 |
+
{ "Hangul_EO", 0xEC3 },
|
| 1311 |
+
{ "Hangul_E", 0xEC4 },
|
| 1312 |
+
{ "Hangul_YEO", 0xEC5 },
|
| 1313 |
+
{ "Hangul_YE", 0xEC6 },
|
| 1314 |
+
{ "Hangul_O", 0xEC7 },
|
| 1315 |
+
{ "Hangul_WA", 0xEC8 },
|
| 1316 |
+
{ "Hangul_WAE", 0xEC9 },
|
| 1317 |
+
{ "Hangul_OE", 0xECA },
|
| 1318 |
+
{ "Hangul_YO", 0xECB },
|
| 1319 |
+
{ "Hangul_U", 0xECC },
|
| 1320 |
+
{ "Hangul_WEO", 0xECD },
|
| 1321 |
+
{ "Hangul_WE", 0xECE },
|
| 1322 |
+
{ "Hangul_WI", 0xECF },
|
| 1323 |
+
{ "Hangul_YU", 0xED0 },
|
| 1324 |
+
{ "Hangul_EU", 0xED1 },
|
| 1325 |
+
{ "Hangul_YI", 0xED2 },
|
| 1326 |
+
{ "Hangul_I", 0xED3 },
|
| 1327 |
+
{ "Hangul_J_Kiyeog", 0xED4 },
|
| 1328 |
+
{ "Hangul_J_SsangKiyeog", 0xED5 },
|
| 1329 |
+
{ "Hangul_J_KiyeogSios", 0xED6 },
|
| 1330 |
+
{ "Hangul_J_Nieun", 0xED7 },
|
| 1331 |
+
{ "Hangul_J_NieunJieuj", 0xED8 },
|
| 1332 |
+
{ "Hangul_J_NieunHieuh", 0xED9 },
|
| 1333 |
+
{ "Hangul_J_Dikeud", 0xEDA },
|
| 1334 |
+
{ "Hangul_J_Rieul", 0xEDB },
|
| 1335 |
+
{ "Hangul_J_RieulKiyeog", 0xEDC },
|
| 1336 |
+
{ "Hangul_J_RieulMieum", 0xEDD },
|
| 1337 |
+
{ "Hangul_J_RieulPieub", 0xEDE },
|
| 1338 |
+
{ "Hangul_J_RieulSios", 0xEDF },
|
| 1339 |
+
{ "Hangul_J_RieulTieut", 0xEE0 },
|
| 1340 |
+
{ "Hangul_J_RieulPhieuf", 0xEE1 },
|
| 1341 |
+
{ "Hangul_J_RieulHieuh", 0xEE2 },
|
| 1342 |
+
{ "Hangul_J_Mieum", 0xEE3 },
|
| 1343 |
+
{ "Hangul_J_Pieub", 0xEE4 },
|
| 1344 |
+
{ "Hangul_J_PieubSios", 0xEE5 },
|
| 1345 |
+
{ "Hangul_J_Sios", 0xEE6 },
|
| 1346 |
+
{ "Hangul_J_SsangSios", 0xEE7 },
|
| 1347 |
+
{ "Hangul_J_Ieung", 0xEE8 },
|
| 1348 |
+
{ "Hangul_J_Jieuj", 0xEE9 },
|
| 1349 |
+
{ "Hangul_J_Cieuc", 0xEEA },
|
| 1350 |
+
{ "Hangul_J_Khieuq", 0xEEB },
|
| 1351 |
+
{ "Hangul_J_Tieut", 0xEEC },
|
| 1352 |
+
{ "Hangul_J_Phieuf", 0xEED },
|
| 1353 |
+
{ "Hangul_J_Hieuh", 0xEEE },
|
| 1354 |
+
{ "Hangul_RieulYeorinHieuh", 0xEEF },
|
| 1355 |
+
{ "Hangul_SunkyeongeumMieum", 0xEF0 },
|
| 1356 |
+
{ "Hangul_SunkyeongeumPieub", 0xEF1 },
|
| 1357 |
+
{ "Hangul_PanSios", 0xEF2 },
|
| 1358 |
+
{ "Hangul_KkogjiDalrinIeung", 0xEF3 },
|
| 1359 |
+
{ "Hangul_SunkyeongeumPhieuf", 0xEF4 },
|
| 1360 |
+
{ "Hangul_YeorinHieuh", 0xEF5 },
|
| 1361 |
+
{ "Hangul_AraeA", 0xEF6 },
|
| 1362 |
+
{ "Hangul_AraeAE", 0xEF7 },
|
| 1363 |
+
{ "Hangul_J_PanSios", 0xEF8 },
|
| 1364 |
+
{ "Hangul_J_KkogjiDalrinIeung", 0xEF9 },
|
| 1365 |
+
{ "Hangul_J_YeorinHieuh", 0xEFA },
|
| 1366 |
+
{ "Korean_Won", 0xEFF },
|
| 1367 |
+
{ "XF86ModeLock", 0x1008FF01 },
|
| 1368 |
+
{ "XF86MonBrightnessUp", 0x1008FF02 },
|
| 1369 |
+
{ "XF86MonBrightnessDown", 0x1008FF03 },
|
| 1370 |
+
{ "XF86KbdLightOnOff", 0x1008FF04 },
|
| 1371 |
+
{ "XF86KbdBrightnessUp", 0x1008FF05 },
|
| 1372 |
+
{ "XF86KbdBrightnessDown", 0x1008FF06 },
|
| 1373 |
+
{ "XF86MonBrightnessCycle", 0x1008FF07 },
|
| 1374 |
+
{ "XF86Standby", 0x1008FF10 },
|
| 1375 |
+
{ "XF86AudioLowerVolume", 0x1008FF11 },
|
| 1376 |
+
{ "XF86AudioMute", 0x1008FF12 },
|
| 1377 |
+
{ "XF86AudioRaiseVolume", 0x1008FF13 },
|
| 1378 |
+
{ "XF86AudioPlay", 0x1008FF14 },
|
| 1379 |
+
{ "XF86AudioStop", 0x1008FF15 },
|
| 1380 |
+
{ "XF86AudioPrev", 0x1008FF16 },
|
| 1381 |
+
{ "XF86AudioNext", 0x1008FF17 },
|
| 1382 |
+
{ "XF86HomePage", 0x1008FF18 },
|
| 1383 |
+
{ "XF86Mail", 0x1008FF19 },
|
| 1384 |
+
{ "XF86Start", 0x1008FF1A },
|
| 1385 |
+
{ "XF86Search", 0x1008FF1B },
|
| 1386 |
+
{ "XF86AudioRecord", 0x1008FF1C },
|
| 1387 |
+
{ "XF86Calculator", 0x1008FF1D },
|
| 1388 |
+
{ "XF86Memo", 0x1008FF1E },
|
| 1389 |
+
{ "XF86ToDoList", 0x1008FF1F },
|
| 1390 |
+
{ "XF86Calendar", 0x1008FF20 },
|
| 1391 |
+
{ "XF86PowerDown", 0x1008FF21 },
|
| 1392 |
+
{ "XF86ContrastAdjust", 0x1008FF22 },
|
| 1393 |
+
{ "XF86RockerUp", 0x1008FF23 },
|
| 1394 |
+
{ "XF86RockerDown", 0x1008FF24 },
|
| 1395 |
+
{ "XF86RockerEnter", 0x1008FF25 },
|
| 1396 |
+
{ "XF86Back", 0x1008FF26 },
|
| 1397 |
+
{ "XF86Forward", 0x1008FF27 },
|
| 1398 |
+
{ "XF86Stop", 0x1008FF28 },
|
| 1399 |
+
{ "XF86Refresh", 0x1008FF29 },
|
| 1400 |
+
{ "XF86PowerOff", 0x1008FF2A },
|
| 1401 |
+
{ "XF86WakeUp", 0x1008FF2B },
|
| 1402 |
+
{ "XF86Eject", 0x1008FF2C },
|
| 1403 |
+
{ "XF86ScreenSaver", 0x1008FF2D },
|
| 1404 |
+
{ "XF86WWW", 0x1008FF2E },
|
| 1405 |
+
{ "XF86Sleep", 0x1008FF2F },
|
| 1406 |
+
{ "XF86Favorites", 0x1008FF30 },
|
| 1407 |
+
{ "XF86AudioPause", 0x1008FF31 },
|
| 1408 |
+
{ "XF86AudioMedia", 0x1008FF32 },
|
| 1409 |
+
{ "XF86MyComputer", 0x1008FF33 },
|
| 1410 |
+
{ "XF86VendorHome", 0x1008FF34 },
|
| 1411 |
+
{ "XF86LightBulb", 0x1008FF35 },
|
| 1412 |
+
{ "XF86Shop", 0x1008FF36 },
|
| 1413 |
+
{ "XF86History", 0x1008FF37 },
|
| 1414 |
+
{ "XF86OpenURL", 0x1008FF38 },
|
| 1415 |
+
{ "XF86AddFavorite", 0x1008FF39 },
|
| 1416 |
+
{ "XF86HotLinks", 0x1008FF3A },
|
| 1417 |
+
{ "XF86BrightnessAdjust", 0x1008FF3B },
|
| 1418 |
+
{ "XF86Finance", 0x1008FF3C },
|
| 1419 |
+
{ "XF86Community", 0x1008FF3D },
|
| 1420 |
+
{ "XF86AudioRewind", 0x1008FF3E },
|
| 1421 |
+
{ "XF86BackForward", 0x1008FF3F },
|
| 1422 |
+
{ "XF86Launch0", 0x1008FF40 },
|
| 1423 |
+
{ "XF86Launch1", 0x1008FF41 },
|
| 1424 |
+
{ "XF86Launch2", 0x1008FF42 },
|
| 1425 |
+
{ "XF86Launch3", 0x1008FF43 },
|
| 1426 |
+
{ "XF86Launch4", 0x1008FF44 },
|
| 1427 |
+
{ "XF86Launch5", 0x1008FF45 },
|
| 1428 |
+
{ "XF86Launch6", 0x1008FF46 },
|
| 1429 |
+
{ "XF86Launch7", 0x1008FF47 },
|
| 1430 |
+
{ "XF86Launch8", 0x1008FF48 },
|
| 1431 |
+
{ "XF86Launch9", 0x1008FF49 },
|
| 1432 |
+
{ "XF86LaunchA", 0x1008FF4A },
|
| 1433 |
+
{ "XF86LaunchB", 0x1008FF4B },
|
| 1434 |
+
{ "XF86LaunchC", 0x1008FF4C },
|
| 1435 |
+
{ "XF86LaunchD", 0x1008FF4D },
|
| 1436 |
+
{ "XF86LaunchE", 0x1008FF4E },
|
| 1437 |
+
{ "XF86LaunchF", 0x1008FF4F },
|
| 1438 |
+
{ "XF86ApplicationLeft", 0x1008FF50 },
|
| 1439 |
+
{ "XF86ApplicationRight", 0x1008FF51 },
|
| 1440 |
+
{ "XF86Book", 0x1008FF52 },
|
| 1441 |
+
{ "XF86CD", 0x1008FF53 },
|
| 1442 |
+
{ "XF86Calculater", 0x1008FF54 },
|
| 1443 |
+
{ "XF86Clear", 0x1008FF55 },
|
| 1444 |
+
{ "XF86Close", 0x1008FF56 },
|
| 1445 |
+
{ "XF86Copy", 0x1008FF57 },
|
| 1446 |
+
{ "XF86Cut", 0x1008FF58 },
|
| 1447 |
+
{ "XF86Display", 0x1008FF59 },
|
| 1448 |
+
{ "XF86DOS", 0x1008FF5A },
|
| 1449 |
+
{ "XF86Documents", 0x1008FF5B },
|
| 1450 |
+
{ "XF86Excel", 0x1008FF5C },
|
| 1451 |
+
{ "XF86Explorer", 0x1008FF5D },
|
| 1452 |
+
{ "XF86Game", 0x1008FF5E },
|
| 1453 |
+
{ "XF86Go", 0x1008FF5F },
|
| 1454 |
+
{ "XF86iTouch", 0x1008FF60 },
|
| 1455 |
+
{ "XF86LogOff", 0x1008FF61 },
|
| 1456 |
+
{ "XF86Market", 0x1008FF62 },
|
| 1457 |
+
{ "XF86Meeting", 0x1008FF63 },
|
| 1458 |
+
{ "XF86MenuKB", 0x1008FF65 },
|
| 1459 |
+
{ "XF86MenuPB", 0x1008FF66 },
|
| 1460 |
+
{ "XF86MySites", 0x1008FF67 },
|
| 1461 |
+
{ "XF86New", 0x1008FF68 },
|
| 1462 |
+
{ "XF86News", 0x1008FF69 },
|
| 1463 |
+
{ "XF86OfficeHome", 0x1008FF6A },
|
| 1464 |
+
{ "XF86Open", 0x1008FF6B },
|
| 1465 |
+
{ "XF86Option", 0x1008FF6C },
|
| 1466 |
+
{ "XF86Paste", 0x1008FF6D },
|
| 1467 |
+
{ "XF86Phone", 0x1008FF6E },
|
| 1468 |
+
{ "XF86Q", 0x1008FF70 },
|
| 1469 |
+
{ "XF86Reply", 0x1008FF72 },
|
| 1470 |
+
{ "XF86Reload", 0x1008FF73 },
|
| 1471 |
+
{ "XF86RotateWindows", 0x1008FF74 },
|
| 1472 |
+
{ "XF86RotationPB", 0x1008FF75 },
|
| 1473 |
+
{ "XF86RotationKB", 0x1008FF76 },
|
| 1474 |
+
{ "XF86Save", 0x1008FF77 },
|
| 1475 |
+
{ "XF86ScrollUp", 0x1008FF78 },
|
| 1476 |
+
{ "XF86ScrollDown", 0x1008FF79 },
|
| 1477 |
+
{ "XF86ScrollClick", 0x1008FF7A },
|
| 1478 |
+
{ "XF86Send", 0x1008FF7B },
|
| 1479 |
+
{ "XF86Spell", 0x1008FF7C },
|
| 1480 |
+
{ "XF86SplitScreen", 0x1008FF7D },
|
| 1481 |
+
{ "XF86Support", 0x1008FF7E },
|
| 1482 |
+
{ "XF86TaskPane", 0x1008FF7F },
|
| 1483 |
+
{ "XF86Terminal", 0x1008FF80 },
|
| 1484 |
+
{ "XF86Tools", 0x1008FF81 },
|
| 1485 |
+
{ "XF86Travel", 0x1008FF82 },
|
| 1486 |
+
{ "XF86UserPB", 0x1008FF84 },
|
| 1487 |
+
{ "XF86User1KB", 0x1008FF85 },
|
| 1488 |
+
{ "XF86User2KB", 0x1008FF86 },
|
| 1489 |
+
{ "XF86Video", 0x1008FF87 },
|
| 1490 |
+
{ "XF86WheelButton", 0x1008FF88 },
|
| 1491 |
+
{ "XF86Word", 0x1008FF89 },
|
| 1492 |
+
{ "XF86Xfer", 0x1008FF8A },
|
| 1493 |
+
{ "XF86ZoomIn", 0x1008FF8B },
|
| 1494 |
+
{ "XF86ZoomOut", 0x1008FF8C },
|
| 1495 |
+
{ "XF86Away", 0x1008FF8D },
|
| 1496 |
+
{ "XF86Messenger", 0x1008FF8E },
|
| 1497 |
+
{ "XF86WebCam", 0x1008FF8F },
|
| 1498 |
+
{ "XF86MailForward", 0x1008FF90 },
|
| 1499 |
+
{ "XF86Pictures", 0x1008FF91 },
|
| 1500 |
+
{ "XF86Music", 0x1008FF92 },
|
| 1501 |
+
{ "XF86Battery", 0x1008FF93 },
|
| 1502 |
+
{ "XF86Bluetooth", 0x1008FF94 },
|
| 1503 |
+
{ "XF86WLAN", 0x1008FF95 },
|
| 1504 |
+
{ "XF86UWB", 0x1008FF96 },
|
| 1505 |
+
{ "XF86AudioForward", 0x1008FF97 },
|
| 1506 |
+
{ "XF86AudioRepeat", 0x1008FF98 },
|
| 1507 |
+
{ "XF86AudioRandomPlay", 0x1008FF99 },
|
| 1508 |
+
{ "XF86Subtitle", 0x1008FF9A },
|
| 1509 |
+
{ "XF86AudioCycleTrack", 0x1008FF9B },
|
| 1510 |
+
{ "XF86CycleAngle", 0x1008FF9C },
|
| 1511 |
+
{ "XF86FrameBack", 0x1008FF9D },
|
| 1512 |
+
{ "XF86FrameForward", 0x1008FF9E },
|
| 1513 |
+
{ "XF86Time", 0x1008FF9F },
|
| 1514 |
+
{ "XF86Select", 0x1008FFA0 },
|
| 1515 |
+
{ "XF86View", 0x1008FFA1 },
|
| 1516 |
+
{ "XF86TopMenu", 0x1008FFA2 },
|
| 1517 |
+
{ "XF86Red", 0x1008FFA3 },
|
| 1518 |
+
{ "XF86Green", 0x1008FFA4 },
|
| 1519 |
+
{ "XF86Yellow", 0x1008FFA5 },
|
| 1520 |
+
{ "XF86Blue", 0x1008FFA6 },
|
| 1521 |
+
{ "XF86Suspend", 0x1008FFA7 },
|
| 1522 |
+
{ "XF86Hibernate", 0x1008FFA8 },
|
| 1523 |
+
{ "XF86TouchpadToggle", 0x1008FFA9 },
|
| 1524 |
+
{ "XF86TouchpadOn", 0x1008FFB0 },
|
| 1525 |
+
{ "XF86TouchpadOff", 0x1008FFB1 },
|
| 1526 |
+
{ "XF86AudioMicMute", 0x1008FFB2 },
|
| 1527 |
+
{ "XF86Keyboard", 0x1008FFB3 },
|
| 1528 |
+
{ "XF86WWAN", 0x1008FFB4 },
|
| 1529 |
+
{ "XF86RFKill", 0x1008FFB5 },
|
| 1530 |
+
{ "XF86AudioPreset", 0x1008FFB6 },
|
| 1531 |
+
{ "XF86RotationLockToggle", 0x1008FFB7 },
|
| 1532 |
+
{ "XF86FullScreen", 0x1008FFB8 },
|
| 1533 |
+
{ "XF86Switch_VT_1", 0x1008FE01 },
|
| 1534 |
+
{ "XF86Switch_VT_2", 0x1008FE02 },
|
| 1535 |
+
{ "XF86Switch_VT_3", 0x1008FE03 },
|
| 1536 |
+
{ "XF86Switch_VT_4", 0x1008FE04 },
|
| 1537 |
+
{ "XF86Switch_VT_5", 0x1008FE05 },
|
| 1538 |
+
{ "XF86Switch_VT_6", 0x1008FE06 },
|
| 1539 |
+
{ "XF86Switch_VT_7", 0x1008FE07 },
|
| 1540 |
+
{ "XF86Switch_VT_8", 0x1008FE08 },
|
| 1541 |
+
{ "XF86Switch_VT_9", 0x1008FE09 },
|
| 1542 |
+
{ "XF86Switch_VT_10", 0x1008FE0A },
|
| 1543 |
+
{ "XF86Switch_VT_11", 0x1008FE0B },
|
| 1544 |
+
{ "XF86Switch_VT_12", 0x1008FE0C },
|
| 1545 |
+
{ "XF86Ungrab", 0x1008FE20 },
|
| 1546 |
+
{ "XF86ClearGrab", 0x1008FE21 },
|
| 1547 |
+
{ "XF86Next_VMode", 0x1008FE22 },
|
| 1548 |
+
{ "XF86Prev_VMode", 0x1008FE23 },
|
| 1549 |
+
{ "XF86LogWindowTree", 0x1008FE24 },
|
| 1550 |
+
{ "XF86LogGrabInfo", 0x1008FE25 },
|
| 1551 |
+
{ "XF86BrightnessAuto", 0x100810F4 },
|
| 1552 |
+
{ "XF86DisplayOff", 0x100810F5 },
|
| 1553 |
+
{ "XF86Info", 0x10081166 },
|
| 1554 |
+
{ "XF86AspectRatio", 0x10081177 },
|
| 1555 |
+
{ "XF86DVD", 0x10081185 },
|
| 1556 |
+
{ "XF86Audio", 0x10081188 },
|
| 1557 |
+
{ "XF86ChannelUp", 0x10081192 },
|
| 1558 |
+
{ "XF86ChannelDown", 0x10081193 },
|
| 1559 |
+
{ "XF86Break", 0x1008119B },
|
| 1560 |
+
{ "XF86VideoPhone", 0x100811A0 },
|
| 1561 |
+
{ "XF86ZoomReset", 0x100811A4 },
|
| 1562 |
+
{ "XF86Editor", 0x100811A6 },
|
| 1563 |
+
{ "XF86GraphicsEditor", 0x100811A8 },
|
| 1564 |
+
{ "XF86Presentation", 0x100811A9 },
|
| 1565 |
+
{ "XF86Database", 0x100811AA },
|
| 1566 |
+
{ "XF86Voicemail", 0x100811AC },
|
| 1567 |
+
{ "XF86Addressbook", 0x100811AD },
|
| 1568 |
+
{ "XF86DisplayToggle", 0x100811AF },
|
| 1569 |
+
{ "XF86SpellCheck", 0x100811B0 },
|
| 1570 |
+
{ "XF86ContextMenu", 0x100811B6 },
|
| 1571 |
+
{ "XF86MediaRepeat", 0x100811B7 },
|
| 1572 |
+
{ "XF8610ChannelsUp", 0x100811B8 },
|
| 1573 |
+
{ "XF8610ChannelsDown", 0x100811B9 },
|
| 1574 |
+
{ "XF86Images", 0x100811BA },
|
| 1575 |
+
{ "XF86NotificationCenter", 0x100811BC },
|
| 1576 |
+
{ "XF86PickupPhone", 0x100811BD },
|
| 1577 |
+
{ "XF86HangupPhone", 0x100811BE },
|
| 1578 |
+
{ "XF86Fn", 0x100811D0 },
|
| 1579 |
+
{ "XF86Fn_Esc", 0x100811D1 },
|
| 1580 |
+
{ "XF86FnRightShift", 0x100811E5 },
|
| 1581 |
+
{ "XF86Numeric0", 0x10081200 },
|
| 1582 |
+
{ "XF86Numeric1", 0x10081201 },
|
| 1583 |
+
{ "XF86Numeric2", 0x10081202 },
|
| 1584 |
+
{ "XF86Numeric3", 0x10081203 },
|
| 1585 |
+
{ "XF86Numeric4", 0x10081204 },
|
| 1586 |
+
{ "XF86Numeric5", 0x10081205 },
|
| 1587 |
+
{ "XF86Numeric6", 0x10081206 },
|
| 1588 |
+
{ "XF86Numeric7", 0x10081207 },
|
| 1589 |
+
{ "XF86Numeric8", 0x10081208 },
|
| 1590 |
+
{ "XF86Numeric9", 0x10081209 },
|
| 1591 |
+
{ "XF86NumericStar", 0x1008120A },
|
| 1592 |
+
{ "XF86NumericPound", 0x1008120B },
|
| 1593 |
+
{ "XF86NumericA", 0x1008120C },
|
| 1594 |
+
{ "XF86NumericB", 0x1008120D },
|
| 1595 |
+
{ "XF86NumericC", 0x1008120E },
|
| 1596 |
+
{ "XF86NumericD", 0x1008120F },
|
| 1597 |
+
{ "XF86CameraFocus", 0x10081210 },
|
| 1598 |
+
{ "XF86WPSButton", 0x10081211 },
|
| 1599 |
+
{ "XF86CameraZoomIn", 0x10081215 },
|
| 1600 |
+
{ "XF86CameraZoomOut", 0x10081216 },
|
| 1601 |
+
{ "XF86CameraUp", 0x10081217 },
|
| 1602 |
+
{ "XF86CameraDown", 0x10081218 },
|
| 1603 |
+
{ "XF86CameraLeft", 0x10081219 },
|
| 1604 |
+
{ "XF86CameraRight", 0x1008121A },
|
| 1605 |
+
{ "XF86AttendantOn", 0x1008121B },
|
| 1606 |
+
{ "XF86AttendantOff", 0x1008121C },
|
| 1607 |
+
{ "XF86AttendantToggle", 0x1008121D },
|
| 1608 |
+
{ "XF86LightsToggle", 0x1008121E },
|
| 1609 |
+
{ "XF86ALSToggle", 0x10081230 },
|
| 1610 |
+
{ "XF86Buttonconfig", 0x10081240 },
|
| 1611 |
+
{ "XF86Taskmanager", 0x10081241 },
|
| 1612 |
+
{ "XF86Journal", 0x10081242 },
|
| 1613 |
+
{ "XF86ControlPanel", 0x10081243 },
|
| 1614 |
+
{ "XF86AppSelect", 0x10081244 },
|
| 1615 |
+
{ "XF86Screensaver", 0x10081245 },
|
| 1616 |
+
{ "XF86VoiceCommand", 0x10081246 },
|
| 1617 |
+
{ "XF86Assistant", 0x10081247 },
|
| 1618 |
+
{ "XF86EmojiPicker", 0x10081249 },
|
| 1619 |
+
{ "XF86Dictate", 0x1008124A },
|
| 1620 |
+
{ "XF86BrightnessMin", 0x10081250 },
|
| 1621 |
+
{ "XF86BrightnessMax", 0x10081251 },
|
| 1622 |
+
{ "XF86KbdInputAssistPrev", 0x10081260 },
|
| 1623 |
+
{ "XF86KbdInputAssistNext", 0x10081261 },
|
| 1624 |
+
{ "XF86KbdInputAssistPrevgroup", 0x10081262 },
|
| 1625 |
+
{ "XF86KbdInputAssistNextgroup", 0x10081263 },
|
| 1626 |
+
{ "XF86KbdInputAssistAccept", 0x10081264 },
|
| 1627 |
+
{ "XF86KbdInputAssistCancel", 0x10081265 },
|
| 1628 |
+
{ "XF86RightUp", 0x10081266 },
|
| 1629 |
+
{ "XF86RightDown", 0x10081267 },
|
| 1630 |
+
{ "XF86LeftUp", 0x10081268 },
|
| 1631 |
+
{ "XF86LeftDown", 0x10081269 },
|
| 1632 |
+
{ "XF86RootMenu", 0x1008126A },
|
| 1633 |
+
{ "XF86MediaTopMenu", 0x1008126B },
|
| 1634 |
+
{ "XF86Numeric11", 0x1008126C },
|
| 1635 |
+
{ "XF86Numeric12", 0x1008126D },
|
| 1636 |
+
{ "XF86AudioDesc", 0x1008126E },
|
| 1637 |
+
{ "XF863DMode", 0x1008126F },
|
| 1638 |
+
{ "XF86NextFavorite", 0x10081270 },
|
| 1639 |
+
{ "XF86StopRecord", 0x10081271 },
|
| 1640 |
+
{ "XF86PauseRecord", 0x10081272 },
|
| 1641 |
+
{ "XF86VOD", 0x10081273 },
|
| 1642 |
+
{ "XF86Unmute", 0x10081274 },
|
| 1643 |
+
{ "XF86FastReverse", 0x10081275 },
|
| 1644 |
+
{ "XF86SlowReverse", 0x10081276 },
|
| 1645 |
+
{ "XF86Data", 0x10081277 },
|
| 1646 |
+
{ "XF86OnScreenKeyboard", 0x10081278 },
|
| 1647 |
+
{ "XF86PrivacyScreenToggle", 0x10081279 },
|
| 1648 |
+
{ "XF86SelectiveScreenshot", 0x1008127A },
|
| 1649 |
+
{ "XF86Macro1", 0x10081290 },
|
| 1650 |
+
{ "XF86Macro2", 0x10081291 },
|
| 1651 |
+
{ "XF86Macro3", 0x10081292 },
|
| 1652 |
+
{ "XF86Macro4", 0x10081293 },
|
| 1653 |
+
{ "XF86Macro5", 0x10081294 },
|
| 1654 |
+
{ "XF86Macro6", 0x10081295 },
|
| 1655 |
+
{ "XF86Macro7", 0x10081296 },
|
| 1656 |
+
{ "XF86Macro8", 0x10081297 },
|
| 1657 |
+
{ "XF86Macro9", 0x10081298 },
|
| 1658 |
+
{ "XF86Macro10", 0x10081299 },
|
| 1659 |
+
{ "XF86Macro11", 0x1008129A },
|
| 1660 |
+
{ "XF86Macro12", 0x1008129B },
|
| 1661 |
+
{ "XF86Macro13", 0x1008129C },
|
| 1662 |
+
{ "XF86Macro14", 0x1008129D },
|
| 1663 |
+
{ "XF86Macro15", 0x1008129E },
|
| 1664 |
+
{ "XF86Macro16", 0x1008129F },
|
| 1665 |
+
{ "XF86Macro17", 0x100812A0 },
|
| 1666 |
+
{ "XF86Macro18", 0x100812A1 },
|
| 1667 |
+
{ "XF86Macro19", 0x100812A2 },
|
| 1668 |
+
{ "XF86Macro20", 0x100812A3 },
|
| 1669 |
+
{ "XF86Macro21", 0x100812A4 },
|
| 1670 |
+
{ "XF86Macro22", 0x100812A5 },
|
| 1671 |
+
{ "XF86Macro23", 0x100812A6 },
|
| 1672 |
+
{ "XF86Macro24", 0x100812A7 },
|
| 1673 |
+
{ "XF86Macro25", 0x100812A8 },
|
| 1674 |
+
{ "XF86Macro26", 0x100812A9 },
|
| 1675 |
+
{ "XF86Macro27", 0x100812AA },
|
| 1676 |
+
{ "XF86Macro28", 0x100812AB },
|
| 1677 |
+
{ "XF86Macro29", 0x100812AC },
|
| 1678 |
+
{ "XF86Macro30", 0x100812AD },
|
| 1679 |
+
{ "XF86MacroRecordStart", 0x100812B0 },
|
| 1680 |
+
{ "XF86MacroRecordStop", 0x100812B1 },
|
| 1681 |
+
{ "XF86MacroPresetCycle", 0x100812B2 },
|
| 1682 |
+
{ "XF86MacroPreset1", 0x100812B3 },
|
| 1683 |
+
{ "XF86MacroPreset2", 0x100812B4 },
|
| 1684 |
+
{ "XF86MacroPreset3", 0x100812B5 },
|
| 1685 |
+
{ "XF86KbdLcdMenu1", 0x100812B8 },
|
| 1686 |
+
{ "XF86KbdLcdMenu2", 0x100812B9 },
|
| 1687 |
+
{ "XF86KbdLcdMenu3", 0x100812BA },
|
| 1688 |
+
{ "XF86KbdLcdMenu4", 0x100812BB },
|
| 1689 |
+
{ "XF86KbdLcdMenu5", 0x100812BC },
|
| 1690 |
+
{ "SunFA_Grave", 0x1005FF00 },
|
| 1691 |
+
{ "SunFA_Circum", 0x1005FF01 },
|
| 1692 |
+
{ "SunFA_Tilde", 0x1005FF02 },
|
| 1693 |
+
{ "SunFA_Acute", 0x1005FF03 },
|
| 1694 |
+
{ "SunFA_Diaeresis", 0x1005FF04 },
|
| 1695 |
+
{ "SunFA_Cedilla", 0x1005FF05 },
|
| 1696 |
+
{ "SunF36", 0x1005FF10 },
|
| 1697 |
+
{ "SunF37", 0x1005FF11 },
|
| 1698 |
+
{ "SunSys_Req", 0x1005FF60 },
|
| 1699 |
+
{ "SunProps", 0x1005FF70 },
|
| 1700 |
+
{ "SunFront", 0x1005FF71 },
|
| 1701 |
+
{ "SunCopy", 0x1005FF72 },
|
| 1702 |
+
{ "SunOpen", 0x1005FF73 },
|
| 1703 |
+
{ "SunPaste", 0x1005FF74 },
|
| 1704 |
+
{ "SunCut", 0x1005FF75 },
|
| 1705 |
+
{ "SunPowerSwitch", 0x1005FF76 },
|
| 1706 |
+
{ "SunAudioLowerVolume", 0x1005FF77 },
|
| 1707 |
+
{ "SunAudioMute", 0x1005FF78 },
|
| 1708 |
+
{ "SunAudioRaiseVolume", 0x1005FF79 },
|
| 1709 |
+
{ "SunVideoDegauss", 0x1005FF7A },
|
| 1710 |
+
{ "SunVideoLowerBrightness", 0x1005FF7B },
|
| 1711 |
+
{ "SunVideoRaiseBrightness", 0x1005FF7C },
|
| 1712 |
+
{ "SunPowerSwitchShift", 0x1005FF7D },
|
llava_next/include/tclThread.h
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* --------------------------------------------------------------------------
|
| 3 |
+
* tclthread.h --
|
| 4 |
+
*
|
| 5 |
+
* Global header file for the thread extension.
|
| 6 |
+
*
|
| 7 |
+
* Copyright (c) 2002 ActiveState Corporation.
|
| 8 |
+
* Copyright (c) 2002 by Zoran Vasiljevic.
|
| 9 |
+
*
|
| 10 |
+
* See the file "license.terms" for information on usage and redistribution
|
| 11 |
+
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
| 12 |
+
* ---------------------------------------------------------------------------
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
/*
|
| 16 |
+
* Thread extension version numbers are not stored here
|
| 17 |
+
* because this isn't a public export file.
|
| 18 |
+
*/
|
| 19 |
+
|
| 20 |
+
#ifndef _TCL_THREAD_H_
|
| 21 |
+
#define _TCL_THREAD_H_
|
| 22 |
+
|
| 23 |
+
#include <tcl.h>
|
| 24 |
+
|
| 25 |
+
/*
|
| 26 |
+
* Exported from threadCmd.c file.
|
| 27 |
+
*/
|
| 28 |
+
#ifdef __cplusplus
|
| 29 |
+
extern "C" {
|
| 30 |
+
#endif
|
| 31 |
+
DLLEXPORT int Thread_Init(Tcl_Interp *interp);
|
| 32 |
+
#ifdef __cplusplus
|
| 33 |
+
}
|
| 34 |
+
#endif
|
| 35 |
+
|
| 36 |
+
#endif /* _TCL_THREAD_H_ */
|
llava_next/include/tdbc.h
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* tdbc.h --
|
| 3 |
+
*
|
| 4 |
+
* Declarations of the public API for Tcl DataBase Connectivity (TDBC)
|
| 5 |
+
*
|
| 6 |
+
* Copyright (c) 2006 by Kevin B. Kenny
|
| 7 |
+
*
|
| 8 |
+
* See the file "license.terms" for information on usage and redistribution of
|
| 9 |
+
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
| 10 |
+
*
|
| 11 |
+
* RCS: @(#) $Id$
|
| 12 |
+
*
|
| 13 |
+
*-----------------------------------------------------------------------------
|
| 14 |
+
*/
|
| 15 |
+
|
| 16 |
+
#ifndef TDBC_H_INCLUDED
|
| 17 |
+
#define TDBC_H_INCLUDED 1
|
| 18 |
+
|
| 19 |
+
#include <tcl.h>
|
| 20 |
+
|
| 21 |
+
#ifndef TDBCAPI
|
| 22 |
+
# if defined(BUILD_tdbc)
|
| 23 |
+
# define TDBCAPI MODULE_SCOPE
|
| 24 |
+
# else
|
| 25 |
+
# define TDBCAPI extern
|
| 26 |
+
# undef USE_TDBC_STUBS
|
| 27 |
+
# define USE_TDBC_STUBS 1
|
| 28 |
+
# endif
|
| 29 |
+
#endif
|
| 30 |
+
|
| 31 |
+
#ifdef __cplusplus
|
| 32 |
+
extern "C" {
|
| 33 |
+
#endif
|
| 34 |
+
|
| 35 |
+
#if defined(BUILD_tdbc)
|
| 36 |
+
DLLEXPORT int Tdbc_Init(Tcl_Interp *interp);
|
| 37 |
+
#elif defined(STATIC_BUILD)
|
| 38 |
+
extern int Tdbc_Init(Tcl_Interp* interp);
|
| 39 |
+
#else
|
| 40 |
+
DLLIMPORT int Tdbc_Init(Tcl_Interp* interp);
|
| 41 |
+
#endif
|
| 42 |
+
|
| 43 |
+
#define Tdbc_InitStubs(interp) TdbcInitializeStubs(interp, \
|
| 44 |
+
TDBC_VERSION, TDBC_STUBS_EPOCH, TDBC_STUBS_REVISION)
|
| 45 |
+
#if defined(USE_TDBC_STUBS)
|
| 46 |
+
TDBCAPI const char* TdbcInitializeStubs(
|
| 47 |
+
Tcl_Interp* interp, const char* version, int epoch, int revision);
|
| 48 |
+
#else
|
| 49 |
+
# define TdbcInitializeStubs(interp, version, epoch, revision) \
|
| 50 |
+
(Tcl_PkgRequire(interp, "tdbc", version))
|
| 51 |
+
#endif
|
| 52 |
+
|
| 53 |
+
#ifdef __cplusplus
|
| 54 |
+
}
|
| 55 |
+
#endif
|
| 56 |
+
|
| 57 |
+
/*
|
| 58 |
+
* TDBC_VERSION and TDBC_PATCHLEVEL here must match the ones that
|
| 59 |
+
* appear near the top of configure.ac.
|
| 60 |
+
*/
|
| 61 |
+
|
| 62 |
+
#define TDBC_VERSION "1.1"
|
| 63 |
+
#define TDBC_PATCHLEVEL "1.1.7"
|
| 64 |
+
|
| 65 |
+
/*
|
| 66 |
+
* Include the Stubs declarations for the public API, generated from
|
| 67 |
+
* tdbc.decls.
|
| 68 |
+
*/
|
| 69 |
+
|
| 70 |
+
#include "tdbcDecls.h"
|
| 71 |
+
|
| 72 |
+
#endif
|
| 73 |
+
|
| 74 |
+
/*
|
| 75 |
+
* Local Variables:
|
| 76 |
+
* mode: c
|
| 77 |
+
* c-basic-offset: 4
|
| 78 |
+
* fill-column: 78
|
| 79 |
+
* End:
|
| 80 |
+
*/
|
llava_next/include/term_entry.h
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************************
|
| 2 |
+
* Copyright 2018-2021,2022 Thomas E. Dickey *
|
| 3 |
+
* Copyright 1998-2015,2017 Free Software Foundation, Inc. *
|
| 4 |
+
* *
|
| 5 |
+
* Permission is hereby granted, free of charge, to any person obtaining a *
|
| 6 |
+
* copy of this software and associated documentation files (the *
|
| 7 |
+
* "Software"), to deal in the Software without restriction, including *
|
| 8 |
+
* without limitation the rights to use, copy, modify, merge, publish, *
|
| 9 |
+
* distribute, distribute with modifications, sublicense, and/or sell *
|
| 10 |
+
* copies of the Software, and to permit persons to whom the Software is *
|
| 11 |
+
* furnished to do so, subject to the following conditions: *
|
| 12 |
+
* *
|
| 13 |
+
* The above copyright notice and this permission notice shall be included *
|
| 14 |
+
* in all copies or substantial portions of the Software. *
|
| 15 |
+
* *
|
| 16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
|
| 17 |
+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
|
| 18 |
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
|
| 19 |
+
* IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
|
| 20 |
+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
|
| 21 |
+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
|
| 22 |
+
* THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
| 23 |
+
* *
|
| 24 |
+
* Except as contained in this notice, the name(s) of the above copyright *
|
| 25 |
+
* holders shall not be used in advertising or otherwise to promote the *
|
| 26 |
+
* sale, use or other dealings in this Software without prior written *
|
| 27 |
+
* authorization. *
|
| 28 |
+
****************************************************************************/
|
| 29 |
+
|
| 30 |
+
/****************************************************************************
|
| 31 |
+
* Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
|
| 32 |
+
* and: Eric S. Raymond <esr@snark.thyrsus.com> *
|
| 33 |
+
* and: Thomas E. Dickey 1998-on *
|
| 34 |
+
****************************************************************************/
|
| 35 |
+
|
| 36 |
+
/* $Id: term_entry.h,v 1.63 2022/09/24 15:04:59 tom Exp $ */
|
| 37 |
+
|
| 38 |
+
/*
|
| 39 |
+
* term_entry.h -- interface to entry-manipulation code
|
| 40 |
+
*/
|
| 41 |
+
|
| 42 |
+
#ifndef NCURSES_TERM_ENTRY_H_incl
|
| 43 |
+
#define NCURSES_TERM_ENTRY_H_incl 1
|
| 44 |
+
/* *INDENT-OFF* */
|
| 45 |
+
|
| 46 |
+
#ifdef __cplusplus
|
| 47 |
+
extern "C" {
|
| 48 |
+
#endif
|
| 49 |
+
|
| 50 |
+
#include <ncursesw/curses.h>
|
| 51 |
+
#include <ncursesw/term.h>
|
| 52 |
+
|
| 53 |
+
/*
|
| 54 |
+
* These macros may be used by programs that know about TERMTYPE:
|
| 55 |
+
*/
|
| 56 |
+
#if NCURSES_XNAMES
|
| 57 |
+
#define NUM_BOOLEANS(tp) (tp)->num_Booleans
|
| 58 |
+
#define NUM_NUMBERS(tp) (tp)->num_Numbers
|
| 59 |
+
#define NUM_STRINGS(tp) (tp)->num_Strings
|
| 60 |
+
#define EXT_NAMES(tp,i,limit,index,table) (i >= limit) ? tp->ext_Names[index] : table[i]
|
| 61 |
+
#else
|
| 62 |
+
#define NUM_BOOLEANS(tp) BOOLCOUNT
|
| 63 |
+
#define NUM_NUMBERS(tp) NUMCOUNT
|
| 64 |
+
#define NUM_STRINGS(tp) STRCOUNT
|
| 65 |
+
#define EXT_NAMES(tp,i,limit,index,table) table[i]
|
| 66 |
+
#endif
|
| 67 |
+
|
| 68 |
+
#define NUM_EXT_NAMES(tp) (unsigned) ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings)
|
| 69 |
+
|
| 70 |
+
#define for_each_boolean(n,tp) for(n = 0; n < NUM_BOOLEANS(tp); n++)
|
| 71 |
+
#define for_each_number(n,tp) for(n = 0; n < NUM_NUMBERS(tp); n++)
|
| 72 |
+
#define for_each_string(n,tp) for(n = 0; n < NUM_STRINGS(tp); n++)
|
| 73 |
+
|
| 74 |
+
#if NCURSES_XNAMES
|
| 75 |
+
#define for_each_ext_boolean(n,tp) for(n = BOOLCOUNT; (int) n < (int) NUM_BOOLEANS(tp); n++)
|
| 76 |
+
#define for_each_ext_number(n,tp) for(n = NUMCOUNT; (int) n < (int) NUM_NUMBERS(tp); n++)
|
| 77 |
+
#define for_each_ext_string(n,tp) for(n = STRCOUNT; (int) n < (int) NUM_STRINGS(tp); n++)
|
| 78 |
+
#endif
|
| 79 |
+
|
| 80 |
+
#define ExtBoolname(tp,i,names) EXT_NAMES(tp, i, BOOLCOUNT, (i - (tp->num_Booleans - tp->ext_Booleans)), names)
|
| 81 |
+
#define ExtNumname(tp,i,names) EXT_NAMES(tp, i, NUMCOUNT, (i - (tp->num_Numbers - tp->ext_Numbers)) + tp->ext_Booleans, names)
|
| 82 |
+
#define ExtStrname(tp,i,names) EXT_NAMES(tp, i, STRCOUNT, (i - (tp->num_Strings - tp->ext_Strings)) + (tp->ext_Numbers + tp->ext_Booleans), names)
|
| 83 |
+
|
| 84 |
+
/*
|
| 85 |
+
* The remaining type-definitions and macros are used only internally by the
|
| 86 |
+
* ncurses utilities.
|
| 87 |
+
*/
|
| 88 |
+
#ifdef NCURSES_INTERNALS
|
| 89 |
+
|
| 90 |
+
/*
|
| 91 |
+
* see db_iterator.c - this enumeration lists the places searched for a
|
| 92 |
+
* terminal description and defines the order in which they are searched.
|
| 93 |
+
*/
|
| 94 |
+
typedef enum {
|
| 95 |
+
dbdTIC = 0, /* special, used by tic when writing entry */
|
| 96 |
+
#if NCURSES_USE_DATABASE
|
| 97 |
+
dbdEnvOnce, /* the $TERMINFO environment variable */
|
| 98 |
+
dbdHome, /* $HOME/.terminfo */
|
| 99 |
+
dbdEnvList, /* the $TERMINFO_DIRS environment variable */
|
| 100 |
+
dbdCfgList, /* the compiled-in TERMINFO_DIRS value */
|
| 101 |
+
dbdCfgOnce, /* the compiled-in TERMINFO value */
|
| 102 |
+
#endif
|
| 103 |
+
#if NCURSES_USE_TERMCAP
|
| 104 |
+
dbdEnvOnce2, /* the $TERMCAP environment variable */
|
| 105 |
+
dbdEnvList2, /* the $TERMPATH environment variable */
|
| 106 |
+
dbdCfgList2, /* the compiled-in TERMPATH */
|
| 107 |
+
#endif
|
| 108 |
+
dbdLAST
|
| 109 |
+
} DBDIRS;
|
| 110 |
+
|
| 111 |
+
#define MAX_USES 32
|
| 112 |
+
#define MAX_CROSSLINKS 16
|
| 113 |
+
|
| 114 |
+
typedef struct entry ENTRY;
|
| 115 |
+
|
| 116 |
+
typedef struct {
|
| 117 |
+
char *name;
|
| 118 |
+
ENTRY *link;
|
| 119 |
+
long line;
|
| 120 |
+
} ENTRY_USES;
|
| 121 |
+
|
| 122 |
+
struct entry {
|
| 123 |
+
TERMTYPE2 tterm;
|
| 124 |
+
unsigned nuses;
|
| 125 |
+
ENTRY_USES uses[MAX_USES];
|
| 126 |
+
int ncrosslinks;
|
| 127 |
+
ENTRY *crosslinks[MAX_CROSSLINKS];
|
| 128 |
+
long cstart;
|
| 129 |
+
long cend;
|
| 130 |
+
long startline;
|
| 131 |
+
ENTRY *next;
|
| 132 |
+
ENTRY *last;
|
| 133 |
+
};
|
| 134 |
+
|
| 135 |
+
extern NCURSES_EXPORT_VAR(ENTRY *) _nc_head;
|
| 136 |
+
extern NCURSES_EXPORT_VAR(ENTRY *) _nc_tail;
|
| 137 |
+
#define for_entry_list(qp) for (qp = _nc_head; qp; qp = qp->next)
|
| 138 |
+
#define for_entry_list2(qp,q0) for (qp = q0; qp; qp = qp->next)
|
| 139 |
+
|
| 140 |
+
#define MAX_LINE 132
|
| 141 |
+
|
| 142 |
+
#define NULLHOOK (bool(*)(ENTRY *))0
|
| 143 |
+
|
| 144 |
+
/*
|
| 145 |
+
* Note that WANTED and PRESENT are not simple inverses! If a capability
|
| 146 |
+
* has been explicitly cancelled, it is not considered WANTED.
|
| 147 |
+
*/
|
| 148 |
+
#define WANTED(s) ((s) == ABSENT_STRING)
|
| 149 |
+
#define PRESENT(s) (((s) != ABSENT_STRING) && ((s) != CANCELLED_STRING))
|
| 150 |
+
|
| 151 |
+
#define ANDMISSING(p,q) \
|
| 152 |
+
{ \
|
| 153 |
+
if (PRESENT(p) && !PRESENT(q)) \
|
| 154 |
+
_nc_warning(#p " but no " #q); \
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
#define PAIRED(p,q) \
|
| 158 |
+
{ \
|
| 159 |
+
if (PRESENT(q) && !PRESENT(p)) \
|
| 160 |
+
_nc_warning(#q " but no " #p); \
|
| 161 |
+
if (PRESENT(p) && !PRESENT(q)) \
|
| 162 |
+
_nc_warning(#p " but no " #q); \
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
/*
|
| 166 |
+
* These entrypoints are used only by the ncurses utilities such as tic.
|
| 167 |
+
*/
|
| 168 |
+
|
| 169 |
+
/* alloc_entry.c: elementary allocation code */
|
| 170 |
+
extern NCURSES_EXPORT(ENTRY *) _nc_copy_entry (ENTRY *oldp);
|
| 171 |
+
extern NCURSES_EXPORT(char *) _nc_save_str (const char *const);
|
| 172 |
+
extern NCURSES_EXPORT(void) _nc_init_entry (ENTRY *const);
|
| 173 |
+
extern NCURSES_EXPORT(void) _nc_merge_entry (ENTRY *const, ENTRY *const);
|
| 174 |
+
extern NCURSES_EXPORT(void) _nc_wrap_entry (ENTRY *const, bool);
|
| 175 |
+
|
| 176 |
+
/* alloc_ttype.c: elementary allocation code */
|
| 177 |
+
extern NCURSES_EXPORT(void) _nc_align_termtype (TERMTYPE2 *, TERMTYPE2 *);
|
| 178 |
+
|
| 179 |
+
/* free_ttype.c: elementary allocation code */
|
| 180 |
+
extern NCURSES_EXPORT(void) _nc_free_termtype1 (TERMTYPE *);
|
| 181 |
+
extern NCURSES_EXPORT(void) _nc_free_termtype2 (TERMTYPE2 *);
|
| 182 |
+
|
| 183 |
+
/* lib_termcap.c: trim sgr0 string for termcap users */
|
| 184 |
+
extern NCURSES_EXPORT(char *) _nc_trim_sgr0 (TERMTYPE2 *);
|
| 185 |
+
|
| 186 |
+
/* parse_entry.c: entry-parsing code */
|
| 187 |
+
#if NCURSES_XNAMES
|
| 188 |
+
extern NCURSES_EXPORT_VAR(bool) _nc_user_definable;
|
| 189 |
+
extern NCURSES_EXPORT_VAR(bool) _nc_disable_period;
|
| 190 |
+
#endif
|
| 191 |
+
extern NCURSES_EXPORT(int) _nc_parse_entry (ENTRY *, int, bool);
|
| 192 |
+
extern NCURSES_EXPORT(int) _nc_capcmp (const char *, const char *);
|
| 193 |
+
|
| 194 |
+
/* write_entry.c: writing an entry to the file system */
|
| 195 |
+
extern NCURSES_EXPORT(void) _nc_set_writedir (const char *);
|
| 196 |
+
extern NCURSES_EXPORT(void) _nc_write_entry (TERMTYPE2 *const);
|
| 197 |
+
extern NCURSES_EXPORT(int) _nc_write_object (TERMTYPE2 *, char *, unsigned *, unsigned);
|
| 198 |
+
|
| 199 |
+
/* comp_parse.c: entry list handling */
|
| 200 |
+
extern NCURSES_EXPORT(void) _nc_read_entry_source (FILE*, char*, int, bool, bool (*)(ENTRY*));
|
| 201 |
+
extern NCURSES_EXPORT(bool) _nc_entry_match (char *, char *);
|
| 202 |
+
extern NCURSES_EXPORT(int) _nc_resolve_uses (bool); /* obs 20040705 */
|
| 203 |
+
extern NCURSES_EXPORT(int) _nc_resolve_uses2 (bool, bool);
|
| 204 |
+
extern NCURSES_EXPORT(void) _nc_free_entries (ENTRY *);
|
| 205 |
+
extern NCURSES_IMPEXP void (NCURSES_API *_nc_check_termtype)(TERMTYPE *); /* obs 20040705 */
|
| 206 |
+
extern NCURSES_IMPEXP void (NCURSES_API *_nc_check_termtype2)(TERMTYPE2 *, bool);
|
| 207 |
+
|
| 208 |
+
/* trace_xnames.c */
|
| 209 |
+
extern NCURSES_EXPORT(void) _nc_trace_xnames (TERMTYPE *);
|
| 210 |
+
|
| 211 |
+
#endif /* NCURSES_INTERNALS */
|
| 212 |
+
|
| 213 |
+
/*
|
| 214 |
+
* These entrypoints were used by tack before 1.08.
|
| 215 |
+
*/
|
| 216 |
+
|
| 217 |
+
#undef NCURSES_TACK_1_08
|
| 218 |
+
#ifdef NCURSES_INTERNALS
|
| 219 |
+
#define NCURSES_TACK_1_08 /* nothing */
|
| 220 |
+
#else
|
| 221 |
+
#define NCURSES_TACK_1_08 GCC_DEPRECATED("upgrade to tack 1.08")
|
| 222 |
+
#endif
|
| 223 |
+
|
| 224 |
+
/* alloc_ttype.c: elementary allocation code */
|
| 225 |
+
extern NCURSES_EXPORT(void) _nc_copy_termtype (TERMTYPE *, const TERMTYPE *) NCURSES_TACK_1_08;
|
| 226 |
+
|
| 227 |
+
/* lib_acs.c */
|
| 228 |
+
extern NCURSES_EXPORT(void) _nc_init_acs (void) NCURSES_TACK_1_08; /* corresponds to traditional 'init_acs()' */
|
| 229 |
+
|
| 230 |
+
/* free_ttype.c: elementary allocation code */
|
| 231 |
+
extern NCURSES_EXPORT(void) _nc_free_termtype (TERMTYPE *) NCURSES_TACK_1_08;
|
| 232 |
+
|
| 233 |
+
#ifdef __cplusplus
|
| 234 |
+
}
|
| 235 |
+
#endif
|
| 236 |
+
|
| 237 |
+
/* *INDENT-ON* */
|
| 238 |
+
|
| 239 |
+
#endif /* NCURSES_TERM_ENTRY_H_incl */
|
llava_next/include/tkMacOSXKeysyms.h
ADDED
|
@@ -0,0 +1,1308 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* tkMacOSXKeysyms.h --
|
| 3 |
+
*
|
| 4 |
+
* Contains data used for processing key events, some of which was
|
| 5 |
+
* moved from tkMacOSXKeyboard.c.
|
| 6 |
+
*
|
| 7 |
+
* Copyright (c) 1990-1994 The Regents of the University of California.
|
| 8 |
+
* Copyright (c) 1994-1997 Sun Microsystems, Inc.
|
| 9 |
+
* Copyright 2001-2009, Apple Inc.
|
| 10 |
+
* Copyright (c) 2006-2009 Daniel A. Steffen <das@users.sourceforge.net>
|
| 11 |
+
* Copyright (c) 2020 Marc Culler
|
| 12 |
+
*
|
| 13 |
+
* See the file "license.terms" for information on usage and redistribution
|
| 14 |
+
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
| 15 |
+
*/
|
| 16 |
+
|
| 17 |
+
#ifndef TKMACOSXKEYSYMS_H
|
| 18 |
+
#define TKMACOSXKEYSYMS_H 1
|
| 19 |
+
|
| 20 |
+
/*
|
| 21 |
+
* This table enumerates the keys on Mac keyboards which do not represent
|
| 22 |
+
* letters. This is static data -- these keys do not change when the keyboard
|
| 23 |
+
* layout changes. The unicode representation of a special key which is not a
|
| 24 |
+
* modifier and does not have an ASCII code point lies in the reserved range
|
| 25 |
+
* 0xF700 - 0xF8FF.
|
| 26 |
+
*
|
| 27 |
+
* The table includes every key listed in Apple's documentation of Function-Key
|
| 28 |
+
* Unicodes which is not marked as "Not on most Macintosh keyboards", as well
|
| 29 |
+
* as F20, which is reported to be usable in scripts even though it does not
|
| 30 |
+
* appear on any Macintosh keyboard.
|
| 31 |
+
*/
|
| 32 |
+
|
| 33 |
+
typedef struct {
|
| 34 |
+
int virt; /* value of [NSEvent keyCode] */
|
| 35 |
+
KeySym keysym; /* X11 keysym */
|
| 36 |
+
KeyCode keychar; /* XEvent keycode & 0xFFFF */
|
| 37 |
+
} KeyInfo;
|
| 38 |
+
|
| 39 |
+
static const KeyInfo keyArray[] = {
|
| 40 |
+
{36, XK_Return, NSNewlineCharacter},
|
| 41 |
+
{48, XK_Tab, NSTabCharacter},
|
| 42 |
+
{51, XK_BackSpace, NSDeleteCharacter},
|
| 43 |
+
{52, XK_Return, NSNewlineCharacter}, /* Used on some Powerbooks */
|
| 44 |
+
{53, XK_Escape, 0x1B},
|
| 45 |
+
{54, XK_Meta_R, MOD_KEYCHAR},
|
| 46 |
+
{55, XK_Meta_L, MOD_KEYCHAR},
|
| 47 |
+
{56, XK_Shift_L, MOD_KEYCHAR},
|
| 48 |
+
{57, XK_Caps_Lock, MOD_KEYCHAR},
|
| 49 |
+
{58, XK_Alt_L, MOD_KEYCHAR},
|
| 50 |
+
{59, XK_Control_L, MOD_KEYCHAR},
|
| 51 |
+
{60, XK_Shift_R, MOD_KEYCHAR},
|
| 52 |
+
{61, XK_Alt_R, MOD_KEYCHAR},
|
| 53 |
+
{62, XK_Control_R, MOD_KEYCHAR},
|
| 54 |
+
{63, XK_Super_L, MOD_KEYCHAR},
|
| 55 |
+
{64, XK_F17, NSF17FunctionKey},
|
| 56 |
+
{65, XK_KP_Decimal, '.'},
|
| 57 |
+
{67, XK_KP_Multiply, '*'},
|
| 58 |
+
{69, XK_KP_Add, '+'},
|
| 59 |
+
{71, XK_Clear, NSClearLineFunctionKey}, /* Numlock on PC */
|
| 60 |
+
{75, XK_KP_Divide, '/'},
|
| 61 |
+
{76, XK_KP_Enter, NSEnterCharacter}, /* Fn Return */
|
| 62 |
+
{78, XK_KP_Subtract, '-'},
|
| 63 |
+
{79, XK_F18, NSF18FunctionKey},
|
| 64 |
+
{80, XK_F19, NSF19FunctionKey},
|
| 65 |
+
{81, XK_KP_Equal, '='},
|
| 66 |
+
{82, XK_KP_0, '0'},
|
| 67 |
+
{83, XK_KP_1, '1'},
|
| 68 |
+
{84, XK_KP_2, '2'},
|
| 69 |
+
{85, XK_KP_3, '3'},
|
| 70 |
+
{86, XK_KP_4, '4'},
|
| 71 |
+
{87, XK_KP_5, '5'},
|
| 72 |
+
{88, XK_KP_6, '6'},
|
| 73 |
+
{89, XK_KP_7, '7'},
|
| 74 |
+
{90, XK_F20, NSF20FunctionKey}, /* For scripting only */
|
| 75 |
+
{91, XK_KP_8, '8'},
|
| 76 |
+
{92, XK_KP_9, '9'},
|
| 77 |
+
{96, XK_F5, NSF5FunctionKey},
|
| 78 |
+
{97, XK_F6, NSF6FunctionKey},
|
| 79 |
+
{98, XK_F7, NSF7FunctionKey},
|
| 80 |
+
{99, XK_F3, NSF3FunctionKey},
|
| 81 |
+
{100, XK_F8, NSF8FunctionKey},
|
| 82 |
+
{101, XK_F9, NSF9FunctionKey},
|
| 83 |
+
{103, XK_F11, NSF11FunctionKey},
|
| 84 |
+
{105, XK_F13, NSF13FunctionKey},
|
| 85 |
+
{106, XK_F16, NSF16FunctionKey},
|
| 86 |
+
{107, XK_F14, NSF14FunctionKey},
|
| 87 |
+
{109, XK_F10, NSF10FunctionKey},
|
| 88 |
+
{110, XK_Menu, UNKNOWN_KEYCHAR},
|
| 89 |
+
{111, XK_F12, NSF12FunctionKey},
|
| 90 |
+
{113, XK_F15, NSF15FunctionKey},
|
| 91 |
+
{114, XK_Help, NSHelpFunctionKey},
|
| 92 |
+
{115, XK_Home, NSHomeFunctionKey}, /* Fn Left */
|
| 93 |
+
{116, XK_Page_Up, NSPageUpFunctionKey}, /* Fn Up */
|
| 94 |
+
{117, XK_Delete, NSDeleteFunctionKey}, /* Fn Delete */
|
| 95 |
+
{118, XK_F4, NSF4FunctionKey},
|
| 96 |
+
{119, XK_End, NSEndFunctionKey}, /* Fn Right */
|
| 97 |
+
{120, XK_F2, NSF2FunctionKey},
|
| 98 |
+
{121, XK_Page_Down, NSPageDownFunctionKey}, /* Fn Down */
|
| 99 |
+
{122, XK_F1, NSF1FunctionKey},
|
| 100 |
+
{123, XK_Left, NSLeftArrowFunctionKey},
|
| 101 |
+
{124, XK_Right, NSRightArrowFunctionKey},
|
| 102 |
+
{125, XK_Down, NSDownArrowFunctionKey},
|
| 103 |
+
{126, XK_Up, NSUpArrowFunctionKey},
|
| 104 |
+
{0, 0, 0}
|
| 105 |
+
};
|
| 106 |
+
|
| 107 |
+
/*
|
| 108 |
+
* X11 keysyms for modifier keys, in order. This list includes keys
|
| 109 |
+
* which do not appear on Apple keyboards, such as Shift_Lock and
|
| 110 |
+
* Super_R. While most systems don't provide events for the "fn"
|
| 111 |
+
* function key, Apple does. We map it to Super_L when processing a
|
| 112 |
+
* FlagsChanged NSEvent.
|
| 113 |
+
*/
|
| 114 |
+
|
| 115 |
+
#define NUM_MOD_KEYCODES 14
|
| 116 |
+
static const KeyCode modKeyArray[NUM_MOD_KEYCODES] = {
|
| 117 |
+
XK_Shift_L,
|
| 118 |
+
XK_Shift_R,
|
| 119 |
+
XK_Control_L,
|
| 120 |
+
XK_Control_R,
|
| 121 |
+
XK_Caps_Lock,
|
| 122 |
+
XK_Shift_Lock,
|
| 123 |
+
XK_Meta_L,
|
| 124 |
+
XK_Meta_R,
|
| 125 |
+
XK_Alt_L,
|
| 126 |
+
XK_Alt_R,
|
| 127 |
+
XK_Super_L,
|
| 128 |
+
XK_Super_R,
|
| 129 |
+
XK_Hyper_L,
|
| 130 |
+
XK_Hyper_R,
|
| 131 |
+
};
|
| 132 |
+
|
| 133 |
+
/*
|
| 134 |
+
* This table pairs X11 Keysyms for alphanumeric characters with the
|
| 135 |
+
* unicode code point for that letter.
|
| 136 |
+
* The data comes from http://www.cl.cam.ac.uk/~mgk25/ucs/keysyms.txt
|
| 137 |
+
*/
|
| 138 |
+
|
| 139 |
+
typedef struct KeysymInfo {
|
| 140 |
+
KeySym keysym;
|
| 141 |
+
KeyCode keycode;
|
| 142 |
+
} KeysymInfo;
|
| 143 |
+
|
| 144 |
+
const KeysymInfo keysymTable[] = {
|
| 145 |
+
{0x0020, 0x0020}, /* space */
|
| 146 |
+
{0x0021, 0x0021}, /* exclam */
|
| 147 |
+
{0x0022, 0x0022}, /* quotedbl */
|
| 148 |
+
{0x0023, 0x0023}, /* numbersign */
|
| 149 |
+
{0x0024, 0x0024}, /* dollar */
|
| 150 |
+
{0x0025, 0x0025}, /* percent */
|
| 151 |
+
{0x0026, 0x0026}, /* ampersand */
|
| 152 |
+
{0x0027, 0x0027}, /* apostrophe */
|
| 153 |
+
{0x0028, 0x0028}, /* parenleft */
|
| 154 |
+
{0x0029, 0x0029}, /* parenright */
|
| 155 |
+
{0x002a, 0x002a}, /* asterisk */
|
| 156 |
+
{0x002b, 0x002b}, /* plus */
|
| 157 |
+
{0x002c, 0x002c}, /* comma */
|
| 158 |
+
{0x002d, 0x002d}, /* minus */
|
| 159 |
+
{0x002e, 0x002e}, /* period */
|
| 160 |
+
{0x002f, 0x002f}, /* slash */
|
| 161 |
+
{0x0030, 0x0030}, /* 0 */
|
| 162 |
+
{0x0031, 0x0031}, /* 1 */
|
| 163 |
+
{0x0032, 0x0032}, /* 2 */
|
| 164 |
+
{0x0033, 0x0033}, /* 3 */
|
| 165 |
+
{0x0034, 0x0034}, /* 4 */
|
| 166 |
+
{0x0035, 0x0035}, /* 5 */
|
| 167 |
+
{0x0036, 0x0036}, /* 6 */
|
| 168 |
+
{0x0037, 0x0037}, /* 7 */
|
| 169 |
+
{0x0038, 0x0038}, /* 8 */
|
| 170 |
+
{0x0039, 0x0039}, /* 9 */
|
| 171 |
+
{0x003a, 0x003a}, /* colon */
|
| 172 |
+
{0x003b, 0x003b}, /* semicolon */
|
| 173 |
+
{0x003c, 0x003c}, /* less */
|
| 174 |
+
{0x003d, 0x003d}, /* equal */
|
| 175 |
+
{0x003e, 0x003e}, /* greater */
|
| 176 |
+
{0x003f, 0x003f}, /* question */
|
| 177 |
+
{0x0040, 0x0040}, /* at */
|
| 178 |
+
{0x0041, 0x0041}, /* A */
|
| 179 |
+
{0x0042, 0x0042}, /* B */
|
| 180 |
+
{0x0043, 0x0043}, /* C */
|
| 181 |
+
{0x0044, 0x0044}, /* D */
|
| 182 |
+
{0x0045, 0x0045}, /* E */
|
| 183 |
+
{0x0046, 0x0046}, /* F */
|
| 184 |
+
{0x0047, 0x0047}, /* G */
|
| 185 |
+
{0x0048, 0x0048}, /* H */
|
| 186 |
+
{0x0049, 0x0049}, /* I */
|
| 187 |
+
{0x004a, 0x004a}, /* J */
|
| 188 |
+
{0x004b, 0x004b}, /* K */
|
| 189 |
+
{0x004c, 0x004c}, /* L */
|
| 190 |
+
{0x004d, 0x004d}, /* M */
|
| 191 |
+
{0x004e, 0x004e}, /* N */
|
| 192 |
+
{0x004f, 0x004f}, /* O */
|
| 193 |
+
{0x0050, 0x0050}, /* P */
|
| 194 |
+
{0x0051, 0x0051}, /* Q */
|
| 195 |
+
{0x0052, 0x0052}, /* R */
|
| 196 |
+
{0x0053, 0x0053}, /* S */
|
| 197 |
+
{0x0054, 0x0054}, /* T */
|
| 198 |
+
{0x0055, 0x0055}, /* U */
|
| 199 |
+
{0x0056, 0x0056}, /* V */
|
| 200 |
+
{0x0057, 0x0057}, /* W */
|
| 201 |
+
{0x0058, 0x0058}, /* X */
|
| 202 |
+
{0x0059, 0x0059}, /* Y */
|
| 203 |
+
{0x005a, 0x005a}, /* Z */
|
| 204 |
+
{0x005b, 0x005b}, /* bracketleft */
|
| 205 |
+
{0x005c, 0x005c}, /* backslash */
|
| 206 |
+
{0x005d, 0x005d}, /* bracketright */
|
| 207 |
+
{0x005e, 0x005e}, /* asciicircum */
|
| 208 |
+
{0x005f, 0x005f}, /* underscore */
|
| 209 |
+
{0x0060, 0x0060}, /* grave */
|
| 210 |
+
{0x0061, 0x0061}, /* a */
|
| 211 |
+
{0x0062, 0x0062}, /* b */
|
| 212 |
+
{0x0063, 0x0063}, /* c */
|
| 213 |
+
{0x0064, 0x0064}, /* d */
|
| 214 |
+
{0x0065, 0x0065}, /* e */
|
| 215 |
+
{0x0066, 0x0066}, /* f */
|
| 216 |
+
{0x0067, 0x0067}, /* g */
|
| 217 |
+
{0x0068, 0x0068}, /* h */
|
| 218 |
+
{0x0069, 0x0069}, /* i */
|
| 219 |
+
{0x006a, 0x006a}, /* j */
|
| 220 |
+
{0x006b, 0x006b}, /* k */
|
| 221 |
+
{0x006c, 0x006c}, /* l */
|
| 222 |
+
{0x006d, 0x006d}, /* m */
|
| 223 |
+
{0x006e, 0x006e}, /* n */
|
| 224 |
+
{0x006f, 0x006f}, /* o */
|
| 225 |
+
{0x0070, 0x0070}, /* p */
|
| 226 |
+
{0x0071, 0x0071}, /* q */
|
| 227 |
+
{0x0072, 0x0072}, /* r */
|
| 228 |
+
{0x0073, 0x0073}, /* s */
|
| 229 |
+
{0x0074, 0x0074}, /* t */
|
| 230 |
+
{0x0075, 0x0075}, /* u */
|
| 231 |
+
{0x0076, 0x0076}, /* v */
|
| 232 |
+
{0x0077, 0x0077}, /* w */
|
| 233 |
+
{0x0078, 0x0078}, /* x */
|
| 234 |
+
{0x0079, 0x0079}, /* y */
|
| 235 |
+
{0x007a, 0x007a}, /* z */
|
| 236 |
+
{0x007b, 0x007b}, /* braceleft */
|
| 237 |
+
{0x007c, 0x007c}, /* bar */
|
| 238 |
+
{0x007d, 0x007d}, /* braceright */
|
| 239 |
+
{0x007e, 0x007e}, /* asciitilde */
|
| 240 |
+
{0x00a0, 0x00a0}, /* nobreakspace */
|
| 241 |
+
{0x00a1, 0x00a1}, /* exclamdown */
|
| 242 |
+
{0x00a2, 0x00a2}, /* cent */
|
| 243 |
+
{0x00a3, 0x00a3}, /* sterling */
|
| 244 |
+
{0x00a4, 0x00a4}, /* currency */
|
| 245 |
+
{0x00a5, 0x00a5}, /* yen */
|
| 246 |
+
{0x00a6, 0x00a6}, /* brokenbar */
|
| 247 |
+
{0x00a7, 0x00a7}, /* section */
|
| 248 |
+
{0x00a8, 0x00a8}, /* diaeresis */
|
| 249 |
+
{0x00a9, 0x00a9}, /* copyright */
|
| 250 |
+
{0x00aa, 0x00aa}, /* ordfeminine */
|
| 251 |
+
{0x00ab, 0x00ab}, /* guillemotleft */
|
| 252 |
+
{0x00ac, 0x00ac}, /* notsign */
|
| 253 |
+
{0x00ad, 0x00ad}, /* hyphen */
|
| 254 |
+
{0x00ae, 0x00ae}, /* registered */
|
| 255 |
+
{0x00af, 0x00af}, /* macron */
|
| 256 |
+
{0x00b0, 0x00b0}, /* degree */
|
| 257 |
+
{0x00b1, 0x00b1}, /* plusminus */
|
| 258 |
+
{0x00b2, 0x00b2}, /* twosuperior */
|
| 259 |
+
{0x00b3, 0x00b3}, /* threesuperior */
|
| 260 |
+
{0x00b4, 0x00b4}, /* acute */
|
| 261 |
+
{0x00b5, 0x00b5}, /* mu */
|
| 262 |
+
{0x00b6, 0x00b6}, /* paragraph */
|
| 263 |
+
{0x00b7, 0x00b7}, /* periodcentered */
|
| 264 |
+
{0x00b8, 0x00b8}, /* cedilla */
|
| 265 |
+
{0x00b9, 0x00b9}, /* onesuperior */
|
| 266 |
+
{0x00ba, 0x00ba}, /* masculine */
|
| 267 |
+
{0x00bb, 0x00bb}, /* guillemotright */
|
| 268 |
+
{0x00bc, 0x00bc}, /* onequarter */
|
| 269 |
+
{0x00bd, 0x00bd}, /* onehalf */
|
| 270 |
+
{0x00be, 0x00be}, /* threequarters */
|
| 271 |
+
{0x00bf, 0x00bf}, /* questiondown */
|
| 272 |
+
{0x00c0, 0x00c0}, /* Agrave */
|
| 273 |
+
{0x00c1, 0x00c1}, /* Aacute */
|
| 274 |
+
{0x00c2, 0x00c2}, /* Acircumflex */
|
| 275 |
+
{0x00c3, 0x00c3}, /* Atilde */
|
| 276 |
+
{0x00c4, 0x00c4}, /* Adiaeresis */
|
| 277 |
+
{0x00c5, 0x00c5}, /* Aring */
|
| 278 |
+
{0x00c6, 0x00c6}, /* AE */
|
| 279 |
+
{0x00c7, 0x00c7}, /* Ccedilla */
|
| 280 |
+
{0x00c8, 0x00c8}, /* Egrave */
|
| 281 |
+
{0x00c9, 0x00c9}, /* Eacute */
|
| 282 |
+
{0x00ca, 0x00ca}, /* Ecircumflex */
|
| 283 |
+
{0x00cb, 0x00cb}, /* Ediaeresis */
|
| 284 |
+
{0x00cc, 0x00cc}, /* Igrave */
|
| 285 |
+
{0x00cd, 0x00cd}, /* Iacute */
|
| 286 |
+
{0x00ce, 0x00ce}, /* Icircumflex */
|
| 287 |
+
{0x00cf, 0x00cf}, /* Idiaeresis */
|
| 288 |
+
{0x00d0, 0x00d0}, /* ETH */
|
| 289 |
+
{0x00d1, 0x00d1}, /* Ntilde */
|
| 290 |
+
{0x00d2, 0x00d2}, /* Ograve */
|
| 291 |
+
{0x00d3, 0x00d3}, /* Oacute */
|
| 292 |
+
{0x00d4, 0x00d4}, /* Ocircumflex */
|
| 293 |
+
{0x00d5, 0x00d5}, /* Otilde */
|
| 294 |
+
{0x00d6, 0x00d6}, /* Odiaeresis */
|
| 295 |
+
{0x00d7, 0x00d7}, /* multiply */
|
| 296 |
+
{0x00d8, 0x00d8}, /* Oslash */
|
| 297 |
+
{0x00d9, 0x00d9}, /* Ugrave */
|
| 298 |
+
{0x00da, 0x00da}, /* Uacute */
|
| 299 |
+
{0x00db, 0x00db}, /* Ucircumflex */
|
| 300 |
+
{0x00dc, 0x00dc}, /* Udiaeresis */
|
| 301 |
+
{0x00dd, 0x00dd}, /* Yacute */
|
| 302 |
+
{0x00de, 0x00de}, /* THORN */
|
| 303 |
+
{0x00df, 0x00df}, /* ssharp */
|
| 304 |
+
{0x00e0, 0x00e0}, /* agrave */
|
| 305 |
+
{0x00e1, 0x00e1}, /* aacute */
|
| 306 |
+
{0x00e2, 0x00e2}, /* acircumflex */
|
| 307 |
+
{0x00e3, 0x00e3}, /* atilde */
|
| 308 |
+
{0x00e4, 0x00e4}, /* adiaeresis */
|
| 309 |
+
{0x00e5, 0x00e5}, /* aring */
|
| 310 |
+
{0x00e6, 0x00e6}, /* ae */
|
| 311 |
+
{0x00e7, 0x00e7}, /* ccedilla */
|
| 312 |
+
{0x00e8, 0x00e8}, /* egrave */
|
| 313 |
+
{0x00e9, 0x00e9}, /* eacute */
|
| 314 |
+
{0x00ea, 0x00ea}, /* ecircumflex */
|
| 315 |
+
{0x00eb, 0x00eb}, /* ediaeresis */
|
| 316 |
+
{0x00ec, 0x00ec}, /* igrave */
|
| 317 |
+
{0x00ed, 0x00ed}, /* iacute */
|
| 318 |
+
{0x00ee, 0x00ee}, /* icircumflex */
|
| 319 |
+
{0x00ef, 0x00ef}, /* idiaeresis */
|
| 320 |
+
{0x00f0, 0x00f0}, /* eth */
|
| 321 |
+
{0x00f1, 0x00f1}, /* ntilde */
|
| 322 |
+
{0x00f2, 0x00f2}, /* ograve */
|
| 323 |
+
{0x00f3, 0x00f3}, /* oacute */
|
| 324 |
+
{0x00f4, 0x00f4}, /* ocircumflex */
|
| 325 |
+
{0x00f5, 0x00f5}, /* otilde */
|
| 326 |
+
{0x00f6, 0x00f6}, /* odiaeresis */
|
| 327 |
+
{0x00f7, 0x00f7}, /* division */
|
| 328 |
+
{0x00f8, 0x00f8}, /* oslash */
|
| 329 |
+
{0x00f9, 0x00f9}, /* ugrave */
|
| 330 |
+
{0x00fa, 0x00fa}, /* uacute */
|
| 331 |
+
{0x00fb, 0x00fb}, /* ucircumflex */
|
| 332 |
+
{0x00fc, 0x00fc}, /* udiaeresis */
|
| 333 |
+
{0x00fd, 0x00fd}, /* yacute */
|
| 334 |
+
{0x00fe, 0x00fe}, /* thorn */
|
| 335 |
+
{0x00ff, 0x00ff}, /* ydiaeresis */
|
| 336 |
+
{0x01a1, 0x0104}, /* Aogonek */
|
| 337 |
+
{0x01a2, 0x02d8}, /* breve */
|
| 338 |
+
{0x01a3, 0x0141}, /* Lstroke */
|
| 339 |
+
{0x01a5, 0x013d}, /* Lcaron */
|
| 340 |
+
{0x01a6, 0x015a}, /* Sacute */
|
| 341 |
+
{0x01a9, 0x0160}, /* Scaron */
|
| 342 |
+
{0x01aa, 0x015e}, /* Scedilla */
|
| 343 |
+
{0x01ab, 0x0164}, /* Tcaron */
|
| 344 |
+
{0x01ac, 0x0179}, /* Zacute */
|
| 345 |
+
{0x01ae, 0x017d}, /* Zcaron */
|
| 346 |
+
{0x01af, 0x017b}, /* Zabovedot */
|
| 347 |
+
{0x01b1, 0x0105}, /* aogonek */
|
| 348 |
+
{0x01b2, 0x02db}, /* ogonek */
|
| 349 |
+
{0x01b3, 0x0142}, /* lstroke */
|
| 350 |
+
{0x01b5, 0x013e}, /* lcaron */
|
| 351 |
+
{0x01b6, 0x015b}, /* sacute */
|
| 352 |
+
{0x01b7, 0x02c7}, /* caron */
|
| 353 |
+
{0x01b9, 0x0161}, /* scaron */
|
| 354 |
+
{0x01ba, 0x015f}, /* scedilla */
|
| 355 |
+
{0x01bb, 0x0165}, /* tcaron */
|
| 356 |
+
{0x01bc, 0x017a}, /* zacute */
|
| 357 |
+
{0x01bd, 0x02dd}, /* doubleacute */
|
| 358 |
+
{0x01be, 0x017e}, /* zcaron */
|
| 359 |
+
{0x01bf, 0x017c}, /* zabovedot */
|
| 360 |
+
{0x01c0, 0x0154}, /* Racute */
|
| 361 |
+
{0x01c3, 0x0102}, /* Abreve */
|
| 362 |
+
{0x01c5, 0x0139}, /* Lacute */
|
| 363 |
+
{0x01c6, 0x0106}, /* Cacute */
|
| 364 |
+
{0x01c8, 0x010c}, /* Ccaron */
|
| 365 |
+
{0x01ca, 0x0118}, /* Eogonek */
|
| 366 |
+
{0x01cc, 0x011a}, /* Ecaron */
|
| 367 |
+
{0x01cf, 0x010e}, /* Dcaron */
|
| 368 |
+
{0x01d0, 0x0110}, /* Dstroke */
|
| 369 |
+
{0x01d1, 0x0143}, /* Nacute */
|
| 370 |
+
{0x01d2, 0x0147}, /* Ncaron */
|
| 371 |
+
{0x01d5, 0x0150}, /* Odoubleacute */
|
| 372 |
+
{0x01d8, 0x0158}, /* Rcaron */
|
| 373 |
+
{0x01d9, 0x016e}, /* Uring */
|
| 374 |
+
{0x01db, 0x0170}, /* Udoubleacute */
|
| 375 |
+
{0x01de, 0x0162}, /* Tcedilla */
|
| 376 |
+
{0x01e0, 0x0155}, /* racute */
|
| 377 |
+
{0x01e3, 0x0103}, /* abreve */
|
| 378 |
+
{0x01e5, 0x013a}, /* lacute */
|
| 379 |
+
{0x01e6, 0x0107}, /* cacute */
|
| 380 |
+
{0x01e8, 0x010d}, /* ccaron */
|
| 381 |
+
{0x01ea, 0x0119}, /* eogonek */
|
| 382 |
+
{0x01ec, 0x011b}, /* ecaron */
|
| 383 |
+
{0x01ef, 0x010f}, /* dcaron */
|
| 384 |
+
{0x01f0, 0x0111}, /* dstroke */
|
| 385 |
+
{0x01f1, 0x0144}, /* nacute */
|
| 386 |
+
{0x01f2, 0x0148}, /* ncaron */
|
| 387 |
+
{0x01f5, 0x0151}, /* odoubleacute */
|
| 388 |
+
{0x01f8, 0x0159}, /* rcaron */
|
| 389 |
+
{0x01f9, 0x016f}, /* uring */
|
| 390 |
+
{0x01fb, 0x0171}, /* udoubleacute */
|
| 391 |
+
{0x01fe, 0x0163}, /* tcedilla */
|
| 392 |
+
{0x01ff, 0x02d9}, /* abovedot */
|
| 393 |
+
{0x02a1, 0x0126}, /* Hstroke */
|
| 394 |
+
{0x02a6, 0x0124}, /* Hcircumflex */
|
| 395 |
+
{0x02a9, 0x0130}, /* Iabovedot */
|
| 396 |
+
{0x02ab, 0x011e}, /* Gbreve */
|
| 397 |
+
{0x02ac, 0x0134}, /* Jcircumflex */
|
| 398 |
+
{0x02b1, 0x0127}, /* hstroke */
|
| 399 |
+
{0x02b6, 0x0125}, /* hcircumflex */
|
| 400 |
+
{0x02b9, 0x0131}, /* idotless */
|
| 401 |
+
{0x02bb, 0x011f}, /* gbreve */
|
| 402 |
+
{0x02bc, 0x0135}, /* jcircumflex */
|
| 403 |
+
{0x02c5, 0x010a}, /* Cabovedot */
|
| 404 |
+
{0x02c6, 0x0108}, /* Ccircumflex */
|
| 405 |
+
{0x02d5, 0x0120}, /* Gabovedot */
|
| 406 |
+
{0x02d8, 0x011c}, /* Gcircumflex */
|
| 407 |
+
{0x02dd, 0x016c}, /* Ubreve */
|
| 408 |
+
{0x02de, 0x015c}, /* Scircumflex */
|
| 409 |
+
{0x02e5, 0x010b}, /* cabovedot */
|
| 410 |
+
{0x02e6, 0x0109}, /* ccircumflex */
|
| 411 |
+
{0x02f5, 0x0121}, /* gabovedot */
|
| 412 |
+
{0x02f8, 0x011d}, /* gcircumflex */
|
| 413 |
+
{0x02fd, 0x016d}, /* ubreve */
|
| 414 |
+
{0x02fe, 0x015d}, /* scircumflex */
|
| 415 |
+
{0x03a2, 0x0138}, /* kra */
|
| 416 |
+
{0x03a3, 0x0156}, /* Rcedilla */
|
| 417 |
+
{0x03a5, 0x0128}, /* Itilde */
|
| 418 |
+
{0x03a6, 0x013b}, /* Lcedilla */
|
| 419 |
+
{0x03aa, 0x0112}, /* Emacron */
|
| 420 |
+
{0x03ab, 0x0122}, /* Gcedilla */
|
| 421 |
+
{0x03ac, 0x0166}, /* Tslash */
|
| 422 |
+
{0x03b3, 0x0157}, /* rcedilla */
|
| 423 |
+
{0x03b5, 0x0129}, /* itilde */
|
| 424 |
+
{0x03b6, 0x013c}, /* lcedilla */
|
| 425 |
+
{0x03ba, 0x0113}, /* emacron */
|
| 426 |
+
{0x03bb, 0x0123}, /* gcedilla */
|
| 427 |
+
{0x03bc, 0x0167}, /* tslash */
|
| 428 |
+
{0x03bd, 0x014a}, /* ENG */
|
| 429 |
+
{0x03bf, 0x014b}, /* eng */
|
| 430 |
+
{0x03c0, 0x0100}, /* Amacron */
|
| 431 |
+
{0x03c7, 0x012e}, /* Iogonek */
|
| 432 |
+
{0x03cc, 0x0116}, /* Eabovedot */
|
| 433 |
+
{0x03cf, 0x012a}, /* Imacron */
|
| 434 |
+
{0x03d1, 0x0145}, /* Ncedilla */
|
| 435 |
+
{0x03d2, 0x014c}, /* Omacron */
|
| 436 |
+
{0x03d3, 0x0136}, /* Kcedilla */
|
| 437 |
+
{0x03d9, 0x0172}, /* Uogonek */
|
| 438 |
+
{0x03dd, 0x0168}, /* Utilde */
|
| 439 |
+
{0x03de, 0x016a}, /* Umacron */
|
| 440 |
+
{0x03e0, 0x0101}, /* amacron */
|
| 441 |
+
{0x03e7, 0x012f}, /* iogonek */
|
| 442 |
+
{0x03ec, 0x0117}, /* eabovedot */
|
| 443 |
+
{0x03ef, 0x012b}, /* imacron */
|
| 444 |
+
{0x03f1, 0x0146}, /* ncedilla */
|
| 445 |
+
{0x03f2, 0x014d}, /* omacron */
|
| 446 |
+
{0x03f3, 0x0137}, /* kcedilla */
|
| 447 |
+
{0x03f9, 0x0173}, /* uogonek */
|
| 448 |
+
{0x03fd, 0x0169}, /* utilde */
|
| 449 |
+
{0x03fe, 0x016b}, /* umacron */
|
| 450 |
+
{0x047e, 0x203e}, /* overline */
|
| 451 |
+
{0x04a1, 0x3002}, /* kana_fullstop */
|
| 452 |
+
{0x04a2, 0x300c}, /* kana_openingbracket */
|
| 453 |
+
{0x04a3, 0x300d}, /* kana_closingbracket */
|
| 454 |
+
{0x04a4, 0x3001}, /* kana_comma */
|
| 455 |
+
{0x04a5, 0x30fb}, /* kana_conjunctive */
|
| 456 |
+
{0x04a6, 0x30f2}, /* kana_WO */
|
| 457 |
+
{0x04a7, 0x30a1}, /* kana_a */
|
| 458 |
+
{0x04a8, 0x30a3}, /* kana_i */
|
| 459 |
+
{0x04a9, 0x30a5}, /* kana_u */
|
| 460 |
+
{0x04aa, 0x30a7}, /* kana_e */
|
| 461 |
+
{0x04ab, 0x30a9}, /* kana_o */
|
| 462 |
+
{0x04ac, 0x30e3}, /* kana_ya */
|
| 463 |
+
{0x04ad, 0x30e5}, /* kana_yu */
|
| 464 |
+
{0x04ae, 0x30e7}, /* kana_yo */
|
| 465 |
+
{0x04af, 0x30c3}, /* kana_tsu */
|
| 466 |
+
{0x04b0, 0x30fc}, /* prolongedsound */
|
| 467 |
+
{0x04b1, 0x30a2}, /* kana_A */
|
| 468 |
+
{0x04b2, 0x30a4}, /* kana_I */
|
| 469 |
+
{0x04b3, 0x30a6}, /* kana_U */
|
| 470 |
+
{0x04b4, 0x30a8}, /* kana_E */
|
| 471 |
+
{0x04b5, 0x30aa}, /* kana_O */
|
| 472 |
+
{0x04b6, 0x30ab}, /* kana_KA */
|
| 473 |
+
{0x04b7, 0x30ad}, /* kana_KI */
|
| 474 |
+
{0x04b8, 0x30af}, /* kana_KU */
|
| 475 |
+
{0x04b9, 0x30b1}, /* kana_KE */
|
| 476 |
+
{0x04ba, 0x30b3}, /* kana_KO */
|
| 477 |
+
{0x04bb, 0x30b5}, /* kana_SA */
|
| 478 |
+
{0x04bc, 0x30b7}, /* kana_SHI */
|
| 479 |
+
{0x04bd, 0x30b9}, /* kana_SU */
|
| 480 |
+
{0x04be, 0x30bb}, /* kana_SE */
|
| 481 |
+
{0x04bf, 0x30bd}, /* kana_SO */
|
| 482 |
+
{0x04c0, 0x30bf}, /* kana_TA */
|
| 483 |
+
{0x04c1, 0x30c1}, /* kana_CHI */
|
| 484 |
+
{0x04c2, 0x30c4}, /* kana_TSU */
|
| 485 |
+
{0x04c3, 0x30c6}, /* kana_TE */
|
| 486 |
+
{0x04c4, 0x30c8}, /* kana_TO */
|
| 487 |
+
{0x04c5, 0x30ca}, /* kana_NA */
|
| 488 |
+
{0x04c6, 0x30cb}, /* kana_NI */
|
| 489 |
+
{0x04c7, 0x30cc}, /* kana_NU */
|
| 490 |
+
{0x04c8, 0x30cd}, /* kana_NE */
|
| 491 |
+
{0x04c9, 0x30ce}, /* kana_NO */
|
| 492 |
+
{0x04ca, 0x30cf}, /* kana_HA */
|
| 493 |
+
{0x04cb, 0x30d2}, /* kana_HI */
|
| 494 |
+
{0x04cc, 0x30d5}, /* kana_FU */
|
| 495 |
+
{0x04cd, 0x30d8}, /* kana_HE */
|
| 496 |
+
{0x04ce, 0x30db}, /* kana_HO */
|
| 497 |
+
{0x04cf, 0x30de}, /* kana_MA */
|
| 498 |
+
{0x04d0, 0x30df}, /* kana_MI */
|
| 499 |
+
{0x04d1, 0x30e0}, /* kana_MU */
|
| 500 |
+
{0x04d2, 0x30e1}, /* kana_ME */
|
| 501 |
+
{0x04d3, 0x30e2}, /* kana_MO */
|
| 502 |
+
{0x04d4, 0x30e4}, /* kana_YA */
|
| 503 |
+
{0x04d5, 0x30e6}, /* kana_YU */
|
| 504 |
+
{0x04d6, 0x30e8}, /* kana_YO */
|
| 505 |
+
{0x04d7, 0x30e9}, /* kana_RA */
|
| 506 |
+
{0x04d8, 0x30ea}, /* kana_RI */
|
| 507 |
+
{0x04d9, 0x30eb}, /* kana_RU */
|
| 508 |
+
{0x04da, 0x30ec}, /* kana_RE */
|
| 509 |
+
{0x04db, 0x30ed}, /* kana_RO */
|
| 510 |
+
{0x04dc, 0x30ef}, /* kana_WA */
|
| 511 |
+
{0x04dd, 0x30f3}, /* kana_N */
|
| 512 |
+
{0x04de, 0x309b}, /* voicedsound */
|
| 513 |
+
{0x04df, 0x309c}, /* semivoicedsound */
|
| 514 |
+
{0x05ac, 0x060c}, /* Arabic_comma */
|
| 515 |
+
{0x05bb, 0x061b}, /* Arabic_semicolon */
|
| 516 |
+
{0x05bf, 0x061f}, /* Arabic_question_mark */
|
| 517 |
+
{0x05c1, 0x0621}, /* Arabic_hamza */
|
| 518 |
+
{0x05c2, 0x0622}, /* Arabic_maddaonalef */
|
| 519 |
+
{0x05c3, 0x0623}, /* Arabic_hamzaonalef */
|
| 520 |
+
{0x05c4, 0x0624}, /* Arabic_hamzaonwaw */
|
| 521 |
+
{0x05c5, 0x0625}, /* Arabic_hamzaunderalef */
|
| 522 |
+
{0x05c6, 0x0626}, /* Arabic_hamzaonyeh */
|
| 523 |
+
{0x05c7, 0x0627}, /* Arabic_alef */
|
| 524 |
+
{0x05c8, 0x0628}, /* Arabic_beh */
|
| 525 |
+
{0x05c9, 0x0629}, /* Arabic_tehmarbuta */
|
| 526 |
+
{0x05ca, 0x062a}, /* Arabic_teh */
|
| 527 |
+
{0x05cb, 0x062b}, /* Arabic_theh */
|
| 528 |
+
{0x05cc, 0x062c}, /* Arabic_jeem */
|
| 529 |
+
{0x05cd, 0x062d}, /* Arabic_hah */
|
| 530 |
+
{0x05ce, 0x062e}, /* Arabic_khah */
|
| 531 |
+
{0x05cf, 0x062f}, /* Arabic_dal */
|
| 532 |
+
{0x05d0, 0x0630}, /* Arabic_thal */
|
| 533 |
+
{0x05d1, 0x0631}, /* Arabic_ra */
|
| 534 |
+
{0x05d2, 0x0632}, /* Arabic_zain */
|
| 535 |
+
{0x05d3, 0x0633}, /* Arabic_seen */
|
| 536 |
+
{0x05d4, 0x0634}, /* Arabic_sheen */
|
| 537 |
+
{0x05d5, 0x0635}, /* Arabic_sad */
|
| 538 |
+
{0x05d6, 0x0636}, /* Arabic_dad */
|
| 539 |
+
{0x05d7, 0x0637}, /* Arabic_tah */
|
| 540 |
+
{0x05d8, 0x0638}, /* Arabic_zah */
|
| 541 |
+
{0x05d9, 0x0639}, /* Arabic_ain */
|
| 542 |
+
{0x05da, 0x063a}, /* Arabic_ghain */
|
| 543 |
+
{0x05e0, 0x0640}, /* Arabic_tatweel */
|
| 544 |
+
{0x05e1, 0x0641}, /* Arabic_feh */
|
| 545 |
+
{0x05e2, 0x0642}, /* Arabic_qaf */
|
| 546 |
+
{0x05e3, 0x0643}, /* Arabic_kaf */
|
| 547 |
+
{0x05e4, 0x0644}, /* Arabic_lam */
|
| 548 |
+
{0x05e5, 0x0645}, /* Arabic_meem */
|
| 549 |
+
{0x05e6, 0x0646}, /* Arabic_noon */
|
| 550 |
+
{0x05e7, 0x0647}, /* Arabic_ha */
|
| 551 |
+
{0x05e8, 0x0648}, /* Arabic_waw */
|
| 552 |
+
{0x05e9, 0x0649}, /* Arabic_alefmaksura */
|
| 553 |
+
{0x05ea, 0x064a}, /* Arabic_yeh */
|
| 554 |
+
{0x05eb, 0x064b}, /* Arabic_fathatan */
|
| 555 |
+
{0x05ec, 0x064c}, /* Arabic_dammatan */
|
| 556 |
+
{0x05ed, 0x064d}, /* Arabic_kasratan */
|
| 557 |
+
{0x05ee, 0x064e}, /* Arabic_fatha */
|
| 558 |
+
{0x05ef, 0x064f}, /* Arabic_damma */
|
| 559 |
+
{0x05f0, 0x0650}, /* Arabic_kasra */
|
| 560 |
+
{0x05f1, 0x0651}, /* Arabic_shadda */
|
| 561 |
+
{0x05f2, 0x0652}, /* Arabic_sukun */
|
| 562 |
+
{0x06a1, 0x0452}, /* Serbian_dje */
|
| 563 |
+
{0x06a2, 0x0453}, /* Macedonia_gje */
|
| 564 |
+
{0x06a3, 0x0451}, /* Cyrillic_io */
|
| 565 |
+
{0x06a4, 0x0454}, /* Ukrainian_ie */
|
| 566 |
+
{0x06a5, 0x0455}, /* Macedonia_dse */
|
| 567 |
+
{0x06a6, 0x0456}, /* Ukrainian_i */
|
| 568 |
+
{0x06a7, 0x0457}, /* Ukrainian_yi */
|
| 569 |
+
{0x06a8, 0x0458}, /* Cyrillic_je */
|
| 570 |
+
{0x06a9, 0x0459}, /* Cyrillic_lje */
|
| 571 |
+
{0x06aa, 0x045a}, /* Cyrillic_nje */
|
| 572 |
+
{0x06ab, 0x045b}, /* Serbian_tshe */
|
| 573 |
+
{0x06ac, 0x045c}, /* Macedonia_kje */
|
| 574 |
+
{0x06ae, 0x045e}, /* Byelorussian_shortu */
|
| 575 |
+
{0x06af, 0x045f}, /* Cyrillic_dzhe */
|
| 576 |
+
{0x06b0, 0x2116}, /* numerosign */
|
| 577 |
+
{0x06b1, 0x0402}, /* Serbian_DJE */
|
| 578 |
+
{0x06b2, 0x0403}, /* Macedonia_GJE */
|
| 579 |
+
{0x06b3, 0x0401}, /* Cyrillic_IO */
|
| 580 |
+
{0x06b4, 0x0404}, /* Ukrainian_IE */
|
| 581 |
+
{0x06b5, 0x0405}, /* Macedonia_DSE */
|
| 582 |
+
{0x06b6, 0x0406}, /* Ukrainian_I */
|
| 583 |
+
{0x06b7, 0x0407}, /* Ukrainian_YI */
|
| 584 |
+
{0x06b8, 0x0408}, /* Cyrillic_JE */
|
| 585 |
+
{0x06b9, 0x0409}, /* Cyrillic_LJE */
|
| 586 |
+
{0x06ba, 0x040a}, /* Cyrillic_NJE */
|
| 587 |
+
{0x06bb, 0x040b}, /* Serbian_TSHE */
|
| 588 |
+
{0x06bc, 0x040c}, /* Macedonia_KJE */
|
| 589 |
+
{0x06be, 0x040e}, /* Byelorussian_SHORTU */
|
| 590 |
+
{0x06bf, 0x040f}, /* Cyrillic_DZHE */
|
| 591 |
+
{0x06c0, 0x044e}, /* Cyrillic_yu */
|
| 592 |
+
{0x06c1, 0x0430}, /* Cyrillic_a */
|
| 593 |
+
{0x06c2, 0x0431}, /* Cyrillic_be */
|
| 594 |
+
{0x06c3, 0x0446}, /* Cyrillic_tse */
|
| 595 |
+
{0x06c4, 0x0434}, /* Cyrillic_de */
|
| 596 |
+
{0x06c5, 0x0435}, /* Cyrillic_ie */
|
| 597 |
+
{0x06c6, 0x0444}, /* Cyrillic_ef */
|
| 598 |
+
{0x06c7, 0x0433}, /* Cyrillic_ghe */
|
| 599 |
+
{0x06c8, 0x0445}, /* Cyrillic_ha */
|
| 600 |
+
{0x06c9, 0x0438}, /* Cyrillic_i */
|
| 601 |
+
{0x06ca, 0x0439}, /* Cyrillic_shorti */
|
| 602 |
+
{0x06cb, 0x043a}, /* Cyrillic_ka */
|
| 603 |
+
{0x06cc, 0x043b}, /* Cyrillic_el */
|
| 604 |
+
{0x06cd, 0x043c}, /* Cyrillic_em */
|
| 605 |
+
{0x06ce, 0x043d}, /* Cyrillic_en */
|
| 606 |
+
{0x06cf, 0x043e}, /* Cyrillic_o */
|
| 607 |
+
{0x06d0, 0x043f}, /* Cyrillic_pe */
|
| 608 |
+
{0x06d1, 0x044f}, /* Cyrillic_ya */
|
| 609 |
+
{0x06d2, 0x0440}, /* Cyrillic_er */
|
| 610 |
+
{0x06d3, 0x0441}, /* Cyrillic_es */
|
| 611 |
+
{0x06d4, 0x0442}, /* Cyrillic_te */
|
| 612 |
+
{0x06d5, 0x0443}, /* Cyrillic_u */
|
| 613 |
+
{0x06d6, 0x0436}, /* Cyrillic_zhe */
|
| 614 |
+
{0x06d7, 0x0432}, /* Cyrillic_ve */
|
| 615 |
+
{0x06d8, 0x044c}, /* Cyrillic_softsign */
|
| 616 |
+
{0x06d9, 0x044b}, /* Cyrillic_yeru */
|
| 617 |
+
{0x06da, 0x0437}, /* Cyrillic_ze */
|
| 618 |
+
{0x06db, 0x0448}, /* Cyrillic_sha */
|
| 619 |
+
{0x06dc, 0x044d}, /* Cyrillic_e */
|
| 620 |
+
{0x06dd, 0x0449}, /* Cyrillic_shcha */
|
| 621 |
+
{0x06de, 0x0447}, /* Cyrillic_che */
|
| 622 |
+
{0x06df, 0x044a}, /* Cyrillic_hardsign */
|
| 623 |
+
{0x06e0, 0x042e}, /* Cyrillic_YU */
|
| 624 |
+
{0x06e1, 0x0410}, /* Cyrillic_A */
|
| 625 |
+
{0x06e2, 0x0411}, /* Cyrillic_BE */
|
| 626 |
+
{0x06e3, 0x0426}, /* Cyrillic_TSE */
|
| 627 |
+
{0x06e4, 0x0414}, /* Cyrillic_DE */
|
| 628 |
+
{0x06e5, 0x0415}, /* Cyrillic_IE */
|
| 629 |
+
{0x06e6, 0x0424}, /* Cyrillic_EF */
|
| 630 |
+
{0x06e7, 0x0413}, /* Cyrillic_GHE */
|
| 631 |
+
{0x06e8, 0x0425}, /* Cyrillic_HA */
|
| 632 |
+
{0x06e9, 0x0418}, /* Cyrillic_I */
|
| 633 |
+
{0x06ea, 0x0419}, /* Cyrillic_SHORTI */
|
| 634 |
+
{0x06eb, 0x041a}, /* Cyrillic_KA */
|
| 635 |
+
{0x06ec, 0x041b}, /* Cyrillic_EL */
|
| 636 |
+
{0x06ed, 0x041c}, /* Cyrillic_EM */
|
| 637 |
+
{0x06ee, 0x041d}, /* Cyrillic_EN */
|
| 638 |
+
{0x06ef, 0x041e}, /* Cyrillic_O */
|
| 639 |
+
{0x06f0, 0x041f}, /* Cyrillic_PE */
|
| 640 |
+
{0x06f1, 0x042f}, /* Cyrillic_YA */
|
| 641 |
+
{0x06f2, 0x0420}, /* Cyrillic_ER */
|
| 642 |
+
{0x06f3, 0x0421}, /* Cyrillic_ES */
|
| 643 |
+
{0x06f4, 0x0422}, /* Cyrillic_TE */
|
| 644 |
+
{0x06f5, 0x0423}, /* Cyrillic_U */
|
| 645 |
+
{0x06f6, 0x0416}, /* Cyrillic_ZHE */
|
| 646 |
+
{0x06f7, 0x0412}, /* Cyrillic_VE */
|
| 647 |
+
{0x06f8, 0x042c}, /* Cyrillic_SOFTSIGN */
|
| 648 |
+
{0x06f9, 0x042b}, /* Cyrillic_YERU */
|
| 649 |
+
{0x06fa, 0x0417}, /* Cyrillic_ZE */
|
| 650 |
+
{0x06fb, 0x0428}, /* Cyrillic_SHA */
|
| 651 |
+
{0x06fc, 0x042d}, /* Cyrillic_E */
|
| 652 |
+
{0x06fd, 0x0429}, /* Cyrillic_SHCHA */
|
| 653 |
+
{0x06fe, 0x0427}, /* Cyrillic_CHE */
|
| 654 |
+
{0x06ff, 0x042a}, /* Cyrillic_HARDSIGN */
|
| 655 |
+
{0x07a1, 0x0386}, /* Greek_ALPHAaccent */
|
| 656 |
+
{0x07a2, 0x0388}, /* Greek_EPSILONaccent */
|
| 657 |
+
{0x07a3, 0x0389}, /* Greek_ETAaccent */
|
| 658 |
+
{0x07a4, 0x038a}, /* Greek_IOTAaccent */
|
| 659 |
+
{0x07a5, 0x03aa}, /* Greek_IOTAdiaeresis */
|
| 660 |
+
{0x07a7, 0x038c}, /* Greek_OMICRONaccent */
|
| 661 |
+
{0x07a8, 0x038e}, /* Greek_UPSILONaccent */
|
| 662 |
+
{0x07a9, 0x03ab}, /* Greek_UPSILONdieresis */
|
| 663 |
+
{0x07ab, 0x038f}, /* Greek_OMEGAaccent */
|
| 664 |
+
{0x07ae, 0x0385}, /* Greek_accentdieresis */
|
| 665 |
+
{0x07af, 0x2015}, /* Greek_horizbar */
|
| 666 |
+
{0x07b1, 0x03ac}, /* Greek_alphaaccent */
|
| 667 |
+
{0x07b2, 0x03ad}, /* Greek_epsilonaccent */
|
| 668 |
+
{0x07b3, 0x03ae}, /* Greek_etaaccent */
|
| 669 |
+
{0x07b4, 0x03af}, /* Greek_iotaaccent */
|
| 670 |
+
{0x07b5, 0x03ca}, /* Greek_iotadieresis */
|
| 671 |
+
{0x07b6, 0x0390}, /* Greek_iotaaccentdieresis */
|
| 672 |
+
{0x07b7, 0x03cc}, /* Greek_omicronaccent */
|
| 673 |
+
{0x07b8, 0x03cd}, /* Greek_upsilonaccent */
|
| 674 |
+
{0x07b9, 0x03cb}, /* Greek_upsilondieresis */
|
| 675 |
+
{0x07ba, 0x03b0}, /* Greek_upsilonaccentdieresis */
|
| 676 |
+
{0x07bb, 0x03ce}, /* Greek_omegaaccent */
|
| 677 |
+
{0x07c1, 0x0391}, /* Greek_ALPHA */
|
| 678 |
+
{0x07c2, 0x0392}, /* Greek_BETA */
|
| 679 |
+
{0x07c3, 0x0393}, /* Greek_GAMMA */
|
| 680 |
+
{0x07c4, 0x0394}, /* Greek_DELTA */
|
| 681 |
+
{0x07c5, 0x0395}, /* Greek_EPSILON */
|
| 682 |
+
{0x07c6, 0x0396}, /* Greek_ZETA */
|
| 683 |
+
{0x07c7, 0x0397}, /* Greek_ETA */
|
| 684 |
+
{0x07c8, 0x0398}, /* Greek_THETA */
|
| 685 |
+
{0x07c9, 0x0399}, /* Greek_IOTA */
|
| 686 |
+
{0x07ca, 0x039a}, /* Greek_KAPPA */
|
| 687 |
+
{0x07cb, 0x039b}, /* Greek_LAMDA */
|
| 688 |
+
{0x07cc, 0x039c}, /* Greek_MU */
|
| 689 |
+
{0x07cd, 0x039d}, /* Greek_NU */
|
| 690 |
+
{0x07ce, 0x039e}, /* Greek_XI */
|
| 691 |
+
{0x07cf, 0x039f}, /* Greek_OMICRON */
|
| 692 |
+
{0x07d0, 0x03a0}, /* Greek_PI */
|
| 693 |
+
{0x07d1, 0x03a1}, /* Greek_RHO */
|
| 694 |
+
{0x07d2, 0x03a3}, /* Greek_SIGMA */
|
| 695 |
+
{0x07d4, 0x03a4}, /* Greek_TAU */
|
| 696 |
+
{0x07d5, 0x03a5}, /* Greek_UPSILON */
|
| 697 |
+
{0x07d6, 0x03a6}, /* Greek_PHI */
|
| 698 |
+
{0x07d7, 0x03a7}, /* Greek_CHI */
|
| 699 |
+
{0x07d8, 0x03a8}, /* Greek_PSI */
|
| 700 |
+
{0x07d9, 0x03a9}, /* Greek_OMEGA */
|
| 701 |
+
{0x07e1, 0x03b1}, /* Greek_alpha */
|
| 702 |
+
{0x07e2, 0x03b2}, /* Greek_beta */
|
| 703 |
+
{0x07e3, 0x03b3}, /* Greek_gamma */
|
| 704 |
+
{0x07e4, 0x03b4}, /* Greek_delta */
|
| 705 |
+
{0x07e5, 0x03b5}, /* Greek_epsilon */
|
| 706 |
+
{0x07e6, 0x03b6}, /* Greek_zeta */
|
| 707 |
+
{0x07e7, 0x03b7}, /* Greek_eta */
|
| 708 |
+
{0x07e8, 0x03b8}, /* Greek_theta */
|
| 709 |
+
{0x07e9, 0x03b9}, /* Greek_iota */
|
| 710 |
+
{0x07ea, 0x03ba}, /* Greek_kappa */
|
| 711 |
+
{0x07eb, 0x03bb}, /* Greek_lambda */
|
| 712 |
+
{0x07ec, 0x03bc}, /* Greek_mu */
|
| 713 |
+
{0x07ed, 0x03bd}, /* Greek_nu */
|
| 714 |
+
{0x07ee, 0x03be}, /* Greek_xi */
|
| 715 |
+
{0x07ef, 0x03bf}, /* Greek_omicron */
|
| 716 |
+
{0x07f0, 0x03c0}, /* Greek_pi */
|
| 717 |
+
{0x07f1, 0x03c1}, /* Greek_rho */
|
| 718 |
+
{0x07f2, 0x03c3}, /* Greek_sigma */
|
| 719 |
+
{0x07f3, 0x03c2}, /* Greek_finalsmallsigma */
|
| 720 |
+
{0x07f4, 0x03c4}, /* Greek_tau */
|
| 721 |
+
{0x07f5, 0x03c5}, /* Greek_upsilon */
|
| 722 |
+
{0x07f6, 0x03c6}, /* Greek_phi */
|
| 723 |
+
{0x07f7, 0x03c7}, /* Greek_chi */
|
| 724 |
+
{0x07f8, 0x03c8}, /* Greek_psi */
|
| 725 |
+
{0x07f9, 0x03c9}, /* Greek_omega */
|
| 726 |
+
{0x08a1, 0x23b7}, /* leftradical */
|
| 727 |
+
{0x08a4, 0x2320}, /* topintegral */
|
| 728 |
+
{0x08a5, 0x2321}, /* botintegral */
|
| 729 |
+
{0x08a7, 0x23a1}, /* topleftsqbracket */
|
| 730 |
+
{0x08a8, 0x23a3}, /* botleftsqbracket */
|
| 731 |
+
{0x08a9, 0x23a4}, /* toprightsqbracket */
|
| 732 |
+
{0x08aa, 0x23a6}, /* botrightsqbracket */
|
| 733 |
+
{0x08ab, 0x239b}, /* topleftparens */
|
| 734 |
+
{0x08ac, 0x239d}, /* botleftparens */
|
| 735 |
+
{0x08ad, 0x239e}, /* toprightparens */
|
| 736 |
+
{0x08ae, 0x23a0}, /* botrightparens */
|
| 737 |
+
{0x08af, 0x23a8}, /* leftmiddlecurlybrace */
|
| 738 |
+
{0x08b0, 0x23ac}, /* rightmiddlecurlybrace */
|
| 739 |
+
{0x08bc, 0x2264}, /* lessthanequal */
|
| 740 |
+
{0x08bd, 0x2260}, /* notequal */
|
| 741 |
+
{0x08be, 0x2265}, /* greaterthanequal */
|
| 742 |
+
{0x08bf, 0x222b}, /* integral */
|
| 743 |
+
{0x08c0, 0x2234}, /* therefore */
|
| 744 |
+
{0x08c1, 0x221d}, /* variation */
|
| 745 |
+
{0x08c2, 0x221e}, /* infinity */
|
| 746 |
+
{0x08c5, 0x2207}, /* nabla */
|
| 747 |
+
{0x08c8, 0x223c}, /* approximate */
|
| 748 |
+
{0x08c9, 0x2243}, /* similarequal */
|
| 749 |
+
{0x08cd, 0x21d4}, /* ifonlyif */
|
| 750 |
+
{0x08ce, 0x21d2}, /* implies */
|
| 751 |
+
{0x08cf, 0x2261}, /* identical */
|
| 752 |
+
{0x08d6, 0x221a}, /* radical */
|
| 753 |
+
{0x08da, 0x2282}, /* includedin */
|
| 754 |
+
{0x08db, 0x2283}, /* includes */
|
| 755 |
+
{0x08dc, 0x2229}, /* intersection */
|
| 756 |
+
{0x08dd, 0x222a}, /* union */
|
| 757 |
+
{0x08de, 0x2227}, /* logicaland */
|
| 758 |
+
{0x08df, 0x2228}, /* logicalor */
|
| 759 |
+
{0x08ef, 0x2202}, /* partialderivative */
|
| 760 |
+
{0x08f6, 0x0192}, /* function */
|
| 761 |
+
{0x08fb, 0x2190}, /* leftarrow */
|
| 762 |
+
{0x08fc, 0x2191}, /* uparrow */
|
| 763 |
+
{0x08fd, 0x2192}, /* rightarrow */
|
| 764 |
+
{0x08fe, 0x2193}, /* downarrow */
|
| 765 |
+
{0x09e0, 0x25c6}, /* soliddiamond */
|
| 766 |
+
{0x09e1, 0x2592}, /* checkerboard */
|
| 767 |
+
{0x09e2, 0x2409}, /* ht */
|
| 768 |
+
{0x09e3, 0x240c}, /* ff */
|
| 769 |
+
{0x09e4, 0x240d}, /* cr */
|
| 770 |
+
{0x09e5, 0x240a}, /* lf */
|
| 771 |
+
{0x09e8, 0x2424}, /* nl */
|
| 772 |
+
{0x09e9, 0x240b}, /* vt */
|
| 773 |
+
{0x09ea, 0x2518}, /* lowrightcorner */
|
| 774 |
+
{0x09eb, 0x2510}, /* uprightcorner */
|
| 775 |
+
{0x09ec, 0x250c}, /* upleftcorner */
|
| 776 |
+
{0x09ed, 0x2514}, /* lowleftcorner */
|
| 777 |
+
{0x09ee, 0x253c}, /* crossinglines */
|
| 778 |
+
{0x09ef, 0x23ba}, /* horizlinescan1 */
|
| 779 |
+
{0x09f0, 0x23bb}, /* horizlinescan3 */
|
| 780 |
+
{0x09f1, 0x2500}, /* horizlinescan5 */
|
| 781 |
+
{0x09f2, 0x23bc}, /* horizlinescan7 */
|
| 782 |
+
{0x09f3, 0x23bd}, /* horizlinescan9 */
|
| 783 |
+
{0x09f4, 0x251c}, /* leftt */
|
| 784 |
+
{0x09f5, 0x2524}, /* rightt */
|
| 785 |
+
{0x09f6, 0x2534}, /* bott */
|
| 786 |
+
{0x09f7, 0x252c}, /* topt */
|
| 787 |
+
{0x09f8, 0x2502}, /* vertbar */
|
| 788 |
+
{0x0aa1, 0x2003}, /* emspace */
|
| 789 |
+
{0x0aa2, 0x2002}, /* enspace */
|
| 790 |
+
{0x0aa3, 0x2004}, /* em3space */
|
| 791 |
+
{0x0aa4, 0x2005}, /* em4space */
|
| 792 |
+
{0x0aa5, 0x2007}, /* digitspace */
|
| 793 |
+
{0x0aa6, 0x2008}, /* punctspace */
|
| 794 |
+
{0x0aa7, 0x2009}, /* thinspace */
|
| 795 |
+
{0x0aa8, 0x200a}, /* hairspace */
|
| 796 |
+
{0x0aa9, 0x2014}, /* emdash */
|
| 797 |
+
{0x0aaa, 0x2013}, /* endash */
|
| 798 |
+
{0x0aae, 0x2026}, /* ellipsis */
|
| 799 |
+
{0x0aaf, 0x2025}, /* doubbaselinedot */
|
| 800 |
+
{0x0ab0, 0x2153}, /* onethird */
|
| 801 |
+
{0x0ab1, 0x2154}, /* twothirds */
|
| 802 |
+
{0x0ab2, 0x2155}, /* onefifth */
|
| 803 |
+
{0x0ab3, 0x2156}, /* twofifths */
|
| 804 |
+
{0x0ab4, 0x2157}, /* threefifths */
|
| 805 |
+
{0x0ab5, 0x2158}, /* fourfifths */
|
| 806 |
+
{0x0ab6, 0x2159}, /* onesixth */
|
| 807 |
+
{0x0ab7, 0x215a}, /* fivesixths */
|
| 808 |
+
{0x0ab8, 0x2105}, /* careof */
|
| 809 |
+
{0x0abb, 0x2012}, /* figdash */
|
| 810 |
+
{0x0ac3, 0x215b}, /* oneeighth */
|
| 811 |
+
{0x0ac4, 0x215c}, /* threeeighths */
|
| 812 |
+
{0x0ac5, 0x215d}, /* fiveeighths */
|
| 813 |
+
{0x0ac6, 0x215e}, /* seveneighths */
|
| 814 |
+
{0x0ac9, 0x2122}, /* trademark */
|
| 815 |
+
{0x0ad0, 0x2018}, /* leftsinglequotemark */
|
| 816 |
+
{0x0ad1, 0x2019}, /* rightsinglequotemark */
|
| 817 |
+
{0x0ad2, 0x201c}, /* leftdoublequotemark */
|
| 818 |
+
{0x0ad3, 0x201d}, /* rightdoublequotemark */
|
| 819 |
+
{0x0ad4, 0x211e}, /* prescription */
|
| 820 |
+
{0x0ad6, 0x2032}, /* minutes */
|
| 821 |
+
{0x0ad7, 0x2033}, /* seconds */
|
| 822 |
+
{0x0ad9, 0x271d}, /* latincross */
|
| 823 |
+
{0x0aec, 0x2663}, /* club */
|
| 824 |
+
{0x0aed, 0x2666}, /* diamond */
|
| 825 |
+
{0x0aee, 0x2665}, /* heart */
|
| 826 |
+
{0x0af0, 0x2720}, /* maltesecross */
|
| 827 |
+
{0x0af1, 0x2020}, /* dagger */
|
| 828 |
+
{0x0af2, 0x2021}, /* doubledagger */
|
| 829 |
+
{0x0af3, 0x2713}, /* checkmark */
|
| 830 |
+
{0x0af4, 0x2717}, /* ballotcross */
|
| 831 |
+
{0x0af5, 0x266f}, /* musicalsharp */
|
| 832 |
+
{0x0af6, 0x266d}, /* musicalflat */
|
| 833 |
+
{0x0af7, 0x2642}, /* malesymbol */
|
| 834 |
+
{0x0af8, 0x2640}, /* femalesymbol */
|
| 835 |
+
{0x0af9, 0x260e}, /* telephone */
|
| 836 |
+
{0x0afa, 0x2315}, /* telephonerecorder */
|
| 837 |
+
{0x0afb, 0x2117}, /* phonographcopyright */
|
| 838 |
+
{0x0afc, 0x2038}, /* caret */
|
| 839 |
+
{0x0afd, 0x201a}, /* singlelowquotemark */
|
| 840 |
+
{0x0afe, 0x201e}, /* doublelowquotemark */
|
| 841 |
+
{0x0bc2, 0x22a5}, /* downtack */
|
| 842 |
+
{0x0bc4, 0x230a}, /* downstile */
|
| 843 |
+
{0x0bca, 0x2218}, /* jot */
|
| 844 |
+
{0x0bcc, 0x2395}, /* quad */
|
| 845 |
+
{0x0bce, 0x22a4}, /* uptack */
|
| 846 |
+
{0x0bcf, 0x25cb}, /* circle */
|
| 847 |
+
{0x0bd3, 0x2308}, /* upstile */
|
| 848 |
+
{0x0bdc, 0x22a2}, /* lefttack */
|
| 849 |
+
{0x0bfc, 0x22a3}, /* righttack */
|
| 850 |
+
{0x0cdf, 0x2017}, /* hebrew_doublelowline */
|
| 851 |
+
{0x0ce0, 0x05d0}, /* hebrew_aleph */
|
| 852 |
+
{0x0ce1, 0x05d1}, /* hebrew_bet */
|
| 853 |
+
{0x0ce2, 0x05d2}, /* hebrew_gimel */
|
| 854 |
+
{0x0ce3, 0x05d3}, /* hebrew_dalet */
|
| 855 |
+
{0x0ce4, 0x05d4}, /* hebrew_he */
|
| 856 |
+
{0x0ce5, 0x05d5}, /* hebrew_waw */
|
| 857 |
+
{0x0ce6, 0x05d6}, /* hebrew_zain */
|
| 858 |
+
{0x0ce7, 0x05d7}, /* hebrew_chet */
|
| 859 |
+
{0x0ce8, 0x05d8}, /* hebrew_tet */
|
| 860 |
+
{0x0ce9, 0x05d9}, /* hebrew_yod */
|
| 861 |
+
{0x0cea, 0x05da}, /* hebrew_finalkaph */
|
| 862 |
+
{0x0ceb, 0x05db}, /* hebrew_kaph */
|
| 863 |
+
{0x0cec, 0x05dc}, /* hebrew_lamed */
|
| 864 |
+
{0x0ced, 0x05dd}, /* hebrew_finalmem */
|
| 865 |
+
{0x0cee, 0x05de}, /* hebrew_mem */
|
| 866 |
+
{0x0cef, 0x05df}, /* hebrew_finalnun */
|
| 867 |
+
{0x0cf0, 0x05e0}, /* hebrew_nun */
|
| 868 |
+
{0x0cf1, 0x05e1}, /* hebrew_samech */
|
| 869 |
+
{0x0cf2, 0x05e2}, /* hebrew_ayin */
|
| 870 |
+
{0x0cf3, 0x05e3}, /* hebrew_finalpe */
|
| 871 |
+
{0x0cf4, 0x05e4}, /* hebrew_pe */
|
| 872 |
+
{0x0cf5, 0x05e5}, /* hebrew_finalzade */
|
| 873 |
+
{0x0cf6, 0x05e6}, /* hebrew_zade */
|
| 874 |
+
{0x0cf7, 0x05e7}, /* hebrew_qoph */
|
| 875 |
+
{0x0cf8, 0x05e8}, /* hebrew_resh */
|
| 876 |
+
{0x0cf9, 0x05e9}, /* hebrew_shin */
|
| 877 |
+
{0x0cfa, 0x05ea}, /* hebrew_taw */
|
| 878 |
+
{0x0da1, 0x0e01}, /* Thai_kokai */
|
| 879 |
+
{0x0da2, 0x0e02}, /* Thai_khokhai */
|
| 880 |
+
{0x0da3, 0x0e03}, /* Thai_khokhuat */
|
| 881 |
+
{0x0da4, 0x0e04}, /* Thai_khokhwai */
|
| 882 |
+
{0x0da5, 0x0e05}, /* Thai_khokhon */
|
| 883 |
+
{0x0da6, 0x0e06}, /* Thai_khorakhang */
|
| 884 |
+
{0x0da7, 0x0e07}, /* Thai_ngongu */
|
| 885 |
+
{0x0da8, 0x0e08}, /* Thai_chochan */
|
| 886 |
+
{0x0da9, 0x0e09}, /* Thai_choching */
|
| 887 |
+
{0x0daa, 0x0e0a}, /* Thai_chochang */
|
| 888 |
+
{0x0dab, 0x0e0b}, /* Thai_soso */
|
| 889 |
+
{0x0dac, 0x0e0c}, /* Thai_chochoe */
|
| 890 |
+
{0x0dad, 0x0e0d}, /* Thai_yoying */
|
| 891 |
+
{0x0dae, 0x0e0e}, /* Thai_dochada */
|
| 892 |
+
{0x0daf, 0x0e0f}, /* Thai_topatak */
|
| 893 |
+
{0x0db0, 0x0e10}, /* Thai_thothan */
|
| 894 |
+
{0x0db1, 0x0e11}, /* Thai_thonangmontho */
|
| 895 |
+
{0x0db2, 0x0e12}, /* Thai_thophuthao */
|
| 896 |
+
{0x0db3, 0x0e13}, /* Thai_nonen */
|
| 897 |
+
{0x0db4, 0x0e14}, /* Thai_dodek */
|
| 898 |
+
{0x0db5, 0x0e15}, /* Thai_totao */
|
| 899 |
+
{0x0db6, 0x0e16}, /* Thai_thothung */
|
| 900 |
+
{0x0db7, 0x0e17}, /* Thai_thothahan */
|
| 901 |
+
{0x0db8, 0x0e18}, /* Thai_thothong */
|
| 902 |
+
{0x0db9, 0x0e19}, /* Thai_nonu */
|
| 903 |
+
{0x0dba, 0x0e1a}, /* Thai_bobaimai */
|
| 904 |
+
{0x0dbb, 0x0e1b}, /* Thai_popla */
|
| 905 |
+
{0x0dbc, 0x0e1c}, /* Thai_phophung */
|
| 906 |
+
{0x0dbd, 0x0e1d}, /* Thai_fofa */
|
| 907 |
+
{0x0dbe, 0x0e1e}, /* Thai_phophan */
|
| 908 |
+
{0x0dbf, 0x0e1f}, /* Thai_fofan */
|
| 909 |
+
{0x0dc0, 0x0e20}, /* Thai_phosamphao */
|
| 910 |
+
{0x0dc1, 0x0e21}, /* Thai_moma */
|
| 911 |
+
{0x0dc2, 0x0e22}, /* Thai_yoyak */
|
| 912 |
+
{0x0dc3, 0x0e23}, /* Thai_rorua */
|
| 913 |
+
{0x0dc4, 0x0e24}, /* Thai_ru */
|
| 914 |
+
{0x0dc5, 0x0e25}, /* Thai_loling */
|
| 915 |
+
{0x0dc6, 0x0e26}, /* Thai_lu */
|
| 916 |
+
{0x0dc7, 0x0e27}, /* Thai_wowaen */
|
| 917 |
+
{0x0dc8, 0x0e28}, /* Thai_sosala */
|
| 918 |
+
{0x0dc9, 0x0e29}, /* Thai_sorusi */
|
| 919 |
+
{0x0dca, 0x0e2a}, /* Thai_sosua */
|
| 920 |
+
{0x0dcb, 0x0e2b}, /* Thai_hohip */
|
| 921 |
+
{0x0dcc, 0x0e2c}, /* Thai_lochula */
|
| 922 |
+
{0x0dcd, 0x0e2d}, /* Thai_oang */
|
| 923 |
+
{0x0dce, 0x0e2e}, /* Thai_honokhuk */
|
| 924 |
+
{0x0dcf, 0x0e2f}, /* Thai_paiyannoi */
|
| 925 |
+
{0x0dd0, 0x0e30}, /* Thai_saraa */
|
| 926 |
+
{0x0dd1, 0x0e31}, /* Thai_maihanakat */
|
| 927 |
+
{0x0dd2, 0x0e32}, /* Thai_saraaa */
|
| 928 |
+
{0x0dd3, 0x0e33}, /* Thai_saraam */
|
| 929 |
+
{0x0dd4, 0x0e34}, /* Thai_sarai */
|
| 930 |
+
{0x0dd5, 0x0e35}, /* Thai_saraii */
|
| 931 |
+
{0x0dd6, 0x0e36}, /* Thai_saraue */
|
| 932 |
+
{0x0dd7, 0x0e37}, /* Thai_sarauee */
|
| 933 |
+
{0x0dd8, 0x0e38}, /* Thai_sarau */
|
| 934 |
+
{0x0dd9, 0x0e39}, /* Thai_sarauu */
|
| 935 |
+
{0x0dda, 0x0e3a}, /* Thai_phinthu */
|
| 936 |
+
{0x0ddf, 0x0e3f}, /* Thai_baht */
|
| 937 |
+
{0x0de0, 0x0e40}, /* Thai_sarae */
|
| 938 |
+
{0x0de1, 0x0e41}, /* Thai_saraae */
|
| 939 |
+
{0x0de2, 0x0e42}, /* Thai_sarao */
|
| 940 |
+
{0x0de3, 0x0e43}, /* Thai_saraaimaimuan */
|
| 941 |
+
{0x0de4, 0x0e44}, /* Thai_saraaimaimalai */
|
| 942 |
+
{0x0de5, 0x0e45}, /* Thai_lakkhangyao */
|
| 943 |
+
{0x0de6, 0x0e46}, /* Thai_maiyamok */
|
| 944 |
+
{0x0de7, 0x0e47}, /* Thai_maitaikhu */
|
| 945 |
+
{0x0de8, 0x0e48}, /* Thai_maiek */
|
| 946 |
+
{0x0de9, 0x0e49}, /* Thai_maitho */
|
| 947 |
+
{0x0dea, 0x0e4a}, /* Thai_maitri */
|
| 948 |
+
{0x0deb, 0x0e4b}, /* Thai_maichattawa */
|
| 949 |
+
{0x0dec, 0x0e4c}, /* Thai_thanthakhat */
|
| 950 |
+
{0x0ded, 0x0e4d}, /* Thai_nikhahit */
|
| 951 |
+
{0x0df0, 0x0e50}, /* Thai_leksun */
|
| 952 |
+
{0x0df1, 0x0e51}, /* Thai_leknung */
|
| 953 |
+
{0x0df2, 0x0e52}, /* Thai_leksong */
|
| 954 |
+
{0x0df3, 0x0e53}, /* Thai_leksam */
|
| 955 |
+
{0x0df4, 0x0e54}, /* Thai_leksi */
|
| 956 |
+
{0x0df5, 0x0e55}, /* Thai_lekha */
|
| 957 |
+
{0x0df6, 0x0e56}, /* Thai_lekhok */
|
| 958 |
+
{0x0df7, 0x0e57}, /* Thai_lekchet */
|
| 959 |
+
{0x0df8, 0x0e58}, /* Thai_lekpaet */
|
| 960 |
+
{0x0df9, 0x0e59}, /* Thai_lekkao */
|
| 961 |
+
{0x13bc, 0x0152}, /* OE */
|
| 962 |
+
{0x13bd, 0x0153}, /* oe */
|
| 963 |
+
{0x13be, 0x0178}, /* Ydiaeresis */
|
| 964 |
+
{0x20a0, 0x20a0}, /* EcuSign */
|
| 965 |
+
{0x20a1, 0x20a1}, /* ColonSign */
|
| 966 |
+
{0x20a2, 0x20a2}, /* CruzeiroSign */
|
| 967 |
+
{0x20a3, 0x20a3}, /* FFrancSign */
|
| 968 |
+
{0x20a4, 0x20a4}, /* LiraSign */
|
| 969 |
+
{0x20a5, 0x20a5}, /* MillSign */
|
| 970 |
+
{0x20a6, 0x20a6}, /* NairaSign */
|
| 971 |
+
{0x20a7, 0x20a7}, /* PesetaSign */
|
| 972 |
+
{0x20a8, 0x20a8}, /* RupeeSign */
|
| 973 |
+
{0x20a9, 0x20a9}, /* WonSign */
|
| 974 |
+
{0x20aa, 0x20aa}, /* NewSheqelSign */
|
| 975 |
+
{0x20ab, 0x20ab}, /* DongSign */
|
| 976 |
+
{0x20ac, 0x20ac}, /* EuroSign */
|
| 977 |
+
{0x06ad, 0x0491}, /* Ukrainian_ghe_with_upturn */
|
| 978 |
+
{0x06bd, 0x0490}, /* Ukrainian_GHE_WITH_UPTURN */
|
| 979 |
+
{0x14a2, 0x0587}, /* Armenian_ligature_ew */
|
| 980 |
+
{0x14a3, 0x0589}, /* Armenian_verjaket */
|
| 981 |
+
{0x14aa, 0x055d}, /* Armenian_but */
|
| 982 |
+
{0x14ad, 0x058a}, /* Armenian_yentamna */
|
| 983 |
+
{0x14af, 0x055c}, /* Armenian_amanak */
|
| 984 |
+
{0x14b0, 0x055b}, /* Armenian_shesht */
|
| 985 |
+
{0x14b1, 0x055e}, /* Armenian_paruyk */
|
| 986 |
+
{0x14b2, 0x0531}, /* Armenian_AYB */
|
| 987 |
+
{0x14b3, 0x0561}, /* Armenian_ayb */
|
| 988 |
+
{0x14b4, 0x0532}, /* Armenian_BEN */
|
| 989 |
+
{0x14b5, 0x0562}, /* Armenian_ben */
|
| 990 |
+
{0x14b6, 0x0533}, /* Armenian_GIM */
|
| 991 |
+
{0x14b7, 0x0563}, /* Armenian_gim */
|
| 992 |
+
{0x14b8, 0x0534}, /* Armenian_DA */
|
| 993 |
+
{0x14b9, 0x0564}, /* Armenian_da */
|
| 994 |
+
{0x14ba, 0x0535}, /* Armenian_YECH */
|
| 995 |
+
{0x14bb, 0x0565}, /* Armenian_yech */
|
| 996 |
+
{0x14bc, 0x0536}, /* Armenian_ZA */
|
| 997 |
+
{0x14bd, 0x0566}, /* Armenian_za */
|
| 998 |
+
{0x14be, 0x0537}, /* Armenian_E */
|
| 999 |
+
{0x14bf, 0x0567}, /* Armenian_e */
|
| 1000 |
+
{0x14c0, 0x0538}, /* Armenian_AT */
|
| 1001 |
+
{0x14c1, 0x0568}, /* Armenian_at */
|
| 1002 |
+
{0x14c2, 0x0539}, /* Armenian_TO */
|
| 1003 |
+
{0x14c3, 0x0569}, /* Armenian_to */
|
| 1004 |
+
{0x14c4, 0x053a}, /* Armenian_ZHE */
|
| 1005 |
+
{0x14c5, 0x056a}, /* Armenian_zhe */
|
| 1006 |
+
{0x14c6, 0x053b}, /* Armenian_INI */
|
| 1007 |
+
{0x14c7, 0x056b}, /* Armenian_ini */
|
| 1008 |
+
{0x14c8, 0x053c}, /* Armenian_LYUN */
|
| 1009 |
+
{0x14c9, 0x056c}, /* Armenian_lyun */
|
| 1010 |
+
{0x14ca, 0x053d}, /* Armenian_KHE */
|
| 1011 |
+
{0x14cb, 0x056d}, /* Armenian_khe */
|
| 1012 |
+
{0x14cc, 0x053e}, /* Armenian_TSA */
|
| 1013 |
+
{0x14cd, 0x056e}, /* Armenian_tsa */
|
| 1014 |
+
{0x14ce, 0x053f}, /* Armenian_KEN */
|
| 1015 |
+
{0x14cf, 0x056f}, /* Armenian_ken */
|
| 1016 |
+
{0x14d0, 0x0540}, /* Armenian_HO */
|
| 1017 |
+
{0x14d1, 0x0570}, /* Armenian_ho */
|
| 1018 |
+
{0x14d2, 0x0541}, /* Armenian_DZA */
|
| 1019 |
+
{0x14d3, 0x0571}, /* Armenian_dza */
|
| 1020 |
+
{0x14d4, 0x0542}, /* Armenian_GHAT */
|
| 1021 |
+
{0x14d5, 0x0572}, /* Armenian_ghat */
|
| 1022 |
+
{0x14d6, 0x0543}, /* Armenian_TCHE */
|
| 1023 |
+
{0x14d7, 0x0573}, /* Armenian_tche */
|
| 1024 |
+
{0x14d8, 0x0544}, /* Armenian_MEN */
|
| 1025 |
+
{0x14d9, 0x0574}, /* Armenian_men */
|
| 1026 |
+
{0x14da, 0x0545}, /* Armenian_HI */
|
| 1027 |
+
{0x14db, 0x0575}, /* Armenian_hi */
|
| 1028 |
+
{0x14dc, 0x0546}, /* Armenian_NU */
|
| 1029 |
+
{0x14dd, 0x0576}, /* Armenian_nu */
|
| 1030 |
+
{0x14de, 0x0547}, /* Armenian_SHA */
|
| 1031 |
+
{0x14df, 0x0577}, /* Armenian_sha */
|
| 1032 |
+
{0x14e0, 0x0548}, /* Armenian_VO */
|
| 1033 |
+
{0x14e1, 0x0578}, /* Armenian_vo */
|
| 1034 |
+
{0x14e2, 0x0549}, /* Armenian_CHA */
|
| 1035 |
+
{0x14e3, 0x0579}, /* Armenian_cha */
|
| 1036 |
+
{0x14e4, 0x054a}, /* Armenian_PE */
|
| 1037 |
+
{0x14e5, 0x057a}, /* Armenian_pe */
|
| 1038 |
+
{0x14e6, 0x054b}, /* Armenian_JE */
|
| 1039 |
+
{0x14e7, 0x057b}, /* Armenian_je */
|
| 1040 |
+
{0x14e8, 0x054c}, /* Armenian_RA */
|
| 1041 |
+
{0x14e9, 0x057c}, /* Armenian_ra */
|
| 1042 |
+
{0x14ea, 0x054d}, /* Armenian_SE */
|
| 1043 |
+
{0x14eb, 0x057d}, /* Armenian_se */
|
| 1044 |
+
{0x14ec, 0x054e}, /* Armenian_VEV */
|
| 1045 |
+
{0x14ed, 0x057e}, /* Armenian_vev */
|
| 1046 |
+
{0x14ee, 0x054f}, /* Armenian_TYUN */
|
| 1047 |
+
{0x14ef, 0x057f}, /* Armenian_tyun */
|
| 1048 |
+
{0x14f0, 0x0550}, /* Armenian_RE */
|
| 1049 |
+
{0x14f1, 0x0580}, /* Armenian_re */
|
| 1050 |
+
{0x14f2, 0x0551}, /* Armenian_TSO */
|
| 1051 |
+
{0x14f3, 0x0581}, /* Armenian_tso */
|
| 1052 |
+
{0x14f4, 0x0552}, /* Armenian_VYUN */
|
| 1053 |
+
{0x14f5, 0x0582}, /* Armenian_vyun */
|
| 1054 |
+
{0x14f6, 0x0553}, /* Armenian_PYUR */
|
| 1055 |
+
{0x14f7, 0x0583}, /* Armenian_pyur */
|
| 1056 |
+
{0x14f8, 0x0554}, /* Armenian_KE */
|
| 1057 |
+
{0x14f9, 0x0584}, /* Armenian_ke */
|
| 1058 |
+
{0x14fa, 0x0555}, /* Armenian_O */
|
| 1059 |
+
{0x14fb, 0x0585}, /* Armenian_o */
|
| 1060 |
+
{0x14fc, 0x0556}, /* Armenian_FE */
|
| 1061 |
+
{0x14fd, 0x0586}, /* Armenian_fe */
|
| 1062 |
+
{0x14fe, 0x055a}, /* Armenian_apostrophe */
|
| 1063 |
+
{0x15d0, 0x10d0}, /* Georgian_an */
|
| 1064 |
+
{0x15d1, 0x10d1}, /* Georgian_ban */
|
| 1065 |
+
{0x15d2, 0x10d2}, /* Georgian_gan */
|
| 1066 |
+
{0x15d3, 0x10d3}, /* Georgian_don */
|
| 1067 |
+
{0x15d4, 0x10d4}, /* Georgian_en */
|
| 1068 |
+
{0x15d5, 0x10d5}, /* Georgian_vin */
|
| 1069 |
+
{0x15d6, 0x10d6}, /* Georgian_zen */
|
| 1070 |
+
{0x15d7, 0x10d7}, /* Georgian_tan */
|
| 1071 |
+
{0x15d8, 0x10d8}, /* Georgian_in */
|
| 1072 |
+
{0x15d9, 0x10d9}, /* Georgian_kan */
|
| 1073 |
+
{0x15da, 0x10da}, /* Georgian_las */
|
| 1074 |
+
{0x15db, 0x10db}, /* Georgian_man */
|
| 1075 |
+
{0x15dc, 0x10dc}, /* Georgian_nar */
|
| 1076 |
+
{0x15dd, 0x10dd}, /* Georgian_on */
|
| 1077 |
+
{0x15de, 0x10de}, /* Georgian_par */
|
| 1078 |
+
{0x15df, 0x10df}, /* Georgian_zhar */
|
| 1079 |
+
{0x15e0, 0x10e0}, /* Georgian_rae */
|
| 1080 |
+
{0x15e1, 0x10e1}, /* Georgian_san */
|
| 1081 |
+
{0x15e2, 0x10e2}, /* Georgian_tar */
|
| 1082 |
+
{0x15e3, 0x10e3}, /* Georgian_un */
|
| 1083 |
+
{0x15e4, 0x10e4}, /* Georgian_phar */
|
| 1084 |
+
{0x15e5, 0x10e5}, /* Georgian_khar */
|
| 1085 |
+
{0x15e6, 0x10e6}, /* Georgian_ghan */
|
| 1086 |
+
{0x15e7, 0x10e7}, /* Georgian_qar */
|
| 1087 |
+
{0x15e8, 0x10e8}, /* Georgian_shin */
|
| 1088 |
+
{0x15e9, 0x10e9}, /* Georgian_chin */
|
| 1089 |
+
{0x15ea, 0x10ea}, /* Georgian_can */
|
| 1090 |
+
{0x15eb, 0x10eb}, /* Georgian_jil */
|
| 1091 |
+
{0x15ec, 0x10ec}, /* Georgian_cil */
|
| 1092 |
+
{0x15ed, 0x10ed}, /* Georgian_char */
|
| 1093 |
+
{0x15ee, 0x10ee}, /* Georgian_xan */
|
| 1094 |
+
{0x15ef, 0x10ef}, /* Georgian_jhan */
|
| 1095 |
+
{0x15f0, 0x10f0}, /* Georgian_hae */
|
| 1096 |
+
{0x15f1, 0x10f1}, /* Georgian_he */
|
| 1097 |
+
{0x15f2, 0x10f2}, /* Georgian_hie */
|
| 1098 |
+
{0x15f3, 0x10f3}, /* Georgian_we */
|
| 1099 |
+
{0x15f4, 0x10f4}, /* Georgian_har */
|
| 1100 |
+
{0x15f5, 0x10f5}, /* Georgian_hoe */
|
| 1101 |
+
{0x15f6, 0x10f6}, /* Georgian_fi */
|
| 1102 |
+
{0x12a1, 0x1e02}, /* Babovedot */
|
| 1103 |
+
{0x12a2, 0x1e03}, /* babovedot */
|
| 1104 |
+
{0x12a6, 0x1e0a}, /* Dabovedot */
|
| 1105 |
+
{0x12a8, 0x1e80}, /* Wgrave */
|
| 1106 |
+
{0x12aa, 0x1e82}, /* Wacute */
|
| 1107 |
+
{0x12ab, 0x1e0b}, /* dabovedot */
|
| 1108 |
+
{0x12ac, 0x1ef2}, /* Ygrave */
|
| 1109 |
+
{0x12b0, 0x1e1e}, /* Fabovedot */
|
| 1110 |
+
{0x12b1, 0x1e1f}, /* fabovedot */
|
| 1111 |
+
{0x12b4, 0x1e40}, /* Mabovedot */
|
| 1112 |
+
{0x12b5, 0x1e41}, /* mabovedot */
|
| 1113 |
+
{0x12b7, 0x1e56}, /* Pabovedot */
|
| 1114 |
+
{0x12b8, 0x1e81}, /* wgrave */
|
| 1115 |
+
{0x12b9, 0x1e57}, /* pabovedot */
|
| 1116 |
+
{0x12ba, 0x1e83}, /* wacute */
|
| 1117 |
+
{0x12bb, 0x1e60}, /* Sabovedot */
|
| 1118 |
+
{0x12bc, 0x1ef3}, /* ygrave */
|
| 1119 |
+
{0x12bd, 0x1e84}, /* Wdiaeresis */
|
| 1120 |
+
{0x12be, 0x1e85}, /* wdiaeresis */
|
| 1121 |
+
{0x12bf, 0x1e61}, /* sabovedot */
|
| 1122 |
+
{0x12d0, 0x0174}, /* Wcircumflex */
|
| 1123 |
+
{0x12d7, 0x1e6a}, /* Tabovedot */
|
| 1124 |
+
{0x12de, 0x0176}, /* Ycircumflex */
|
| 1125 |
+
{0x12f0, 0x0175}, /* wcircumflex */
|
| 1126 |
+
{0x12f7, 0x1e6b}, /* tabovedot */
|
| 1127 |
+
{0x12fe, 0x0177}, /* ycircumflex */
|
| 1128 |
+
{0x0590, 0x06f0}, /* Farsi_0 */
|
| 1129 |
+
{0x0591, 0x06f1}, /* Farsi_1 */
|
| 1130 |
+
{0x0592, 0x06f2}, /* Farsi_2 */
|
| 1131 |
+
{0x0593, 0x06f3}, /* Farsi_3 */
|
| 1132 |
+
{0x0594, 0x06f4}, /* Farsi_4 */
|
| 1133 |
+
{0x0595, 0x06f5}, /* Farsi_5 */
|
| 1134 |
+
{0x0596, 0x06f6}, /* Farsi_6 */
|
| 1135 |
+
{0x0597, 0x06f7}, /* Farsi_7 */
|
| 1136 |
+
{0x0598, 0x06f8}, /* Farsi_8 */
|
| 1137 |
+
{0x0599, 0x06f9}, /* Farsi_9 */
|
| 1138 |
+
{0x05a5, 0x066a}, /* Arabic_percent */
|
| 1139 |
+
{0x05a6, 0x0670}, /* Arabic_superscript_alef */
|
| 1140 |
+
{0x05a7, 0x0679}, /* Arabic_tteh */
|
| 1141 |
+
{0x05a8, 0x067e}, /* Arabic_peh */
|
| 1142 |
+
{0x05a9, 0x0686}, /* Arabic_tcheh */
|
| 1143 |
+
{0x05aa, 0x0688}, /* Arabic_ddal */
|
| 1144 |
+
{0x05ab, 0x0691}, /* Arabic_rreh */
|
| 1145 |
+
{0x05ae, 0x06d4}, /* Arabic_fullstop */
|
| 1146 |
+
{0x05b0, 0x0660}, /* Arabic_0 */
|
| 1147 |
+
{0x05b1, 0x0661}, /* Arabic_1 */
|
| 1148 |
+
{0x05b2, 0x0662}, /* Arabic_2 */
|
| 1149 |
+
{0x05b3, 0x0663}, /* Arabic_3 */
|
| 1150 |
+
{0x05b4, 0x0664}, /* Arabic_4 */
|
| 1151 |
+
{0x05b5, 0x0665}, /* Arabic_5 */
|
| 1152 |
+
{0x05b6, 0x0666}, /* Arabic_6 */
|
| 1153 |
+
{0x05b7, 0x0667}, /* Arabic_7 */
|
| 1154 |
+
{0x05b8, 0x0668}, /* Arabic_8 */
|
| 1155 |
+
{0x05b9, 0x0669}, /* Arabic_9 */
|
| 1156 |
+
{0x05f3, 0x0653}, /* Arabic_madda_above */
|
| 1157 |
+
{0x05f4, 0x0654}, /* Arabic_hamza_above */
|
| 1158 |
+
{0x05f5, 0x0655}, /* Arabic_hamza_below */
|
| 1159 |
+
{0x05f6, 0x0698}, /* Arabic_jeh */
|
| 1160 |
+
{0x05f7, 0x06a4}, /* Arabic_veh */
|
| 1161 |
+
{0x05f8, 0x06a9}, /* Arabic_keheh */
|
| 1162 |
+
{0x05f9, 0x06af}, /* Arabic_gaf */
|
| 1163 |
+
{0x05fa, 0x06ba}, /* Arabic_noon_ghunna */
|
| 1164 |
+
{0x05fb, 0x06be}, /* Arabic_heh_doachashmee */
|
| 1165 |
+
{0x05fc, 0x06cc}, /* Farsi_yeh */
|
| 1166 |
+
{0x05fd, 0x06d2}, /* Arabic_yeh_baree */
|
| 1167 |
+
{0x05fe, 0x06c1}, /* Arabic_heh_goal */
|
| 1168 |
+
{0x0680, 0x0492}, /* Cyrillic_GHE_bar */
|
| 1169 |
+
{0x0681, 0x0496}, /* Cyrillic_ZHE_descender */
|
| 1170 |
+
{0x0682, 0x049a}, /* Cyrillic_KA_descender */
|
| 1171 |
+
{0x0683, 0x049c}, /* Cyrillic_KA_vertstroke */
|
| 1172 |
+
{0x0684, 0x04a2}, /* Cyrillic_EN_descender */
|
| 1173 |
+
{0x0685, 0x04ae}, /* Cyrillic_U_straight */
|
| 1174 |
+
{0x0686, 0x04b0}, /* Cyrillic_U_straight_bar */
|
| 1175 |
+
{0x0687, 0x04b2}, /* Cyrillic_HA_descender */
|
| 1176 |
+
{0x0688, 0x04b6}, /* Cyrillic_CHE_descender */
|
| 1177 |
+
{0x0689, 0x04b8}, /* Cyrillic_CHE_vertstroke */
|
| 1178 |
+
{0x068a, 0x04ba}, /* Cyrillic_SHHA */
|
| 1179 |
+
{0x068c, 0x04d8}, /* Cyrillic_SCHWA */
|
| 1180 |
+
{0x068d, 0x04e2}, /* Cyrillic_I_macron */
|
| 1181 |
+
{0x068e, 0x04e8}, /* Cyrillic_O_bar */
|
| 1182 |
+
{0x068f, 0x04ee}, /* Cyrillic_U_macron */
|
| 1183 |
+
{0x0690, 0x0493}, /* Cyrillic_ghe_bar */
|
| 1184 |
+
{0x0691, 0x0497}, /* Cyrillic_zhe_descender */
|
| 1185 |
+
{0x0692, 0x049b}, /* Cyrillic_ka_descender */
|
| 1186 |
+
{0x0693, 0x049d}, /* Cyrillic_ka_vertstroke */
|
| 1187 |
+
{0x0694, 0x04a3}, /* Cyrillic_en_descender */
|
| 1188 |
+
{0x0695, 0x04af}, /* Cyrillic_u_straight */
|
| 1189 |
+
{0x0696, 0x04b1}, /* Cyrillic_u_straight_bar */
|
| 1190 |
+
{0x0697, 0x04b3}, /* Cyrillic_ha_descender */
|
| 1191 |
+
{0x0698, 0x04b7}, /* Cyrillic_che_descender */
|
| 1192 |
+
{0x0699, 0x04b9}, /* Cyrillic_che_vertstroke */
|
| 1193 |
+
{0x069a, 0x04bb}, /* Cyrillic_shha */
|
| 1194 |
+
{0x069c, 0x04d9}, /* Cyrillic_schwa */
|
| 1195 |
+
{0x069d, 0x04e3}, /* Cyrillic_i_macron */
|
| 1196 |
+
{0x069e, 0x04e9}, /* Cyrillic_o_bar */
|
| 1197 |
+
{0x069f, 0x04ef}, /* Cyrillic_u_macron */
|
| 1198 |
+
{0x16a3, 0x1e8a}, /* Xabovedot */
|
| 1199 |
+
{0x16a6, 0x012c}, /* Ibreve */
|
| 1200 |
+
{0x16a9, 0x01b5}, /* Zstroke */
|
| 1201 |
+
{0x16aa, 0x01e6}, /* Gcaron */
|
| 1202 |
+
{0x16af, 0x019f}, /* Obarred */
|
| 1203 |
+
{0x16b3, 0x1e8b}, /* xabovedot */
|
| 1204 |
+
{0x16b6, 0x012d}, /* ibreve */
|
| 1205 |
+
{0x16b9, 0x01b6}, /* zstroke */
|
| 1206 |
+
{0x16ba, 0x01e7}, /* gcaron */
|
| 1207 |
+
{0x16bd, 0x01d2}, /* ocaron */
|
| 1208 |
+
{0x16bf, 0x0275}, /* obarred */
|
| 1209 |
+
{0x16c6, 0x018f}, /* SCHWA */
|
| 1210 |
+
{0x16f6, 0x0259}, /* schwa */
|
| 1211 |
+
{0x16d1, 0x1e36}, /* Lbelowdot */
|
| 1212 |
+
{0x16e1, 0x1e37}, /* lbelowdot */
|
| 1213 |
+
{0x1ea0, 0x1ea0}, /* Abelowdot */
|
| 1214 |
+
{0x1ea1, 0x1ea1}, /* abelowdot */
|
| 1215 |
+
{0x1ea2, 0x1ea2}, /* Ahook */
|
| 1216 |
+
{0x1ea3, 0x1ea3}, /* ahook */
|
| 1217 |
+
{0x1ea4, 0x1ea4}, /* Acircumflexacute */
|
| 1218 |
+
{0x1ea5, 0x1ea5}, /* acircumflexacute */
|
| 1219 |
+
{0x1ea6, 0x1ea6}, /* Acircumflexgrave */
|
| 1220 |
+
{0x1ea7, 0x1ea7}, /* acircumflexgrave */
|
| 1221 |
+
{0x1ea8, 0x1ea8}, /* Acircumflexhook */
|
| 1222 |
+
{0x1ea9, 0x1ea9}, /* acircumflexhook */
|
| 1223 |
+
{0x1eaa, 0x1eaa}, /* Acircumflextilde */
|
| 1224 |
+
{0x1eab, 0x1eab}, /* acircumflextilde */
|
| 1225 |
+
{0x1eac, 0x1eac}, /* Acircumflexbelowdot */
|
| 1226 |
+
{0x1ead, 0x1ead}, /* acircumflexbelowdot */
|
| 1227 |
+
{0x1eae, 0x1eae}, /* Abreveacute */
|
| 1228 |
+
{0x1eaf, 0x1eaf}, /* abreveacute */
|
| 1229 |
+
{0x1eb0, 0x1eb0}, /* Abrevegrave */
|
| 1230 |
+
{0x1eb1, 0x1eb1}, /* abrevegrave */
|
| 1231 |
+
{0x1eb2, 0x1eb2}, /* Abrevehook */
|
| 1232 |
+
{0x1eb3, 0x1eb3}, /* abrevehook */
|
| 1233 |
+
{0x1eb4, 0x1eb4}, /* Abrevetilde */
|
| 1234 |
+
{0x1eb5, 0x1eb5}, /* abrevetilde */
|
| 1235 |
+
{0x1eb6, 0x1eb6}, /* Abrevebelowdot */
|
| 1236 |
+
{0x1eb7, 0x1eb7}, /* abrevebelowdot */
|
| 1237 |
+
{0x1eb8, 0x1eb8}, /* Ebelowdot */
|
| 1238 |
+
{0x1eb9, 0x1eb9}, /* ebelowdot */
|
| 1239 |
+
{0x1eba, 0x1eba}, /* Ehook */
|
| 1240 |
+
{0x1ebb, 0x1ebb}, /* ehook */
|
| 1241 |
+
{0x1ebc, 0x1ebc}, /* Etilde */
|
| 1242 |
+
{0x1ebd, 0x1ebd}, /* etilde */
|
| 1243 |
+
{0x1ebe, 0x1ebe}, /* Ecircumflexacute */
|
| 1244 |
+
{0x1ebf, 0x1ebf}, /* ecircumflexacute */
|
| 1245 |
+
{0x1ec0, 0x1ec0}, /* Ecircumflexgrave */
|
| 1246 |
+
{0x1ec1, 0x1ec1}, /* ecircumflexgrave */
|
| 1247 |
+
{0x1ec2, 0x1ec2}, /* Ecircumflexhook */
|
| 1248 |
+
{0x1ec3, 0x1ec3}, /* ecircumflexhook */
|
| 1249 |
+
{0x1ec4, 0x1ec4}, /* Ecircumflextilde */
|
| 1250 |
+
{0x1ec5, 0x1ec5}, /* ecircumflextilde */
|
| 1251 |
+
{0x1ec6, 0x1ec6}, /* Ecircumflexbelowdot */
|
| 1252 |
+
{0x1ec7, 0x1ec7}, /* ecircumflexbelowdot */
|
| 1253 |
+
{0x1ec8, 0x1ec8}, /* Ihook */
|
| 1254 |
+
{0x1ec9, 0x1ec9}, /* ihook */
|
| 1255 |
+
{0x1eca, 0x1eca}, /* Ibelowdot */
|
| 1256 |
+
{0x1ecb, 0x1ecb}, /* ibelowdot */
|
| 1257 |
+
{0x1ecc, 0x1ecc}, /* Obelowdot */
|
| 1258 |
+
{0x1ecd, 0x1ecd}, /* obelowdot */
|
| 1259 |
+
{0x1ece, 0x1ece}, /* Ohook */
|
| 1260 |
+
{0x1ecf, 0x1ecf}, /* ohook */
|
| 1261 |
+
{0x1ed0, 0x1ed0}, /* Ocircumflexacute */
|
| 1262 |
+
{0x1ed1, 0x1ed1}, /* ocircumflexacute */
|
| 1263 |
+
{0x1ed2, 0x1ed2}, /* Ocircumflexgrave */
|
| 1264 |
+
{0x1ed3, 0x1ed3}, /* ocircumflexgrave */
|
| 1265 |
+
{0x1ed4, 0x1ed4}, /* Ocircumflexhook */
|
| 1266 |
+
{0x1ed5, 0x1ed5}, /* ocircumflexhook */
|
| 1267 |
+
{0x1ed6, 0x1ed6}, /* Ocircumflextilde */
|
| 1268 |
+
{0x1ed7, 0x1ed7}, /* ocircumflextilde */
|
| 1269 |
+
{0x1ed8, 0x1ed8}, /* Ocircumflexbelowdot */
|
| 1270 |
+
{0x1ed9, 0x1ed9}, /* ocircumflexbelowdot */
|
| 1271 |
+
{0x1eda, 0x1eda}, /* Ohornacute */
|
| 1272 |
+
{0x1edb, 0x1edb}, /* ohornacute */
|
| 1273 |
+
{0x1edc, 0x1edc}, /* Ohorngrave */
|
| 1274 |
+
{0x1edd, 0x1edd}, /* ohorngrave */
|
| 1275 |
+
{0x1ede, 0x1ede}, /* Ohornhook */
|
| 1276 |
+
{0x1edf, 0x1edf}, /* ohornhook */
|
| 1277 |
+
{0x1ee0, 0x1ee0}, /* Ohorntilde */
|
| 1278 |
+
{0x1ee1, 0x1ee1}, /* ohorntilde */
|
| 1279 |
+
{0x1ee2, 0x1ee2}, /* Ohornbelowdot */
|
| 1280 |
+
{0x1ee3, 0x1ee3}, /* ohornbelowdot */
|
| 1281 |
+
{0x1ee4, 0x1ee4}, /* Ubelowdot */
|
| 1282 |
+
{0x1ee5, 0x1ee5}, /* ubelowdot */
|
| 1283 |
+
{0x1ee6, 0x1ee6}, /* Uhook */
|
| 1284 |
+
{0x1ee7, 0x1ee7}, /* uhook */
|
| 1285 |
+
{0x1ee8, 0x1ee8}, /* Uhornacute */
|
| 1286 |
+
{0x1ee9, 0x1ee9}, /* uhornacute */
|
| 1287 |
+
{0x1eea, 0x1eea}, /* Uhorngrave */
|
| 1288 |
+
{0x1eeb, 0x1eeb}, /* uhorngrave */
|
| 1289 |
+
{0x1eec, 0x1eec}, /* Uhornhook */
|
| 1290 |
+
{0x1eed, 0x1eed}, /* uhornhook */
|
| 1291 |
+
{0x1eee, 0x1eee}, /* Uhorntilde */
|
| 1292 |
+
{0x1eef, 0x1eef}, /* uhorntilde */
|
| 1293 |
+
{0x1ef0, 0x1ef0}, /* Uhornbelowdot */
|
| 1294 |
+
{0x1ef1, 0x1ef1}, /* uhornbelowdot */
|
| 1295 |
+
{0x1ef4, 0x1ef4}, /* Ybelowdot */
|
| 1296 |
+
{0x1ef5, 0x1ef5}, /* ybelowdot */
|
| 1297 |
+
{0x1ef6, 0x1ef6}, /* Yhook */
|
| 1298 |
+
{0x1ef7, 0x1ef7}, /* yhook */
|
| 1299 |
+
{0x1ef8, 0x1ef8}, /* Ytilde */
|
| 1300 |
+
{0x1ef9, 0x1ef9}, /* ytilde */
|
| 1301 |
+
{0x1efa, 0x01a0}, /* Ohorn */
|
| 1302 |
+
{0x1efb, 0x01a1}, /* ohorn */
|
| 1303 |
+
{0x1efc, 0x01af}, /* Uhorn */
|
| 1304 |
+
{0x1efd, 0x01b0}, /* uhorn */
|
| 1305 |
+
{0, 0}
|
| 1306 |
+
};
|
| 1307 |
+
|
| 1308 |
+
#endif
|
llava_next/include/unctrl.h
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/****************************************************************************
|
| 2 |
+
* Copyright 2020 Thomas E. Dickey *
|
| 3 |
+
* Copyright 1998-2001,2009 Free Software Foundation, Inc. *
|
| 4 |
+
* *
|
| 5 |
+
* Permission is hereby granted, free of charge, to any person obtaining a *
|
| 6 |
+
* copy of this software and associated documentation files (the *
|
| 7 |
+
* "Software"), to deal in the Software without restriction, including *
|
| 8 |
+
* without limitation the rights to use, copy, modify, merge, publish, *
|
| 9 |
+
* distribute, distribute with modifications, sublicense, and/or sell *
|
| 10 |
+
* copies of the Software, and to permit persons to whom the Software is *
|
| 11 |
+
* furnished to do so, subject to the following conditions: *
|
| 12 |
+
* *
|
| 13 |
+
* The above copyright notice and this permission notice shall be included *
|
| 14 |
+
* in all copies or substantial portions of the Software. *
|
| 15 |
+
* *
|
| 16 |
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
|
| 17 |
+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
|
| 18 |
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
|
| 19 |
+
* IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
|
| 20 |
+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
|
| 21 |
+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
|
| 22 |
+
* THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
| 23 |
+
* *
|
| 24 |
+
* Except as contained in this notice, the name(s) of the above copyright *
|
| 25 |
+
* holders shall not be used in advertising or otherwise to promote the *
|
| 26 |
+
* sale, use or other dealings in this Software without prior written *
|
| 27 |
+
* authorization. *
|
| 28 |
+
****************************************************************************/
|
| 29 |
+
|
| 30 |
+
/****************************************************************************
|
| 31 |
+
* Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 *
|
| 32 |
+
* and: Eric S. Raymond <esr@snark.thyrsus.com> *
|
| 33 |
+
****************************************************************************/
|
| 34 |
+
|
| 35 |
+
/*
|
| 36 |
+
* unctrl.h
|
| 37 |
+
*
|
| 38 |
+
* Display a printable version of a control character.
|
| 39 |
+
* Control characters are displayed in caret notation (^x), DELETE is displayed
|
| 40 |
+
* as ^?. Printable characters are displayed as is.
|
| 41 |
+
*/
|
| 42 |
+
|
| 43 |
+
/* $Id: unctrl.h.in,v 1.12 2020/02/02 23:34:34 tom Exp $ */
|
| 44 |
+
|
| 45 |
+
#ifndef NCURSES_UNCTRL_H_incl
|
| 46 |
+
#define NCURSES_UNCTRL_H_incl 1
|
| 47 |
+
|
| 48 |
+
#undef NCURSES_VERSION
|
| 49 |
+
#define NCURSES_VERSION "6.4"
|
| 50 |
+
|
| 51 |
+
#ifdef __cplusplus
|
| 52 |
+
extern "C" {
|
| 53 |
+
#endif
|
| 54 |
+
|
| 55 |
+
#include <ncursesw/curses.h>
|
| 56 |
+
|
| 57 |
+
#undef unctrl
|
| 58 |
+
NCURSES_EXPORT(NCURSES_CONST char *) unctrl (chtype);
|
| 59 |
+
|
| 60 |
+
#if 1
|
| 61 |
+
NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This document details the changes between this version, readline-8.2, and
|
| 2 |
+
the previous version, readline-8.1.
|
| 3 |
+
|
| 4 |
+
1. Changes to Readline
|
| 5 |
+
|
| 6 |
+
a. Fixed a problem with cleaning up active marks when using callback mode.
|
| 7 |
+
|
| 8 |
+
b. Fixed a problem with arithmetic comparison operators checking the version.
|
| 9 |
+
|
| 10 |
+
c. Fixed a problem that could cause readline not to build on systems without
|
| 11 |
+
POSIX signal functions.
|
| 12 |
+
|
| 13 |
+
d. Fixed a bug that could cause readline to crash if the application removed
|
| 14 |
+
the callback line handler before readline read all typeahead.
|
| 15 |
+
|
| 16 |
+
e. Added additional checks for read errors in the middle of readline commands.
|
| 17 |
+
|
| 18 |
+
f. Fixed a redisplay problem that occurred when switching from the digit-
|
| 19 |
+
argument prompt `(arg: N)' back to the regular prompt and the regular
|
| 20 |
+
prompt contained invisible characters.
|
| 21 |
+
|
| 22 |
+
g. Fixed a problem with restoring the prompt when aborting an incremental
|
| 23 |
+
search.
|
| 24 |
+
|
| 25 |
+
h. Fix a problem with characters > 128 not being displayed correctly in certain
|
| 26 |
+
single-byte encodings.
|
| 27 |
+
|
| 28 |
+
i. Fixed a problem with unix-filename-rubout that caused it to delete too much
|
| 29 |
+
when applied to a pathname consisting only of one or more slashes.
|
| 30 |
+
|
| 31 |
+
j. Fixed a display problem that caused the prompt to be wrapped incorrectly if
|
| 32 |
+
the screen changed dimensions during a call to readline() and the prompt
|
| 33 |
+
became longer than the screen width.
|
| 34 |
+
|
| 35 |
+
k. Fixed a problem that caused the \r output by turning off bracketed paste
|
| 36 |
+
to overwrite the line if terminal echo was disabled.
|
| 37 |
+
|
| 38 |
+
l. Fixed a bug that could cause colored-completion-prefix to not display if
|
| 39 |
+
completion-prefix-display-length was set.
|
| 40 |
+
|
| 41 |
+
m. Fixed a problem with line wrapping prompts when a group of invisible
|
| 42 |
+
characters runs to the right edge of the screen and the prompt extends
|
| 43 |
+
longer then the screen width.
|
| 44 |
+
|
| 45 |
+
n. Fixed a couple problems that could cause rl_end to be set incorrectly by
|
| 46 |
+
transpose-words.
|
| 47 |
+
|
| 48 |
+
o. Prevent some display problems when running a command as the result of a
|
| 49 |
+
trap or one bound using `bind -x' and the command generates output.
|
| 50 |
+
|
| 51 |
+
p. Fixed an issue with multi-line prompt strings that have one or more
|
| 52 |
+
invisible characters at the end of a physical line.
|
| 53 |
+
|
| 54 |
+
q. Fixed an issue that caused a history line's undo list to be cleared when
|
| 55 |
+
it should not have been.
|
| 56 |
+
|
| 57 |
+
r. When replacing a history entry, make sure the existing entry has a non-NULL
|
| 58 |
+
timestamp before copying it; it may have been added by the application, not
|
| 59 |
+
the history library.
|
| 60 |
+
|
| 61 |
+
2. New Features in Readline
|
| 62 |
+
|
| 63 |
+
a. There is now an HS_HISTORY_VERSION containing the version number of the
|
| 64 |
+
history library for applications to use.
|
| 65 |
+
|
| 66 |
+
b. History expansion better understands multiple history expansions that may
|
| 67 |
+
contain strings that would ordinarily inhibit history expansion (e.g.,
|
| 68 |
+
`abc!$!$').
|
| 69 |
+
|
| 70 |
+
c. There is a new framework for readline timeouts, including new public
|
| 71 |
+
functions to set timeouts and query how much time is remaining before a
|
| 72 |
+
timeout hits, and a hook function that can trigger when readline times
|
| 73 |
+
out. There is a new state value to indicate a timeout.
|
| 74 |
+
|
| 75 |
+
d. Automatically bind termcap key sequences for page-up and page-down to
|
| 76 |
+
history-search-backward and history-search-forward, respectively.
|
| 77 |
+
|
| 78 |
+
e. There is a new `fetch-history' bindable command that retrieves the history
|
| 79 |
+
entry corresponding to its numeric argument. Negative arguments count back
|
| 80 |
+
from the end of the history.
|
| 81 |
+
|
| 82 |
+
f. `vi-undo' is now a bindable command.
|
| 83 |
+
|
| 84 |
+
g. There is a new option: `enable-active-region'. This separates control of
|
| 85 |
+
the active region and bracketed-paste. It has the same default value as
|
| 86 |
+
bracketed-paste, and enabling bracketed paste enables the active region.
|
| 87 |
+
Users can now turn off the active region while leaving bracketed paste
|
| 88 |
+
enabled.
|
| 89 |
+
|
| 90 |
+
h. rl_completer_word_break_characters is now `const char *' like
|
| 91 |
+
rl_basic_word_break_characters.
|
| 92 |
+
|
| 93 |
+
i. Readline looks in $LS_COLORS for a custom filename extension
|
| 94 |
+
(*.readline-colored-completion-prefix) and uses that as the default color
|
| 95 |
+
for the common prefix displayed when `colored-completion-prefix' is set.
|
| 96 |
+
|
| 97 |
+
j. Two new bindable string variables: active-region-start-color and
|
| 98 |
+
active-region-end-color. The first sets the color used to display the
|
| 99 |
+
active region; the second turns it off. If set, these are used in place
|
| 100 |
+
of terminal standout mode.
|
| 101 |
+
|
| 102 |
+
k. New readline state (RL_STATE_EOF) and application-visible variable
|
| 103 |
+
(rl_eof_found) to allow applications to detect when readline reads EOF
|
| 104 |
+
before calling the deprep-terminal hook.
|
| 105 |
+
|
| 106 |
+
l. There is a new configuration option: --with-shared-termcap-library, which
|
| 107 |
+
forces linking the shared readline library with the shared termcap (or
|
| 108 |
+
curses/ncurses/termlib) library so applications don't have to do it.
|
| 109 |
+
|
| 110 |
+
m. Readline now checks for changes to locale settings (LC_ALL/LC_CTYPE/LANG)
|
| 111 |
+
each time it is called, and modifies the appropriate locale-specific display
|
| 112 |
+
and key binding variables when the locale changes.
|
| 113 |
+
|
| 114 |
+
-------------------------------------------------------------------------------
|
| 115 |
+
This document details the changes between this version, readline-8.1, and
|
| 116 |
+
the previous version, readline-8.0.
|
| 117 |
+
|
| 118 |
+
1. Changes to Readline
|
| 119 |
+
|
| 120 |
+
a. There are a number of fixes that were found as the result of fuzzing with
|
| 121 |
+
random input.
|
| 122 |
+
|
| 123 |
+
b. Changed the revert-all-at-newline behavior to make sure to start at the end
|
| 124 |
+
of the history list when doing it, instead of the line where the user hit
|
| 125 |
+
return.
|
| 126 |
+
|
| 127 |
+
c. When parsing `set' commands from the inputrc file or an application, readline
|
| 128 |
+
now allows trailing whitespace.
|
| 129 |
+
|
| 130 |
+
d. Fixed a bug that left a file descriptor open to the history file if the
|
| 131 |
+
file size was 0.
|
| 132 |
+
|
| 133 |
+
e. Fixed a problem with binding key sequences containing meta characters.
|
| 134 |
+
|
| 135 |
+
f. Fixed a bug that caused the wrong line to be displayed if the user tried to
|
| 136 |
+
move back beyond the beginning of the history list, or forward past the end
|
| 137 |
+
of the history list.
|
| 138 |
+
|
| 139 |
+
g. If readline catches SIGTSTP, it now sets a hook that allows the calling
|
| 140 |
+
application to handle it if it desires.
|
| 141 |
+
|
| 142 |
+
h. Fixed a redisplay problem with a prompt string containing embedded newlines.
|
| 143 |
+
|
| 144 |
+
i. Fixed a problem with completing filenames containing invalid multibyte
|
| 145 |
+
sequences when case-insensitive comparisons are enabled.
|
| 146 |
+
|
| 147 |
+
j. Fixed a redisplay problem with prompt strings containing invisible multibyte
|
| 148 |
+
characters.
|
| 149 |
+
|
| 150 |
+
k. Fixed a problem with multibyte characters mapped to editing commands that
|
| 151 |
+
modify the search string in incremental search.
|
| 152 |
+
|
| 153 |
+
l. Fixed a bug with maintaining the key sequence while resolving a bound
|
| 154 |
+
command in the presence of ambiguous sequences (sequences with a common
|
| 155 |
+
prefix), in most cases while attempting to unbind it.
|
| 156 |
+
|
| 157 |
+
m. Fixed several buffer overflows found as the result of fuzzing.
|
| 158 |
+
|
| 159 |
+
n. Reworked backslash handling when translating key sequences for key binding
|
| 160 |
+
to be more uniform and consistent, which introduces a slight backwards
|
| 161 |
+
incompatibility.
|
| 162 |
+
|
| 163 |
+
o. Fixed a bug with saving the history that resulted in errors not being
|
| 164 |
+
propagated to the calling application when the history file is not writable.
|
| 165 |
+
|
| 166 |
+
p. Readline only calls chown(2) on a newly-written history file if it really
|
| 167 |
+
needs to, instead of having it be a no-op.
|
| 168 |
+
|
| 169 |
+
q. Readline now behaves better when operate-and-get-next is used when the
|
| 170 |
+
history list is `full': when there are already $HISTSIZE entries.
|
| 171 |
+
|
| 172 |
+
r. Fixed a bug that could cause vi redo (`.') of a replace command not to work
|
| 173 |
+
correctly in the C or POSIX locale.
|
| 174 |
+
|
| 175 |
+
s. Fixed a bug with vi-mode digit arguments that caused the last command to be
|
| 176 |
+
set incorrectly. This prevents yank-last-arg from working as intended, for
|
| 177 |
+
example.
|
| 178 |
+
|
| 179 |
+
t. Make sure that all undo groups are closed when leaving vi insertion mode.
|
| 180 |
+
|
| 181 |
+
u. Make sure that the vi-mode `C' and `c' commands enter insert mode even if
|
| 182 |
+
the motion command doesn't have any effect.
|
| 183 |
+
|
| 184 |
+
v. Fixed several potential memory leaks in the callback mode context handling.
|
| 185 |
+
|
| 186 |
+
w. If readline is handling a SIGTTOU, make sure SIGTTOU is blocked while
|
| 187 |
+
executing the terminal cleanup code, since it's no longer run in a signal
|
| 188 |
+
handling context.
|
| 189 |
+
|
| 190 |
+
x. Fixed a bug that could cause an application with an application-specific
|
| 191 |
+
redisplay function to crash if the line data structures had not been
|
| 192 |
+
initialized.
|
| 193 |
+
|
| 194 |
+
y. Terminals that are named "dumb" or unknown do not enable bracketed paste
|
| 195 |
+
by default.
|
| 196 |
+
|
| 197 |
+
z. Ensure that disabling bracketed paste turns off highlighting the incremental
|
| 198 |
+
search string when the search is successful.
|
| 199 |
+
|
| 200 |
+
2. New Features in Readline
|
| 201 |
+
|
| 202 |
+
a. If a second consecutive completion attempt produces matches where the first
|
| 203 |
+
did not, treat it as a new completion attempt and insert a match as
|
| 204 |
+
appropriate.
|
| 205 |
+
|
| 206 |
+
b. Bracketed paste mode works in more places: incremental search strings, vi
|
| 207 |
+
overstrike mode, character search, and reading numeric arguments.
|
| 208 |
+
|
| 209 |
+
c. Readline automatically switches to horizontal scrolling if the terminal has
|
| 210 |
+
only one line.
|
| 211 |
+
|
| 212 |
+
d. Unbinding all key sequences bound to a particular readline function now
|
| 213 |
+
descends into keymaps for multi-key sequences.
|
| 214 |
+
|
| 215 |
+
e. rl-clear-display: new bindable command that clears the screen and, if
|
| 216 |
+
possible, the scrollback buffer (bound to emacs mode M-C-l by default).
|
| 217 |
+
|
| 218 |
+
f. New active mark and face feature: when enabled, it will highlight the text
|
| 219 |
+
inserted by a bracketed paste (the `active region') and the text found by
|
| 220 |
+
incremental and non-incremental history searches. This is tied to bracketed
|
| 221 |
+
paste and can be disabled by turning off bracketed paste.
|
| 222 |
+
|
| 223 |
+
g. Readline sets the mark in several additional commands.
|
| 224 |
+
|
| 225 |
+
h. Bracketed paste mode is enabled by default. There is a configure-time
|
| 226 |
+
option (--enable-bracketed-paste-default) to set the default to on or off.
|
| 227 |
+
|
| 228 |
+
i. Readline tries to take advantage of the more regular structure of UTF-8
|
| 229 |
+
characters to identify the beginning and end of characters when moving
|
| 230 |
+
through the line buffer.
|
| 231 |
+
|
| 232 |
+
j. The bindable operate-and-get-next command (and its default bindings) are
|
| 233 |
+
now part of readline instead of a bash-specific addition.
|
| 234 |
+
|
| 235 |
+
k. The signal cleanup code now blocks SIGINT while processing after a SIGINT.
|
| 236 |
+
|
| 237 |
+
-------------------------------------------------------------------------------
|
| 238 |
+
This document details the changes between this version, readline-8.0, and the
|
| 239 |
+
previous version, readline-7.0.
|
| 240 |
+
|
| 241 |
+
1. Changes to Readline
|
| 242 |
+
|
| 243 |
+
a. Added a guard to prevent nested macros from causing an infinite expansion
|
| 244 |
+
loop.
|
| 245 |
+
|
| 246 |
+
b. Instead of allocating enough history list entries to hold the maximum list
|
| 247 |
+
size, cap the number allocated initially.
|
| 248 |
+
|
| 249 |
+
c. Added a strategy to avoid allocating huge amounts of memory if a block of
|
| 250 |
+
history entries without timestamps occurs after a block with timestamps.
|
| 251 |
+
|
| 252 |
+
d. Added support for keyboard timeouts when an ESC character is the last
|
| 253 |
+
character in a macro.
|
| 254 |
+
|
| 255 |
+
e. There are several performance improvements when in a UTF-8 locale.
|
| 256 |
+
|
| 257 |
+
f. Readline does a better job of preserving the original set of blocked
|
| 258 |
+
signals when using pselect() to wait for input.
|
| 259 |
+
|
| 260 |
+
g. Fixed a bug that caused multibyte characters in macros to be mishandled.
|
| 261 |
+
|
| 262 |
+
h. Fixed several bugs in the code that calculates line breaks when expanding
|
| 263 |
+
prompts that span several lines, contain multibyte characters, and contain
|
| 264 |
+
invisible character seqeuences.
|
| 265 |
+
|
| 266 |
+
i. Fixed several bugs in cursor positioning when displaying lines with prompts
|
| 267 |
+
containing invisible characters and multibyte characters.
|
| 268 |
+
|
| 269 |
+
j. When performing case-insensitive completion, Readline no longer sorts the
|
| 270 |
+
list of matches unless directed to do so.
|
| 271 |
+
|
| 272 |
+
k. Fixed a problem with key sequences ending with a backslash.
|
| 273 |
+
|
| 274 |
+
l. Fixed out-of-bounds and free memory read errors found via fuzzing.
|
| 275 |
+
|
| 276 |
+
m. Fixed several cases where the mark was set to an invalid value.
|
| 277 |
+
|
| 278 |
+
n. Fixed a problem with the case-changing operators in the case where the
|
| 279 |
+
lower and upper case versions of a character do not have the same number
|
| 280 |
+
of bytes.
|
| 281 |
+
|
| 282 |
+
o. Handle incremental and non-incremental search character reads returning EOF.
|
| 283 |
+
|
| 284 |
+
p. Handle the case where a failing readline command at the end of a multi-key
|
| 285 |
+
sequence could be misinterpreted.
|
| 286 |
+
|
| 287 |
+
q. The history library now prints a meaningful error message if the history
|
| 288 |
+
file isn't a regular file.
|
| 289 |
+
|
| 290 |
+
r. Fixed a problem with vi-mode redo (`.') on a command when trying to replace
|
| 291 |
+
a multibyte character.
|
| 292 |
+
|
| 293 |
+
s. The key binding code now attempts to remove a keymap if a key unbinding
|
| 294 |
+
leaves it empty.
|
| 295 |
+
|
| 296 |
+
t. Fixed a line-wrapping issue that caused problems for some terminal
|
| 297 |
+
emulators.
|
| 298 |
+
|
| 299 |
+
u. If there is a key bound to the tty's VDISCARD special character, readline
|
| 300 |
+
disables VDISCARD while it is active.
|
| 301 |
+
|
| 302 |
+
v. Fixed a problem with exiting bracketed paste mode on terminals that assume
|
| 303 |
+
the bracketed paste mode character sequence contains visible characters.
|
| 304 |
+
|
| 305 |
+
w. Fixed a bug that could cause a key binding command to refer to an
|
| 306 |
+
uninitialized variable.
|
| 307 |
+
|
| 308 |
+
x. Added more UTF-8-specific versions of multibyte functions, and optimized
|
| 309 |
+
existing functions if the current locale uses UTF-8 encoding.
|
| 310 |
+
|
| 311 |
+
y. Fixed a problem with bracketed-paste inserting more than one character and
|
| 312 |
+
interacting with other readline functions.
|
| 313 |
+
|
| 314 |
+
z. Fixed a bug that caused the history library to attempt to append a history
|
| 315 |
+
line to a non-existent history entry.
|
| 316 |
+
|
| 317 |
+
aa. If using bracketed paste mode, output a newline after the \r that is the
|
| 318 |
+
last character of the mode disable string to avoid overwriting output.
|
| 319 |
+
|
| 320 |
+
bb. Fixes to the vi-mode `b', `B', `w', `W', `e', and `E' commands to better
|
| 321 |
+
handle multibyte characters.
|
| 322 |
+
|
| 323 |
+
cc. Fixed a redisplay problem that caused an extra newline to be generated on
|
| 324 |
+
accept-line when the line length is exactly the screenwidth.
|
| 325 |
+
|
| 326 |
+
dd. Fixed a bug with adding multibyte characters to an incremental search
|
| 327 |
+
string.
|
| 328 |
+
|
| 329 |
+
ee. Fixed a bug with redoing text insertions in vi mode.
|
| 330 |
+
|
| 331 |
+
ff. Fixed a bug with pasting text into an incremental search string if bracketed
|
| 332 |
+
paste mode is enabled. ESC cannot be one of the incremental search
|
| 333 |
+
terminator characters for this to work.
|
| 334 |
+
|
| 335 |
+
gg. Fixed a bug with anchored search patterns when performing searches in vi
|
| 336 |
+
mode.
|
| 337 |
+
|
| 338 |
+
2. New Features in Readline
|
| 339 |
+
|
| 340 |
+
a. Non-incremental vi-mode search (`N', `n') can search for a shell pattern, as
|
| 341 |
+
Posix specifies (uses fnmatch(3) if available).
|
| 342 |
+
|
| 343 |
+
b. There are new `next-screen-line' and `previous-screen-line' bindable
|
| 344 |
+
commands, which move the cursor to the same column in the next, or previous,
|
| 345 |
+
physical line, respectively.
|
| 346 |
+
|
| 347 |
+
c. There are default key bindings for control-arrow-key key combinations.
|
| 348 |
+
|
| 349 |
+
d. A negative argument (-N) to `quoted-insert' means to insert the next N
|
| 350 |
+
characters using quoted-insert.
|
| 351 |
+
|
| 352 |
+
e. New public function: rl_check_signals(), which allows applications to
|
| 353 |
+
respond to signals that readline catches while waiting for input using
|
| 354 |
+
a custom read function.
|
| 355 |
+
|
| 356 |
+
f. There is new support for conditionally testing the readline version in an
|
| 357 |
+
inputrc file, with a full set of arithmetic comparison operators available.
|
| 358 |
+
|
| 359 |
+
g. There is a simple variable comparison facility available for use within an
|
| 360 |
+
inputrc file. Allowable operators are equality and inequality; string
|
| 361 |
+
variables may be compared to a value; boolean variables must be compared to
|
| 362 |
+
either `on' or `off'; variable names are separated from the operator by
|
| 363 |
+
whitespace.
|
| 364 |
+
|
| 365 |
+
h. The history expansion library now understands command and process
|
| 366 |
+
substitution and extended globbing and allows them to appear anywhere in a
|
| 367 |
+
word.
|
| 368 |
+
|
| 369 |
+
i. The history library has a new variable that allows applications to set the
|
| 370 |
+
initial quoting state, so quoting state can be inherited from a previous
|
| 371 |
+
line.
|
| 372 |
+
|
| 373 |
+
j. Readline now allows application-defined keymap names; there is a new public
|
| 374 |
+
function, rl_set_keymap_name(), to do that.
|
| 375 |
+
|
| 376 |
+
k. The "Insert" keypad key, if available, now puts readline into overwrite
|
| 377 |
+
mode.
|
| 378 |
+
|
| 379 |
+
-------------------------------------------------------------------------------
|
| 380 |
+
This document details the changes between this version, readline-7.0, and the
|
| 381 |
+
previous version, readline-6.3.
|
| 382 |
+
|
| 383 |
+
1. Changes to Readline
|
| 384 |
+
|
| 385 |
+
a. A bug that caused vi-mode `.' to be unable to redo `c', `d', and `y'
|
| 386 |
+
commands with modifiers was fixed.
|
| 387 |
+
|
| 388 |
+
b. Fixed a bug that caused callback mode to dump core when reading a
|
| 389 |
+
multiple-key sequence (e.g., arrow keys).
|
| 390 |
+
|
| 391 |
+
c. Fixed a bug that caused the redisplay code to erase some of the line when
|
| 392 |
+
using horizontal scrolling with incremental search.
|
| 393 |
+
|
| 394 |
+
d. Readline's input handler now performs signal processing if read(2) is
|
| 395 |
+
interrupted by SIGALRM or SIGVTALRM.
|
| 396 |
+
|
| 397 |
+
e. Fixed a problem with revert-all-at-newline freeing freed memory.
|
| 398 |
+
|
| 399 |
+
f. Clarified the documentation for the history_quotes_inhibit_expansion
|
| 400 |
+
variable to note that it inhibits scanning for the history comment
|
| 401 |
+
character and that it only affects double-quoted strings.
|
| 402 |
+
|
| 403 |
+
g. Fixed an off-by-one error in the prompt printed when performing searches.
|
| 404 |
+
|
| 405 |
+
h. Use pselect(2), if available, to wait for input before calling read(2), so
|
| 406 |
+
a SIGWINCH can interrupt it, since it doesn't interrupt read(2).
|
| 407 |
+
|
| 408 |
+
i. Some memory leaks caused by signals interrupting filename completion have
|
| 409 |
+
been fixed.
|
| 410 |
+
|
| 411 |
+
j. Reading EOF twice on a non-empty line causes EOF to be returned, rather
|
| 412 |
+
than the partial line. This can cause partial lines to be executed on
|
| 413 |
+
SIGHUP, for example.
|
| 414 |
+
|
| 415 |
+
k. Fixed a bug concerning deleting multibyte characters from the search
|
| 416 |
+
string while performing an incremental search.
|
| 417 |
+
|
| 418 |
+
l. Fixed a bug with tilde expanding directory names in filename completion.
|
| 419 |
+
|
| 420 |
+
m. Fixed a bug that did not allow binding sequences beginning with a `\'.
|
| 421 |
+
|
| 422 |
+
n. Fixed a redisplay bug involving incorrect line wrapping when the prompt
|
| 423 |
+
contains a multibyte character in the last screen column.
|
| 424 |
+
|
| 425 |
+
o. Fixed a bug that caused history expansion to disregard characters that are
|
| 426 |
+
documented to delimit a history event specifier without requiring `:'.
|
| 427 |
+
|
| 428 |
+
p. Fixed a bug that could cause reading past the end of a string when reading
|
| 429 |
+
the value when binding the set of isearch terminators.
|
| 430 |
+
|
| 431 |
+
q. Fixed a bug that caused readline commands that depend on knowing which
|
| 432 |
+
key invoked them to misbehave when dispatching key sequences that are
|
| 433 |
+
prefixes of other key bindings.
|
| 434 |
+
|
| 435 |
+
r. Paren matching now works in vi insert mode.
|
| 436 |
+
|
| 437 |
+
s. Colored completion prefixes are now displayed using a different color, less
|
| 438 |
+
likely to collide with files.
|
| 439 |
+
|
| 440 |
+
t. Fixed a bug that caused vi-mode character search to misbehave when
|
| 441 |
+
running in callback mode.
|
| 442 |
+
|
| 443 |
+
u. Fixed a bug that caused output to be delayed when input is coming from a
|
| 444 |
+
macro in vi-mode.
|
| 445 |
+
|
| 446 |
+
v. Fixed a bug that caused the vi-mode `.' command to misbehave when redoing
|
| 447 |
+
a multi-key key sequence via a macro.
|
| 448 |
+
|
| 449 |
+
w. Fixed a bug that caused problems with applications that supply their own
|
| 450 |
+
input function when performing completion.
|
| 451 |
+
|
| 452 |
+
x. When read returns -1/EIO when attempting to read a key, return an error
|
| 453 |
+
instead of line termination back to the caller.
|
| 454 |
+
|
| 455 |
+
y. Updated tty auditing feature based on patch from Red Hat.
|
| 456 |
+
|
| 457 |
+
z. Fixed a bug that could cause the history library to crash on overflows
|
| 458 |
+
introduced by malicious editing of timestamps in the history file.
|
| 459 |
+
|
| 460 |
+
aa. The history file writing functions only attempt to create and use a backup
|
| 461 |
+
history file if the history file exists and is a regular file.
|
| 462 |
+
|
| 463 |
+
bb. Fixed an out-of-bounds read in readline's internal tilde expansion interface.
|
| 464 |
+
|
| 465 |
+
cc. Fixed several redisplay bugs with prompt strings containing multibyte
|
| 466 |
+
and non-visible characters whose physical length is longer than the screen
|
| 467 |
+
width.
|
| 468 |
+
|
| 469 |
+
dd. Fixed a redisplay bug with prompt strings containing invisible characters
|
| 470 |
+
whose physical length exceeds the screen width and using incremental search.
|
| 471 |
+
|
| 472 |
+
ee. Readline prints more descriptive error messages when it encounters errors
|
| 473 |
+
while reading an inputrc file.
|
| 474 |
+
|
| 475 |
+
ff. Fixed a bug in the character insertion code that attempts to optimize
|
| 476 |
+
typeahead when it reads a character that is not bound to self-insert and
|
| 477 |
+
resets the key sequence state.
|
| 478 |
+
|
| 479 |
+
gg. When refreshing the line as the result of a key sequence, Readline attempts
|
| 480 |
+
to redraw only the last line of a multiline prompt.
|
| 481 |
+
|
| 482 |
+
hh. Fixed an issue that caused completion of git commands to display
|
| 483 |
+
incorrectly when using colored-completion-prefix.
|
| 484 |
+
|
| 485 |
+
ii. Fixed several redisplay bugs having to do with multibyte characters and
|
| 486 |
+
invisible characters in prompt strings.
|
| 487 |
+
|
| 488 |
+
jj. Fixed a bug that caused mode strings to be displayed incorrectly if the
|
| 489 |
+
prompt was shorter than the mode string.
|
| 490 |
+
|
| 491 |
+
2. New Features in Readline
|
| 492 |
+
|
| 493 |
+
a. The history truncation code now uses the same error recovery mechanism as
|
| 494 |
+
the history writing code, and restores the old version of the history file
|
| 495 |
+
on error. The error recovery mechanism handles symlinked history files.
|
| 496 |
+
|
| 497 |
+
b. There is a new bindable variable, `enable-bracketed-paste', which enables
|
| 498 |
+
support for a terminal's bracketed paste mode.
|
| 499 |
+
|
| 500 |
+
c. The editing mode indicators can now be strings and are user-settable
|
| 501 |
+
(new `emacs-mode-string', `vi-cmd-mode-string' and `vi-ins-mode-string'
|
| 502 |
+
variables). Mode strings can contain invisible character sequences.
|
| 503 |
+
Setting mode strings to null strings restores the defaults.
|
| 504 |
+
|
| 505 |
+
d. Prompt expansion adds the mode string to the last line of a multi-line
|
| 506 |
+
prompt (one with embedded newlines).
|
| 507 |
+
|
| 508 |
+
e. There is a new bindable variable, `colored-completion-prefix', which, if
|
| 509 |
+
set, causes the common prefix of a set of possible completions to be
|
| 510 |
+
displayed in color.
|
| 511 |
+
|
| 512 |
+
f. There is a new bindable command `vi-yank-pop', a vi-mode version of emacs-
|
| 513 |
+
mode yank-pop.
|
| 514 |
+
|
| 515 |
+
g. The redisplay code underwent several efficiency improvements for multibyte
|
| 516 |
+
locales.
|
| 517 |
+
|
| 518 |
+
h. The insert-char function attempts to batch-insert all pending typeahead
|
| 519 |
+
that maps to self-insert, as long as it is coming from the terminal.
|
| 520 |
+
|
| 521 |
+
i. rl_callback_sigcleanup: a new application function that can clean up and
|
| 522 |
+
unset any state set by readline's callback mode. Intended to be used
|
| 523 |
+
after a signal.
|
| 524 |
+
|
| 525 |
+
j. If an incremental search string has its last character removed with DEL, the
|
| 526 |
+
resulting empty search string no longer matches the previous line.
|
| 527 |
+
|
| 528 |
+
k. If readline reads a history file that begins with `#' (or the value of
|
| 529 |
+
the history comment character) and has enabled history timestamps, the history
|
| 530 |
+
entries are assumed to be delimited by timestamps. This allows multi-line
|
| 531 |
+
history entries.
|
| 532 |
+
|
| 533 |
+
l. Readline now throws an error if it parses a key binding without a terminating
|
| 534 |
+
`:' or whitespace.
|
| 535 |
+
|
| 536 |
+
m. The default binding for ^W in vi mode now uses word boundaries specified
|
| 537 |
+
by Posix (vi-unix-word-rubout is bindable command name).
|
| 538 |
+
|
| 539 |
+
n. rl_clear_visible_line: new application-callable function; clears all
|
| 540 |
+
screen lines occupied by the current visible readline line.
|
| 541 |
+
|
| 542 |
+
o. rl_tty_set_echoing: application-callable function that controls whether
|
| 543 |
+
or not readline thinks it is echoing terminal output.
|
| 544 |
+
|
| 545 |
+
p. Handle >| and strings of digits preceding and following redirection
|
| 546 |
+
specifications as single tokens when tokenizing the line for history
|
| 547 |
+
expansion.
|
| 548 |
+
|
| 549 |
+
q. Fixed a bug with displaying completions when the prefix display length
|
| 550 |
+
is greater than the length of the completions to be displayed.
|
| 551 |
+
|
| 552 |
+
r. The :p history modifier now applies to the entire line, so any expansion
|
| 553 |
+
specifying :p causes the line to be printed instead of expanded.
|
| 554 |
+
|
| 555 |
+
s. New application-callable function: rl_pending_signal(): returns the signal
|
| 556 |
+
number of any signal readline has caught but not yet handled.
|
| 557 |
+
|
| 558 |
+
t. New application-settable variable: rl_persistent_signal_handlers: if set
|
| 559 |
+
to a non-zero value, readline will enable the readline-6.2 signal handler
|
| 560 |
+
behavior in callback mode: handlers are installed when
|
| 561 |
+
rl_callback_handler_install is called and removed removed when a complete
|
| 562 |
+
line has been read.
|
| 563 |
+
|
| 564 |
+
-------------------------------------------------------------------------------
|
| 565 |
+
This document details the changes between this version, readline-6.3, and the
|
| 566 |
+
previous version, readline-6.2.
|
| 567 |
+
|
| 568 |
+
1. Changes to Readline
|
| 569 |
+
|
| 570 |
+
a. Fixed a bug that did not allow the `dd', `cc', or `yy' vi editing mode
|
| 571 |
+
commands to work on the entire line.
|
| 572 |
+
|
| 573 |
+
b. Fixed a bug that caused redisplay problems with prompts longer than 128
|
| 574 |
+
characters and history searches.
|
| 575 |
+
|
| 576 |
+
c. Fixed a bug that caused readline to try and run code to modify its idea
|
| 577 |
+
of the screen size in a signal handler context upon receiving a SIGWINCH.
|
| 578 |
+
|
| 579 |
+
d. Fixed a bug that caused the `meta' key to be enabled beyond the duration
|
| 580 |
+
of an individual call top readline().
|
| 581 |
+
|
| 582 |
+
e. Added a workaround for a wcwidth bug in Mac OS X that caused readline's
|
| 583 |
+
redisplay to mishandle zero-width combining characters.
|
| 584 |
+
|
| 585 |
+
f. Fixed a bug that caused readline to `forget' part of a key sequence when
|
| 586 |
+
a multiple-key sequence caused it to break out of an incremental search.
|
| 587 |
+
|
| 588 |
+
g. Fixed bugs that caused readline to execute code in a signal handler
|
| 589 |
+
context if interrupted while reading from the file system during completion.
|
| 590 |
+
|
| 591 |
+
h. Fixed a bug that caused readline to `forget' part of a key sequence when
|
| 592 |
+
reading an unbound multi-character key sequence.
|
| 593 |
+
|
| 594 |
+
i. Fixed a bug that caused Readline's signal handlers to be installed beyond
|
| 595 |
+
the bounds of a single call to readline().
|
| 596 |
+
|
| 597 |
+
j. Fixed a bug that caused the `.' command to not redo the most recent `R'
|
| 598 |
+
command in vi mode.
|
| 599 |
+
|
| 600 |
+
k. Fixed a bug that caused ignoring case in completion matches to result in
|
| 601 |
+
readline using the wrong match.
|
| 602 |
+
|
| 603 |
+
l. Paren matching now works in vi insert mode.
|
| 604 |
+
|
| 605 |
+
m. Fix menu-completion to make show-all-if-ambiguous and menu-complete-display-prefix
|
| 606 |
+
work together.
|
| 607 |
+
|
| 608 |
+
n. Fixed a bug that didn't allow the `cc', `dd', or `yy' commands to be redone
|
| 609 |
+
in vi editing mode.
|
| 610 |
+
|
| 611 |
+
o. Fixed a bug that caused the filename comparison code to not compare
|
| 612 |
+
multibyte characters correctly when using case-sensitive or case-mapping
|
| 613 |
+
comparisons.
|
| 614 |
+
|
| 615 |
+
p. Fixed the input reading loop to call the input hook function only when there
|
| 616 |
+
is no terminal input available.
|
| 617 |
+
|
| 618 |
+
q. Fixed a bug that caused binding a macro to a multi-character key sequence
|
| 619 |
+
where the sequence and macro value share a common prefix to not perform
|
| 620 |
+
the macro replacement.
|
| 621 |
+
|
| 622 |
+
r. Fixed several redisplay errors with multibyte characters and prompts
|
| 623 |
+
containing invisible characters when using horizontal scrolling.
|
| 624 |
+
|
| 625 |
+
s. Fixed a bug that caused redisplay errors when trying to overwrite
|
| 626 |
+
existing characters using multibyte characters.
|
| 627 |
+
|
| 628 |
+
t. Fixed a bug in vi mode that caused the arrow keys to set the saved last
|
| 629 |
+
vi-mode command to the wrong value.
|
| 630 |
+
|
| 631 |
+
u. Fixed a bug that caused double-quoted strings to be scanned incorrectly
|
| 632 |
+
when being used as the value of a readline variable assignment.
|
| 633 |
+
|
| 634 |
+
v. Fixed a bug with vi mode that prevented `.' from repeating a command
|
| 635 |
+
entered on a previous line (command).
|
| 636 |
+
|
| 637 |
+
w. Fixed a bug that could cause completion to core dump if it was interrupted
|
| 638 |
+
by a signal.
|
| 639 |
+
|
| 640 |
+
x. Fixed a bug that could cause readline to crash and seg fault attempting to
|
| 641 |
+
expand an empty history entry.
|
| 642 |
+
|
| 643 |
+
y. Fixed a bug that caused display problems with multi-line prompts containing
|
| 644 |
+
invisible characters on multiple lines.
|
| 645 |
+
|
| 646 |
+
z. Fixed a bug that caused effects made by undoing changes to a history line to
|
| 647 |
+
be discarded.
|
| 648 |
+
|
| 649 |
+
2. New Features in Readline
|
| 650 |
+
|
| 651 |
+
a. Readline is now more responsive to SIGHUP and other fatal signals when
|
| 652 |
+
reading input from the terminal or performing word completion but no
|
| 653 |
+
longer attempts to run any not-allowable functions from a signal handler
|
| 654 |
+
context.
|
| 655 |
+
|
| 656 |
+
b. There are new bindable commands to search the history for the string of
|
| 657 |
+
characters between the beginning of the line and the point
|
| 658 |
+
(history-substring-search-forward, history-substring-search-backward)
|
| 659 |
+
|
| 660 |
+
c. Readline allows quoted strings as the values of variables when setting
|
| 661 |
+
them with `set'. As a side effect, trailing spaces and tabs are ignored
|
| 662 |
+
when setting a string variable's value.
|
| 663 |
+
|
| 664 |
+
d. The history library creates a backup of the history file when writing it
|
| 665 |
+
and restores the backup on a write error.
|
| 666 |
+
|
| 667 |
+
e. New application-settable variable: rl_filename_stat_hook: a function called
|
| 668 |
+
with a filename before using it in a call to stat(2). Bash uses it to
|
| 669 |
+
expand shell variables so things like $HOME/Downloads have a slash
|
| 670 |
+
appended.
|
| 671 |
+
|
| 672 |
+
f. New bindable function `print-last-kbd-macro', prints the most-recently-
|
| 673 |
+
defined keyboard macro in a reusable format.
|
| 674 |
+
|
| 675 |
+
g. New user-settable variable `colored-stats', enables use of colored text
|
| 676 |
+
to denote file types when displaying possible completions (colored analog
|
| 677 |
+
of visible-stats).
|
| 678 |
+
|
| 679 |
+
h. New user-settable variable `keyseq-timout', acts as an inter-character
|
| 680 |
+
timeout when reading input or incremental search strings.
|
| 681 |
+
|
| 682 |
+
i. New application-callable function: rl_clear_history. Clears the history list
|
| 683 |
+
and frees all readline-associated private data.
|
| 684 |
+
|
| 685 |
+
j. New user-settable variable, show-mode-in-prompt, adds a characters to the
|
| 686 |
+
beginning of the prompt indicating the current editing mode.
|
| 687 |
+
|
| 688 |
+
k. New application-settable variable: rl_input_available_hook; function to be
|
| 689 |
+
called when readline needs to check whether there is data available on its
|
| 690 |
+
input source. The default hook checks rl_instream.
|
| 691 |
+
|
| 692 |
+
l. Readline calls an application-set event hook (rl_signal_event_hook) after
|
| 693 |
+
it gets a signal while reading input (read returns -1/EINTR but readline
|
| 694 |
+
does not handle the signal immediately) to allow the application to handle
|
| 695 |
+
or otherwise note it. Not currently called for SIGHUP or SIGTERM.
|
| 696 |
+
|
| 697 |
+
m. If the user-settable variable `history-size' is set to a value less than
|
| 698 |
+
0, the history list size is unlimited.
|
| 699 |
+
|
| 700 |
+
n. When creating shared libraries on Mac OS X, the pathname written into the
|
| 701 |
+
library (install_name) no longer includes the minor version number.
|
| 702 |
+
|
| 703 |
+
-------------------------------------------------------------------------------
|
| 704 |
+
This document details the changes between this version, readline-6.2,
|
| 705 |
+
and the previous version, readline-6.1.
|
| 706 |
+
|
| 707 |
+
1. Changes to Readline
|
| 708 |
+
|
| 709 |
+
a. Fixed a bug that caused the unconverted filename to be added to the list of
|
| 710 |
+
completions when the application specified filename conversion functions.
|
| 711 |
+
|
| 712 |
+
b. Fixed a bug that caused the wrong filename to be passed to opendir when the
|
| 713 |
+
application has specified a filename dequoting function.
|
| 714 |
+
|
| 715 |
+
c. Fixed a bug when repeating a character search in vi mode in the case where
|
| 716 |
+
there was no search to repeat.
|
| 717 |
+
|
| 718 |
+
d. When show-all-if-ambiguous is set, the completion routines no longer insert
|
| 719 |
+
a common match prefix that is shorter than the text being completed.
|
| 720 |
+
|
| 721 |
+
e. The full set of vi editing commands may now be used in callback mode.
|
| 722 |
+
|
| 723 |
+
f. Fixed a bug that caused readline to not update its idea of the terminal
|
| 724 |
+
dimensions while running in `no-echo' mode.
|
| 725 |
+
|
| 726 |
+
h. Fixed a bug that caused readline to dump core if an application called
|
| 727 |
+
rl_prep_terminal without setting rl_instream.
|
| 728 |
+
|
| 729 |
+
i. Fixed a bug that caused meta-prefixed characters bound to incremental
|
| 730 |
+
search forward or backward to not be recognized if they were typed
|
| 731 |
+
subsequently.
|
| 732 |
+
|
| 733 |
+
j. The incremental search code treats key sequences that map to the same
|
| 734 |
+
functions as (default) ^G, ^W, and ^Y as equivalent to those characters.
|
| 735 |
+
|
| 736 |
+
k. Fixed a bug in menu-complete that caused it to misbehave with large
|
| 737 |
+
negative argument.
|
| 738 |
+
|
| 739 |
+
l. Fixed a bug that caused vi-mode yank-last-arg to ring the bell when invoked
|
| 740 |
+
at the end of the line.
|
| 741 |
+
|
| 742 |
+
m. Fixed a bug that made an explicit argument of 0 to yank-last-arg behave
|
| 743 |
+
as if it were a negative argument.
|
| 744 |
+
|
| 745 |
+
n. Fixed a bug that caused directory names in words to be completed to not
|
| 746 |
+
be dequoted correctly.
|
| 747 |
+
|
| 748 |
+
2. New Features in Readline
|
| 749 |
+
|
| 750 |
+
a. The history library does not try to write the history filename in the
|
| 751 |
+
current directory if $HOME is unset. This closes a potential security
|
| 752 |
+
problem if the application does not specify a history filename.
|
| 753 |
+
|
| 754 |
+
b. New bindable variable `completion-display-width' to set the number of
|
| 755 |
+
columns used when displaying completions.
|
| 756 |
+
|
| 757 |
+
c. New bindable variable `completion-case-map' to cause case-insensitive
|
| 758 |
+
completion to treat `-' and `_' as identical.
|
| 759 |
+
|
| 760 |
+
d. There are new bindable vi-mode command names to avoid readline's case-
|
| 761 |
+
insensitive matching not allowing them to be bound separately.
|
| 762 |
+
|
| 763 |
+
e. New bindable variable `menu-complete-display-prefix' causes the menu
|
| 764 |
+
completion code to display the common prefix of the possible completions
|
| 765 |
+
before cycling through the list, instead of after.
|
| 766 |
+
|
| 767 |
+
-------------------------------------------------------------------------------
|
| 768 |
+
This document details the changes between this version, readline-6.1,
|
| 769 |
+
and the previous version, readline-6.0.
|
| 770 |
+
|
| 771 |
+
1. Changes to Readline
|
| 772 |
+
|
| 773 |
+
a. The SIGWINCH signal handler now avoids calling the redisplay code if
|
| 774 |
+
one arrives while in the middle of redisplay.
|
| 775 |
+
|
| 776 |
+
b. Changes to the timeout code to make sure that timeout values greater
|
| 777 |
+
than one second are handled better.
|
| 778 |
+
|
| 779 |
+
c. Fixed a bug in the redisplay code that was triggered by a prompt
|
| 780 |
+
containing invisible characters exactly the width of the screen.
|
| 781 |
+
|
| 782 |
+
d. Fixed a bug in the redisplay code encountered when running in horizontal
|
| 783 |
+
scroll mode.
|
| 784 |
+
|
| 785 |
+
e. Fixed a bug that prevented menu completion from properly completing
|
| 786 |
+
filenames.
|
| 787 |
+
|
| 788 |
+
f. Fixed a redisplay bug caused by a multibyte character causing a line to
|
| 789 |
+
wrap.
|
| 790 |
+
|
| 791 |
+
g. Fixed a bug that caused key sequences of two characters to not be
|
| 792 |
+
recognized when a longer sequence identical in the first two characters
|
| 793 |
+
was bound.
|
| 794 |
+
|
| 795 |
+
h. Fixed a bug that caused history expansion to be attempted on $'...'
|
| 796 |
+
single-quoted strings.
|
| 797 |
+
|
| 798 |
+
i. Fixed a bug that caused incorrect redisplay when the prompt contained
|
| 799 |
+
multibyte characters in an `invisible' sequence bracketed by \[ and
|
| 800 |
+
\].
|
| 801 |
+
|
| 802 |
+
j. Fixed a bug that caused history expansion to short-circuit after
|
| 803 |
+
encountering a multibyte character.
|
| 804 |
+
|
| 805 |
+
k. Fixed a bug that caused applications using the callback interface to not
|
| 806 |
+
react to SIGINT (or other signals) until another character arrived.
|
| 807 |
+
|
| 808 |
+
2. New Features in Readline
|
| 809 |
+
|
| 810 |
+
a. New bindable function: menu-complete-backward.
|
| 811 |
+
|
| 812 |
+
b. In the vi insertion keymap, C-n is now bound to menu-complete by default,
|
| 813 |
+
and C-p to menu-complete-backward.
|
| 814 |
+
|
| 815 |
+
c. When in vi command mode, repeatedly hitting ESC now does nothing, even
|
| 816 |
+
when ESC introduces a bound key sequence. This is closer to how
|
| 817 |
+
historical vi behaves.
|
| 818 |
+
|
| 819 |
+
d. New bindable function: skip-csi-sequence. Can be used as a default to
|
| 820 |
+
consume key sequences generated by keys like Home and End without having
|
| 821 |
+
to bind all keys.
|
| 822 |
+
|
| 823 |
+
e. New application-settable function: rl_filename_rewrite_hook. Can be used
|
| 824 |
+
to rewrite or modify filenames read from the file system before they are
|
| 825 |
+
compared to the word to be completed.
|
| 826 |
+
|
| 827 |
+
f. New bindable variable: skip-completed-text, active when completing in the
|
| 828 |
+
middle of a word. If enabled, it means that characters in the completion
|
| 829 |
+
that match characters in the remainder of the word are "skipped" rather
|
| 830 |
+
than inserted into the line.
|
| 831 |
+
|
| 832 |
+
g. The pre-readline-6.0 version of menu completion is available as
|
| 833 |
+
"old-menu-complete" for users who do not like the readline-6.0 version.
|
| 834 |
+
|
| 835 |
+
h. New bindable variable: echo-control-characters. If enabled, and the
|
| 836 |
+
tty ECHOCTL bit is set, controls the echoing of characters corresponding
|
| 837 |
+
to keyboard-generated signals.
|
| 838 |
+
|
| 839 |
+
i. New bindable variable: enable-meta-key. Controls whether or not readline
|
| 840 |
+
sends the smm/rmm sequences if the terminal indicates it has a meta key
|
| 841 |
+
that enables eight-bit characters.
|
| 842 |
+
|
| 843 |
+
-------------------------------------------------------------------------------
|
| 844 |
+
This document details the changes between this version, readline-6.0,
|
| 845 |
+
and the previous version, readline-5.2.
|
| 846 |
+
|
| 847 |
+
1. Changes to Readline
|
| 848 |
+
|
| 849 |
+
a. Fixed a number of redisplay errors in environments supporting multibyte
|
| 850 |
+
characters.
|
| 851 |
+
|
| 852 |
+
b. Fixed bugs in vi command mode that caused motion commands to inappropriately
|
| 853 |
+
set the mark.
|
| 854 |
+
|
| 855 |
+
c. When using the arrow keys in vi insertion mode, readline allows movement
|
| 856 |
+
beyond the current end of the line (unlike command mode).
|
| 857 |
+
|
| 858 |
+
d. Fixed bugs that caused readline to loop when the terminal has been taken
|
| 859 |
+
away and reads return -1/EIO.
|
| 860 |
+
|
| 861 |
+
e. Fixed bugs in redisplay occurring when displaying prompts containing
|
| 862 |
+
invisible characters.
|
| 863 |
+
|
| 864 |
+
f. Fixed a bug that caused the completion append character to not be reset to
|
| 865 |
+
the default after an application-specified completion function changed it.
|
| 866 |
+
|
| 867 |
+
g. Fixed a problem that caused incorrect positioning of the cursor while in
|
| 868 |
+
emacs editing mode when moving forward at the end of a line while using
|
| 869 |
+
a locale supporting multibyte characters.
|
| 870 |
+
|
| 871 |
+
h. Fixed an off-by-one error that caused readline to drop every 511th
|
| 872 |
+
character of buffered input.
|
| 873 |
+
|
| 874 |
+
i. Fixed a bug that resulted in SIGTERM not being caught or cleaned up.
|
| 875 |
+
|
| 876 |
+
j. Fixed redisplay bugs caused by multiline prompts with invisible characters
|
| 877 |
+
or no characters following the final newline.
|
| 878 |
+
|
| 879 |
+
k. Fixed redisplay bug caused by prompts consisting solely of invisible
|
| 880 |
+
characters.
|
| 881 |
+
|
| 882 |
+
l. Fixed a bug in the code that buffers characters received very quickly in
|
| 883 |
+
succession which caused characters to be dropped.
|
| 884 |
+
|
| 885 |
+
m. Fixed a bug that caused readline to reference uninitialized data structures
|
| 886 |
+
if it received a SIGWINCH before completing initialization.
|
| 887 |
+
|
| 888 |
+
n. Fixed a bug that caused the vi-mode `last command' to be set incorrectly
|
| 889 |
+
and therefore unrepeatable.
|
| 890 |
+
|
| 891 |
+
o. Fixed a bug that caused readline to disable echoing when it was being used
|
| 892 |
+
with an output file descriptor that was not a terminal.
|
| 893 |
+
|
| 894 |
+
p. Readline now blocks SIGINT while manipulating internal data structures
|
| 895 |
+
during redisplay.
|
| 896 |
+
|
| 897 |
+
q. Fixed a bug in redisplay that caused readline to segfault when pasting a
|
| 898 |
+
very long line (over 130,000 characters).
|
| 899 |
+
|
| 900 |
+
r. Fixed bugs in redisplay when using prompts with no visible printing
|
| 901 |
+
characters.
|
| 902 |
+
|
| 903 |
+
s. Fixed a bug that caused redisplay errors when using prompts with invisible
|
| 904 |
+
characters and numeric arguments to a command in a multibyte locale.
|
| 905 |
+
|
| 906 |
+
t. Fixed a bug that caused redisplay errors when using prompts with invisible
|
| 907 |
+
characters spanning more than two physical screen lines.
|
| 908 |
+
|
| 909 |
+
2. New Features in Readline
|
| 910 |
+
|
| 911 |
+
a. A new variable, rl_sort_completion_matches; allows applications to inhibit
|
| 912 |
+
match list sorting (but beware: some things don't work right if
|
| 913 |
+
applications do this).
|
| 914 |
+
|
| 915 |
+
b. A new variable, rl_completion_invoking_key; allows applications to discover
|
| 916 |
+
the key that invoked rl_complete or rl_menu_complete.
|
| 917 |
+
|
| 918 |
+
c. The functions rl_block_sigint and rl_release_sigint are now public and
|
| 919 |
+
available to calling applications who want to protect critical sections
|
| 920 |
+
(like redisplay).
|
| 921 |
+
|
| 922 |
+
d. The functions rl_save_state and rl_restore_state are now public and
|
| 923 |
+
available to calling applications; documented rest of readline's state
|
| 924 |
+
flag values.
|
| 925 |
+
|
| 926 |
+
e. A new user-settable variable, `history-size', allows setting the maximum
|
| 927 |
+
number of entries in the history list.
|
| 928 |
+
|
| 929 |
+
f. There is a new implementation of menu completion, with several improvements
|
| 930 |
+
over the old; the most notable improvement is a better `completions
|
| 931 |
+
browsing' mode.
|
| 932 |
+
|
| 933 |
+
g. The menu completion code now uses the rl_menu_completion_entry_function
|
| 934 |
+
variable, allowing applications to provide their own menu completion
|
| 935 |
+
generators.
|
| 936 |
+
|
| 937 |
+
h. There is support for replacing a prefix of a pathname with a `...' when
|
| 938 |
+
displaying possible completions. This is controllable by setting the
|
| 939 |
+
`completion-prefix-display-length' variable. Matches with a common prefix
|
| 940 |
+
longer than this value have the common prefix replaced with `...'.
|
| 941 |
+
|
| 942 |
+
i. There is a new `revert-all-at-newline' variable. If enabled, readline will
|
| 943 |
+
undo all outstanding changes to all history lines when `accept-line' is
|
| 944 |
+
executed.
|
| 945 |
+
|
| 946 |
+
-------------------------------------------------------------------------------
|
| 947 |
+
This document details the changes between this version, readline-5.2,
|
| 948 |
+
and the previous version, readline-5.1.
|
| 949 |
+
|
| 950 |
+
1. Changes to Readline
|
| 951 |
+
|
| 952 |
+
a. Fixed a problem that caused segmentation faults when using readline in
|
| 953 |
+
callback mode and typing consecutive DEL characters on an empty line.
|
| 954 |
+
|
| 955 |
+
b. Fixed several redisplay problems with multibyte characters, all having to
|
| 956 |
+
do with the different code paths and variable meanings between single-byte
|
| 957 |
+
and multibyte character redisplay.
|
| 958 |
+
|
| 959 |
+
c. Fixed a problem with key sequence translation when presented with the
|
| 960 |
+
sequence \M-\C-x.
|
| 961 |
+
|
| 962 |
+
d. Fixed a problem that prevented the `a' command in vi mode from being
|
| 963 |
+
undone and redone properly.
|
| 964 |
+
|
| 965 |
+
e. Fixed a problem that prevented empty inserts in vi mode from being undone
|
| 966 |
+
properly.
|
| 967 |
+
|
| 968 |
+
f. Fixed a problem that caused readline to initialize with an incorrect idea
|
| 969 |
+
of whether or not the terminal can autowrap.
|
| 970 |
+
|
| 971 |
+
g. Fixed output of key bindings (like bash `bind -p') to honor the setting of
|
| 972 |
+
convert-meta and use \e where appropriate.
|
| 973 |
+
|
| 974 |
+
h. Changed the default filename completion function to call the filename
|
| 975 |
+
dequoting function if the directory completion hook isn't set. This means
|
| 976 |
+
that any directory completion hooks need to dequote the directory name,
|
| 977 |
+
since application-specific hooks need to know how the word was quoted,
|
| 978 |
+
even if no other changes are made.
|
| 979 |
+
|
| 980 |
+
i. Fixed a bug with creating the prompt for a non-interactive search string
|
| 981 |
+
when there are non-printing characters in the primary prompt.
|
| 982 |
+
|
| 983 |
+
j. Fixed a bug that caused prompts with invisible characters to be redrawn
|
| 984 |
+
multiple times in a multibyte locale.
|
| 985 |
+
|
| 986 |
+
k. Fixed a bug that could cause the key sequence scanning code to return the
|
| 987 |
+
wrong function.
|
| 988 |
+
|
| 989 |
+
l. Fixed a problem with the callback interface that caused it to fail when
|
| 990 |
+
using multi-character keyboard macros.
|
| 991 |
+
|
| 992 |
+
m. Fixed a bug that could cause a core dump when an edited history entry was
|
| 993 |
+
re-executed under certain conditions.
|
| 994 |
+
|
| 995 |
+
n. Fixed a bug that caused readline to reference freed memory when attmpting
|
| 996 |
+
to display a portion of the prompt.
|
| 997 |
+
|
| 998 |
+
o. Fixed a bug with prompt redisplay in a multi-byte locale to avoid redrawing
|
| 999 |
+
the prompt and input line multiple times.
|
| 1000 |
+
|
| 1001 |
+
p. Fixed history expansion to not be confused by here-string redirection.
|
| 1002 |
+
|
| 1003 |
+
q. Readline no longer treats read errors by converting them to newlines, as
|
| 1004 |
+
it does with EOF. This caused partial lines to be returned from readline().
|
| 1005 |
+
|
| 1006 |
+
r. Fixed a redisplay bug that occurred in multibyte-capable locales when the
|
| 1007 |
+
prompt was one character longer than the screen width.
|
| 1008 |
+
|
| 1009 |
+
2. New Features in Readline
|
| 1010 |
+
|
| 1011 |
+
a. Calling applications can now set the keyboard timeout to 0, allowing
|
| 1012 |
+
poll-like behavior.
|
| 1013 |
+
|
| 1014 |
+
b. The value of SYS_INPUTRC (configurable at compilation time) is now used as
|
| 1015 |
+
the default last-ditch startup file.
|
| 1016 |
+
|
| 1017 |
+
c. The history file reading functions now allow windows-like \r\n line
|
| 1018 |
+
terminators.
|
| 1019 |
+
|
| 1020 |
+
-------------------------------------------------------------------------------
|
| 1021 |
+
This document details the changes between this version, readline-5.1,
|
| 1022 |
+
and the previous version, readline-5.0.
|
| 1023 |
+
|
| 1024 |
+
1. Changes to Readline
|
| 1025 |
+
|
| 1026 |
+
a. Fixed a bug that caused multiliine prompts to be wrapped and displayed
|
| 1027 |
+
incorrectly.
|
| 1028 |
+
|
| 1029 |
+
b. Fixed a bug that caused ^P/^N in emacs mode to fail to display the current
|
| 1030 |
+
line correctly.
|
| 1031 |
+
|
| 1032 |
+
c. Fixed a problem in computing the number of invisible characters on the first
|
| 1033 |
+
line of a prompt whose length exceeds the screen width.
|
| 1034 |
+
|
| 1035 |
+
d. Fixed vi-mode searching so that failure preserves the current line rather
|
| 1036 |
+
than the last line in the history list.
|
| 1037 |
+
|
| 1038 |
+
e. Fixed the vi-mode `~' command (change-case) to have the correct behavior at
|
| 1039 |
+
end-of-line when manipulating multibyte characters.
|
| 1040 |
+
|
| 1041 |
+
f. Fixed the vi-mode `r' command (change-char) to have the correct behavior at
|
| 1042 |
+
end-of-line when manipulating multibyte characters.
|
| 1043 |
+
|
| 1044 |
+
g. Fixed multiple bugs in the redisplay of multibyte characters: displaying
|
| 1045 |
+
prompts longer than the screen width containing multibyte characters,
|
| 1046 |
+
|
| 1047 |
+
h. Fix the calculation of the number of physical characters in the prompt
|
| 1048 |
+
string when it contains multibyte characters.
|
| 1049 |
+
|
| 1050 |
+
i. A non-zero value for the `rl_complete_suppress_append' variable now causes
|
| 1051 |
+
no `/' to be appended to a directory name.
|
| 1052 |
+
|
| 1053 |
+
j. Fixed forward-word and backward-word to work when words contained
|
| 1054 |
+
multibyte characters.
|
| 1055 |
+
|
| 1056 |
+
k. Fixed a bug in finding the delimiter of a `?' substring when performing
|
| 1057 |
+
history expansion in a locale that supports multibyte characters.
|
| 1058 |
+
|
| 1059 |
+
l. Fixed a memory leak caused by not freeing the timestamp in a history entry.
|
| 1060 |
+
|
| 1061 |
+
m. Fixed a bug that caused "\M-x" style key bindings to not obey the setting
|
| 1062 |
+
of the `convert-meta' variable.
|
| 1063 |
+
|
| 1064 |
+
n. Fixed saving and restoring primary prompt when prompting for incremental
|
| 1065 |
+
and non-incremental searches; search prompts now display multibyte
|
| 1066 |
+
characters correctly.
|
| 1067 |
+
|
| 1068 |
+
o. Fixed a bug that caused keys originally bound to self-insert but shadowed
|
| 1069 |
+
by a multi-character key sequence to not be inserted.
|
| 1070 |
+
|
| 1071 |
+
p. Fixed code so rl_prep_term_function and rl_deprep_term_function aren't
|
| 1072 |
+
dereferenced if NULL (matching the documentation).
|
| 1073 |
+
|
| 1074 |
+
q. Extensive changes to readline to add enough state so that commands
|
| 1075 |
+
requiring additional characters (searches, multi-key sequences, numeric
|
| 1076 |
+
arguments, commands requiring an additional specifier character like
|
| 1077 |
+
vi-mode change-char, etc.) work without synchronously waiting for
|
| 1078 |
+
additional input.
|
| 1079 |
+
|
| 1080 |
+
r. Lots of changes so readline builds and runs on MinGW.
|
| 1081 |
+
|
| 1082 |
+
s. Readline no longer tries to modify the terminal settings when running in
|
| 1083 |
+
callback mode.
|
| 1084 |
+
|
| 1085 |
+
t. The Readline display code no longer sets the location of the last invisible
|
| 1086 |
+
character in the prompt if the \[\] sequence is empty.
|
| 1087 |
+
|
| 1088 |
+
u. The `change-case' command now correctly changes the case of multibyte
|
| 1089 |
+
characters.
|
| 1090 |
+
|
| 1091 |
+
v. Changes to the shared library construction scripts to deal with Windows
|
| 1092 |
+
DLL naming conventions for Cygwin.
|
| 1093 |
+
|
| 1094 |
+
w. Fixed the redisplay code to avoid core dumps resulting from a poorly-timed
|
| 1095 |
+
SIGWINCH.
|
| 1096 |
+
|
| 1097 |
+
x. Fixed the non-incremental search code in vi mode to dispose of any current
|
| 1098 |
+
undo list when copying a line from the history into the current editing
|
| 1099 |
+
buffer.
|
| 1100 |
+
|
| 1101 |
+
y. Fixed a bug that caused reversing the incremental search direction to
|
| 1102 |
+
not work correctly.
|
| 1103 |
+
|
| 1104 |
+
z. Fixed the vi-mode `U' command to only undo up to the first time insert mode
|
| 1105 |
+
was entered, as Posix specifies.
|
| 1106 |
+
|
| 1107 |
+
aa. Fixed a bug in the vi-mode `r' command that left the cursor in the wrong
|
| 1108 |
+
place.
|
| 1109 |
+
|
| 1110 |
+
bb. Fixed a redisplay bug caused by moving the cursor vertically to a line
|
| 1111 |
+
with invisible characters in the prompt in a multibyte locale.
|
| 1112 |
+
|
| 1113 |
+
cc. Fixed a bug that could cause the terminal special chars to be bound in the
|
| 1114 |
+
wrong keymap in vi mode.
|
| 1115 |
+
|
| 1116 |
+
2. New Features in Readline
|
| 1117 |
+
|
| 1118 |
+
a. The key sequence sent by the keypad `delete' key is now automatically
|
| 1119 |
+
bound to delete-char.
|
| 1120 |
+
|
| 1121 |
+
b. A negative argument to menu-complete now cycles backward through the
|
| 1122 |
+
completion list.
|
| 1123 |
+
|
| 1124 |
+
c. A new bindable readline variable: bind-tty-special-chars. If non-zero,
|
| 1125 |
+
readline will bind the terminal special characters to their readline
|
| 1126 |
+
equivalents when it's called (on by default).
|
| 1127 |
+
|
| 1128 |
+
d. New bindable command: vi-rubout. Saves deleted text for possible
|
| 1129 |
+
reinsertion, as with any vi-mode `text modification' command; `X' is bound
|
| 1130 |
+
to this in vi command mode.
|
| 1131 |
+
|
| 1132 |
+
e. If the rl_completion_query_items is set to a value < 0, readline never
|
| 1133 |
+
asks the user whether or not to view the possible completions.
|
| 1134 |
+
|
| 1135 |
+
f. The `C-w' binding in incremental search now understands multibyte
|
| 1136 |
+
characters.
|
| 1137 |
+
|
| 1138 |
+
g. New application-callable auxiliary function, rl_variable_value, returns
|
| 1139 |
+
a string corresponding to a readline variable's value.
|
| 1140 |
+
|
| 1141 |
+
h. When parsing inputrc files and variable binding commands, the parser
|
| 1142 |
+
strips trailing whitespace from values assigned to boolean variables
|
| 1143 |
+
before checking them.
|
| 1144 |
+
|
| 1145 |
+
i. A new external application-controllable variable that allows the LINES
|
| 1146 |
+
and COLUMNS environment variables to set the window size regardless of
|
| 1147 |
+
what the kernel returns.
|
| 1148 |
+
|
| 1149 |
+
-------------------------------------------------------------------------------
|
| 1150 |
+
This document details the changes between this version, readline-5.0,
|
| 1151 |
+
and the previous version, readline-4.3.
|
| 1152 |
+
|
| 1153 |
+
1. Changes to Readline
|
| 1154 |
+
|
| 1155 |
+
a. Fixes to avoid core dumps because of null pointer references in the
|
| 1156 |
+
multibyte character code.
|
| 1157 |
+
|
| 1158 |
+
b. Fix to avoid infinite recursion caused by certain key combinations.
|
| 1159 |
+
|
| 1160 |
+
c. Fixed a bug that caused the vi-mode `last command' to be set incorrectly.
|
| 1161 |
+
|
| 1162 |
+
d. Readline no longer tries to read ahead more than one line of input, even
|
| 1163 |
+
when more is available.
|
| 1164 |
+
|
| 1165 |
+
e. Fixed the code that adjusts the point to not mishandle null wide
|
| 1166 |
+
characters.
|
| 1167 |
+
|
| 1168 |
+
f. Fixed a bug in the history expansion `g' modifier that caused it to skip
|
| 1169 |
+
every other match.
|
| 1170 |
+
|
| 1171 |
+
g. Fixed a bug that caused the prompt to overwrite previous output when the
|
| 1172 |
+
output doesn't contain a newline and the locale supports multibyte
|
| 1173 |
+
characters. This same change fixes the problem of readline redisplay
|
| 1174 |
+
slowing down dramatically as the line gets longer in multibyte locales.
|
| 1175 |
+
|
| 1176 |
+
h. History traversal with arrow keys in vi insertion mode causes the cursor
|
| 1177 |
+
to be placed at the end of the new line, like in emacs mode.
|
| 1178 |
+
|
| 1179 |
+
i. The locale initialization code does a better job of using the right
|
| 1180 |
+
precedence and defaulting when checking the appropriate environment
|
| 1181 |
+
variables.
|
| 1182 |
+
|
| 1183 |
+
j. Fixed the history word tokenizer to handle <( and >( better when used as
|
| 1184 |
+
part of bash.
|
| 1185 |
+
|
| 1186 |
+
k. The overwrite mode code received several bug fixes to improve undo.
|
| 1187 |
+
|
| 1188 |
+
l. Many speedups to the multibyte character redisplay code.
|
| 1189 |
+
|
| 1190 |
+
m. The callback character reading interface should not hang waiting to read
|
| 1191 |
+
keyboard input.
|
| 1192 |
+
|
| 1193 |
+
n. Fixed a bug with redoing vi-mode `s' command.
|
| 1194 |
+
|
| 1195 |
+
o. The code that initializes the terminal tracks changes made to the terminal
|
| 1196 |
+
special characters with stty(1) (or equivalent), so that these changes
|
| 1197 |
+
are reflected in the readline bindings. New application-callable function
|
| 1198 |
+
to make it work: rl_tty_unset_default_bindings().
|
| 1199 |
+
|
| 1200 |
+
p. Fixed a bug that could cause garbage to be inserted in the buffer when
|
| 1201 |
+
changing character case in vi mode when using a multibyte locale.
|
| 1202 |
+
|
| 1203 |
+
q. Fixed a bug in the redisplay code that caused problems on systems
|
| 1204 |
+
supporting multibyte characters when moving between history lines when the
|
| 1205 |
+
new line has more glyphs but fewer bytes.
|
| 1206 |
+
|
| 1207 |
+
r. Undo and redo now work better after exiting vi insertion mode.
|
| 1208 |
+
|
| 1209 |
+
s. Make sure system calls are restarted after a SIGWINCH is received using
|
| 1210 |
+
SA_RESTART.
|
| 1211 |
+
|
| 1212 |
+
t. Improvements to the code that displays possible completions when using
|
| 1213 |
+
multibyte characters.
|
| 1214 |
+
|
| 1215 |
+
u. Fixed a problem when parsing nested if statements in inputrc files.
|
| 1216 |
+
|
| 1217 |
+
v. The completer now takes multibyte characters into account when looking for
|
| 1218 |
+
quoted substrings on which to perform completion.
|
| 1219 |
+
|
| 1220 |
+
w. The history search functions now perform better bounds checking on the
|
| 1221 |
+
history list.
|
| 1222 |
+
|
| 1223 |
+
x. Change to history expansion functions to treat `^' as equivalent to word
|
| 1224 |
+
one, as the documentation states.
|
| 1225 |
+
|
| 1226 |
+
y. Some changes to the display code to improve display and redisplay of
|
| 1227 |
+
multibyte characters.
|
| 1228 |
+
|
| 1229 |
+
z. Changes to speed up the multibyte character redisplay code.
|
| 1230 |
+
|
| 1231 |
+
aa. Fixed a bug in the vi-mode `E' command that caused it to skip over the
|
| 1232 |
+
last character of a word if invoked while point was on the word's
|
| 1233 |
+
next-to-last character.
|
| 1234 |
+
|
| 1235 |
+
bb. Fixed a bug that could cause incorrect filename quoting when
|
| 1236 |
+
case-insensitive completion was enabled and the word being completed
|
| 1237 |
+
contained backslashes quoting word break characters.
|
| 1238 |
+
|
| 1239 |
+
cc. Fixed a bug in redisplay triggered when the prompt string contains
|
| 1240 |
+
invisible characters.
|
| 1241 |
+
|
| 1242 |
+
dd. Fixed some display (and other) bugs encountered in multibyte locales
|
| 1243 |
+
when a non-ascii character was the last character on a line.
|
| 1244 |
+
|
| 1245 |
+
ee. Fixed some display bugs caused by multibyte characters in prompt strings.
|
| 1246 |
+
|
| 1247 |
+
ff. Fixed a problem with history expansion caused by non-whitespace characters
|
| 1248 |
+
used as history word delimiters.
|
| 1249 |
+
|
| 1250 |
+
gg. Fixed a problem that could cause readline to refer to freed memory when
|
| 1251 |
+
moving between history lines while doing searches.
|
| 1252 |
+
|
| 1253 |
+
hh. Improvements to the code that expands and displays prompt strings
|
| 1254 |
+
containing multibyte characters.
|
| 1255 |
+
|
| 1256 |
+
ii. Fixed a problem with vi-mode not correctly remembering the numeric argument
|
| 1257 |
+
to the last `c'hange command for later use with `.'.
|
| 1258 |
+
|
| 1259 |
+
jj. Fixed a bug in vi-mode that caused multi-digit count arguments to work
|
| 1260 |
+
incorrectly.
|
| 1261 |
+
|
| 1262 |
+
kk. Fixed a problem in vi-mode that caused the last text modification command
|
| 1263 |
+
to not be remembered across different command lines.
|
| 1264 |
+
|
| 1265 |
+
ll. Fixed problems with changing characters and changing case at the end of
|
| 1266 |
+
the line.
|
| 1267 |
+
|
| 1268 |
+
mm. Fixed a problem with readline saving the contents of the current line
|
| 1269 |
+
before beginning a non-interactive search.
|
| 1270 |
+
|
| 1271 |
+
nn. Fixed a problem with EOF detection when using rl_event_hook.
|
| 1272 |
+
|
| 1273 |
+
oo. Fixed a problem with the vi mode `p' and `P' commands ignoring numeric
|
| 1274 |
+
arguments.
|
| 1275 |
+
|
| 1276 |
+
2. New Features in Readline
|
| 1277 |
+
|
| 1278 |
+
a. History expansion has a new `a' modifier equivalent to the `g' modifier
|
| 1279 |
+
for compatibility with the BSD csh.
|
| 1280 |
+
|
| 1281 |
+
b. History expansion has a new `G' modifier equivalent to the BSD csh `g'
|
| 1282 |
+
modifier, which performs a substitution once per word.
|
| 1283 |
+
|
| 1284 |
+
c. All non-incremental search operations may now undo the operation of
|
| 1285 |
+
replacing the current line with the history line.
|
| 1286 |
+
|
| 1287 |
+
d. The text inserted by an `a' command in vi mode can be reinserted with
|
| 1288 |
+
`.'.
|
| 1289 |
+
|
| 1290 |
+
e. New bindable variable, `show-all-if-unmodified'. If set, the readline
|
| 1291 |
+
completer will list possible completions immediately if there is more
|
| 1292 |
+
than one completion and partial completion cannot be performed.
|
| 1293 |
+
|
| 1294 |
+
f. There is a new application-callable `free_history_entry()' function.
|
| 1295 |
+
|
| 1296 |
+
g. History list entries now contain timestamp information; the history file
|
| 1297 |
+
functions know how to read and write timestamp information associated
|
| 1298 |
+
with each entry.
|
| 1299 |
+
|
| 1300 |
+
h. Four new key binding functions have been added:
|
| 1301 |
+
|
| 1302 |
+
rl_bind_key_if_unbound()
|
| 1303 |
+
rl_bind_key_if_unbound_in_map()
|
| 1304 |
+
rl_bind_keyseq_if_unbound()
|
| 1305 |
+
rl_bind_keyseq_if_unbound_in_map()
|
| 1306 |
+
|
| 1307 |
+
i. New application variable, rl_completion_quote_character, set to any
|
| 1308 |
+
quote character readline finds before it calls the application completion
|
| 1309 |
+
function.
|
| 1310 |
+
|
| 1311 |
+
j. New application variable, rl_completion_suppress_quote, settable by an
|
| 1312 |
+
application completion function. If set to non-zero, readline does not
|
| 1313 |
+
attempt to append a closing quote to a completed word.
|
| 1314 |
+
|
| 1315 |
+
k. New application variable, rl_completion_found_quote, set to a non-zero
|
| 1316 |
+
value if readline determines that the word to be completed is quoted.
|
| 1317 |
+
Set before readline calls any application completion function.
|
| 1318 |
+
|
| 1319 |
+
l. New function hook, rl_completion_word_break_hook, called when readline
|
| 1320 |
+
needs to break a line into words when completion is attempted. Allows
|
| 1321 |
+
the word break characters to vary based on position in the line.
|
| 1322 |
+
|
| 1323 |
+
m. New bindable command: unix-filename-rubout. Does the same thing as
|
| 1324 |
+
unix-word-rubout, but adds `/' to the set of word delimiters.
|
| 1325 |
+
|
| 1326 |
+
n. When listing completions, directories have a `/' appended if the
|
| 1327 |
+
`mark-directories' option has been enabled.
|
| 1328 |
+
|
| 1329 |
+
-------------------------------------------------------------------------------
|
| 1330 |
+
This document details the changes between this version, readline-4.3,
|
| 1331 |
+
and the previous version, readline-4.2a.
|
| 1332 |
+
|
| 1333 |
+
1. Changes to Readline
|
| 1334 |
+
|
| 1335 |
+
a. Fixed output of comment-begin character when listing variable values.
|
| 1336 |
+
|
| 1337 |
+
b. Added some default key bindings for common escape sequences produced by
|
| 1338 |
+
HOME and END keys.
|
| 1339 |
+
|
| 1340 |
+
c. Fixed the mark handling code to be more emacs-compatible.
|
| 1341 |
+
|
| 1342 |
+
d. A bug was fixed in the code that prints possible completions to keep it
|
| 1343 |
+
from printing empty strings in certain circumstances.
|
| 1344 |
+
|
| 1345 |
+
e. Change the key sequence printing code to print ESC as M\- if ESC is a
|
| 1346 |
+
meta-prefix character -- it's easier for users to understand than \e.
|
| 1347 |
+
|
| 1348 |
+
f. Fixed unstifle_history() to return values that match the documentation.
|
| 1349 |
+
|
| 1350 |
+
g. Fixed the event loop (rl_event_hook) to handle the case where the input
|
| 1351 |
+
file descriptor is invalidated.
|
| 1352 |
+
|
| 1353 |
+
h. Fixed the prompt display code to work better when the application has a
|
| 1354 |
+
custom redisplay function.
|
| 1355 |
+
|
| 1356 |
+
i. Changes to make reading and writing the history file a little faster, and
|
| 1357 |
+
to cope with huge history files without calling abort(3) from xmalloc.
|
| 1358 |
+
|
| 1359 |
+
j. The vi-mode `S' and `s' commands are now undone correctly.
|
| 1360 |
+
|
| 1361 |
+
k. Fixed a problem which caused the display to be messed up when the last
|
| 1362 |
+
line of a multi-line prompt (possibly containing invisible characters)
|
| 1363 |
+
was longer than the screen width.
|
| 1364 |
+
|
| 1365 |
+
2. New Features in Readline
|
| 1366 |
+
|
| 1367 |
+
a. Support for key `subsequences': allows, e.g., ESC and ESC-a to both
|
| 1368 |
+
be bound to readline functions. Now the arrow keys may be used in vi
|
| 1369 |
+
insert mode.
|
| 1370 |
+
|
| 1371 |
+
b. When listing completions, and the number of lines displayed is more than
|
| 1372 |
+
the screen length, readline uses an internal pager to display the results.
|
| 1373 |
+
This is controlled by the `page-completions' variable (default on).
|
| 1374 |
+
|
| 1375 |
+
c. New code to handle editing and displaying multibyte characters.
|
| 1376 |
+
|
| 1377 |
+
d. The behavior introduced in bash-2.05a of deciding whether or not to
|
| 1378 |
+
append a slash to a completed name that is a symlink to a directory has
|
| 1379 |
+
been made optional, controlled by the `mark-symlinked-directories'
|
| 1380 |
+
variable (default is the 2.05a behavior).
|
| 1381 |
+
|
| 1382 |
+
e. The `insert-comment' command now acts as a toggle if given a numeric
|
| 1383 |
+
argument: if the first characters on the line don't specify a
|
| 1384 |
+
comment, insert one; if they do, delete the comment text
|
| 1385 |
+
|
| 1386 |
+
f. New application-settable completion variable:
|
| 1387 |
+
rl_completion_mark_symlink_dirs, allows an application's completion
|
| 1388 |
+
function to temporarily override the user's preference for appending
|
| 1389 |
+
slashes to names which are symlinks to directories.
|
| 1390 |
+
|
| 1391 |
+
g. New function available to application completion functions:
|
| 1392 |
+
rl_completion_mode, to tell how the completion function was invoked
|
| 1393 |
+
and decide which argument to supply to rl_complete_internal (to list
|
| 1394 |
+
completions, etc.).
|
| 1395 |
+
|
| 1396 |
+
h. Readline now has an overwrite mode, toggled by the `overwrite-mode'
|
| 1397 |
+
bindable command, which could be bound to `Insert'.
|
| 1398 |
+
|
| 1399 |
+
i. New application-settable completion variable:
|
| 1400 |
+
rl_completion_suppress_append, inhibits appending of
|
| 1401 |
+
rl_completion_append_character to completed words.
|
| 1402 |
+
|
| 1403 |
+
j. New key bindings when reading an incremental search string: ^W yanks
|
| 1404 |
+
the currently-matched word out of the current line into the search
|
| 1405 |
+
string; ^Y yanks the rest of the current line into the search string,
|
| 1406 |
+
DEL or ^H deletes characters from the search string.
|
| 1407 |
+
|
| 1408 |
+
-------------------------------------------------------------------------------
|
| 1409 |
+
This document details the changes between this version, readline-4.2a,
|
| 1410 |
+
and the previous version, readline-4.2.
|
| 1411 |
+
|
| 1412 |
+
1. Changes to Readline
|
| 1413 |
+
|
| 1414 |
+
a. More `const' and type casting fixes.
|
| 1415 |
+
|
| 1416 |
+
b. Changed rl_message() to use vsnprintf(3) (if available) to fix buffer
|
| 1417 |
+
overflow problems.
|
| 1418 |
+
|
| 1419 |
+
c. The completion code no longer appends a `/' or ` ' to a match when
|
| 1420 |
+
completing a symbolic link that resolves to a directory name, unless
|
| 1421 |
+
the match does not add anything to the word being completed. This
|
| 1422 |
+
means that a tab will complete the word up to the full name, but not
|
| 1423 |
+
add anything, and a subsequent tab will add a slash.
|
| 1424 |
+
|
| 1425 |
+
d. Fixed a trivial typo that made the vi-mode `dT' command not work.
|
| 1426 |
+
|
| 1427 |
+
e. Fixed the tty code so that ^S and ^Q can be inserted with rl_quoted_insert.
|
| 1428 |
+
|
| 1429 |
+
f. Fixed the tty code so that ^V works more than once.
|
| 1430 |
+
|
| 1431 |
+
g. Changed the use of __P((...)) for function prototypes to PARAMS((...))
|
| 1432 |
+
because the use of __P in typedefs conflicted g++ and glibc.
|
| 1433 |
+
|
| 1434 |
+
h. The completion code now attempts to do a better job of preserving the
|
| 1435 |
+
case of the word the user typed if ignoring case in completions.
|
| 1436 |
+
|
| 1437 |
+
i. Readline defaults to not echoing the input and lets the terminal
|
| 1438 |
+
initialization code enable echoing if there is a controlling terminal.
|
| 1439 |
+
|
| 1440 |
+
j. The key binding code now processes only two hex digits after a `\x'
|
| 1441 |
+
escape sequence, and the documentation was changed to note that the
|
| 1442 |
+
octal and hex escape sequences result in an eight-bit value rather
|
| 1443 |
+
than strict ASCII.
|
| 1444 |
+
|
| 1445 |
+
k. Fixed a few places where negative array subscripts could have occurred.
|
| 1446 |
+
|
| 1447 |
+
l. Fixed the vi-mode code to use a better method to determine the bounds of
|
| 1448 |
+
the array used to hold the marks, and to avoid out-of-bounds references.
|
| 1449 |
+
|
| 1450 |
+
m. Fixed the defines in chardefs.h to work better when chars are signed.
|
| 1451 |
+
|
| 1452 |
+
n. Fixed configure.in to use the new names for bash autoconf macros.
|
| 1453 |
+
|
| 1454 |
+
o. Readline no longer attempts to define its own versions of some ctype
|
| 1455 |
+
macros if they are implemented as functions in libc but not as macros in
|
| 1456 |
+
<ctype.h>.
|
| 1457 |
+
|
| 1458 |
+
p. Fixed a problem where rl_backward could possibly set point to before
|
| 1459 |
+
the beginning of the line.
|
| 1460 |
+
|
| 1461 |
+
q. Fixed Makefile to not put -I/usr/include into CFLAGS, since it can cause
|
| 1462 |
+
include file problems.
|
| 1463 |
+
|
| 1464 |
+
2. New Features in Readline
|
| 1465 |
+
|
| 1466 |
+
a. Added extern declaration for rl_get_termcap to readline.h, making it a
|
| 1467 |
+
public function (it was always there, just not in readline.h).
|
| 1468 |
+
|
| 1469 |
+
b. New #defines in readline.h: RL_READLINE_VERSION, currently 0x0402,
|
| 1470 |
+
RL_VERSION_MAJOR, currently 4, and RL_VERSION_MINOR, currently 2.
|
| 1471 |
+
|
| 1472 |
+
c. New readline variable: rl_readline_version, mirrors RL_READLINE_VERSION.
|
| 1473 |
+
|
| 1474 |
+
d. New bindable boolean readline variable: match-hidden-files. Controls
|
| 1475 |
+
completion of files beginning with a `.' (on Unix). Enabled by default.
|
| 1476 |
+
|
| 1477 |
+
e. The history expansion code now allows any character to terminate a
|
| 1478 |
+
`:first-' modifier, like csh.
|
| 1479 |
+
|
| 1480 |
+
f. The incremental search code remembers the last search string and uses
|
| 1481 |
+
it if ^R^R is typed without a search string.
|
| 1482 |
+
|
| 1483 |
+
h. New bindable variable `history-preserve-point'. If set, the history
|
| 1484 |
+
code attempts to place the user at the same location on each history
|
| 1485 |
+
line retrieved with previous-history or next-history.
|
| 1486 |
+
|
| 1487 |
+
-------------------------------------------------------------------------------
|
| 1488 |
+
This document details the changes between this version, readline-4.2,
|
| 1489 |
+
and the previous version, readline-4.1.
|
| 1490 |
+
|
| 1491 |
+
1. Changes to Readline
|
| 1492 |
+
|
| 1493 |
+
a. When setting the terminal attributes on systems using `struct termio',
|
| 1494 |
+
readline waits for output to drain before changing the attributes.
|
| 1495 |
+
|
| 1496 |
+
b. A fix was made to the history word tokenization code to avoid attempts to
|
| 1497 |
+
dereference a null pointer.
|
| 1498 |
+
|
| 1499 |
+
c. Readline now defaults rl_terminal_name to $TERM if the calling application
|
| 1500 |
+
has left it unset, and tries to initialize with the resultant value.
|
| 1501 |
+
|
| 1502 |
+
d. Instead of calling (*rl_getc_function)() directly to get input in certain
|
| 1503 |
+
places, readline now calls rl_read_key() consistently.
|
| 1504 |
+
|
| 1505 |
+
e. Fixed a bug in the completion code that allowed a backslash to quote a
|
| 1506 |
+
single quote inside a single-quoted string.
|
| 1507 |
+
|
| 1508 |
+
f. rl_prompt is no longer assigned directly from the argument to readline(),
|
| 1509 |
+
but uses memory allocated by readline. This allows constant strings to
|
| 1510 |
+
be passed to readline without problems arising when the prompt processing
|
| 1511 |
+
code wants to modify the string.
|
| 1512 |
+
|
| 1513 |
+
g. Fixed a bug that caused non-interactive history searches to return the
|
| 1514 |
+
wrong line when performing multiple searches backward for the same string.
|
| 1515 |
+
|
| 1516 |
+
h. Many variables, function arguments, and function return values are now
|
| 1517 |
+
declared `const' where appropriate, to improve behavior when linking with
|
| 1518 |
+
C++ code.
|
| 1519 |
+
|
| 1520 |
+
i. The control character detection code now works better on systems where
|
| 1521 |
+
`char' is unsigned by default.
|
| 1522 |
+
|
| 1523 |
+
j. The vi-mode numeric argument is now capped at 999999, just like emacs mode.
|
| 1524 |
+
|
| 1525 |
+
k. The Function, CPFunction, CPPFunction, and VFunction typedefs have been
|
| 1526 |
+
replaced with a set of specific prototyped typedefs, though they are
|
| 1527 |
+
still in the readline header files for backwards compatibility.
|
| 1528 |
+
|
| 1529 |
+
m. Nearly all of the (undocumented) internal global variables in the library
|
| 1530 |
+
now have an _rl_ prefix -- there were a number that did not, like
|
| 1531 |
+
screenheight, screenwidth, alphabetic, etc.
|
| 1532 |
+
|
| 1533 |
+
n. The ding() convenience function has been renamed to rl_ding(), though the
|
| 1534 |
+
old function is still defined for backwards compatibility.
|
| 1535 |
+
|
| 1536 |
+
o. The completion convenience functions filename_completion_function,
|
| 1537 |
+
username_completion_function, and completion_matches now have an rl_
|
| 1538 |
+
prefix, though the old names are still defined for backwards compatibility.
|
| 1539 |
+
|
| 1540 |
+
p. The functions shared by readline and bash (linkage is satisfied from bash
|
| 1541 |
+
when compiling with bash, and internally otherwise) now have an sh_ prefix.
|
| 1542 |
+
|
| 1543 |
+
q. Changed the shared library creation procedure on Linux and BSD/OS 4.x so
|
| 1544 |
+
that the `soname' contains only the major version number rather than the
|
| 1545 |
+
major and minor numbers.
|
| 1546 |
+
|
| 1547 |
+
r. Fixed a redisplay bug that occurred when the prompt spanned more than one
|
| 1548 |
+
physical line and contained invisible characters.
|
| 1549 |
+
|
| 1550 |
+
s. Added a missing `includedir' variable to the Makefile.
|
| 1551 |
+
|
| 1552 |
+
t. When installing the shared libraries, make sure symbolic links are relative.
|
| 1553 |
+
|
| 1554 |
+
u. Added configure test so that it can set `${MAKE}' appropriately.
|
| 1555 |
+
|
| 1556 |
+
v. Fixed a bug in rl_forward that could cause the point to be set to before
|
| 1557 |
+
the beginning of the line in vi mode.
|
| 1558 |
+
|
| 1559 |
+
w. Fixed a bug in the callback read-char interface to make it work when a
|
| 1560 |
+
readline function pushes some input onto the input stream with
|
| 1561 |
+
rl_execute_next (like the incremental search functions).
|
| 1562 |
+
|
| 1563 |
+
x. Fixed a file descriptor leak in the history file manipulation code that
|
| 1564 |
+
was tripped when attempting to truncate a non-regular file (like
|
| 1565 |
+
/dev/null).
|
| 1566 |
+
|
| 1567 |
+
y. Changes to make all of the exported readline functions declared in
|
| 1568 |
+
readline.h have an rl_ prefix (rltty_set_default_bindings is now
|
| 1569 |
+
rl_tty_set_default_bindings, crlf is now rl_crlf, etc.)
|
| 1570 |
+
|
| 1571 |
+
z. The formatted documentation included in the base readline distribution
|
| 1572 |
+
is no longer removed on a `make distclean'.
|
| 1573 |
+
|
| 1574 |
+
aa. Some changes were made to avoid gcc warnings with -Wall.
|
| 1575 |
+
|
| 1576 |
+
bb. rl_get_keymap_by_name now finds keymaps case-insensitively, so
|
| 1577 |
+
`set keymap EMACS' works.
|
| 1578 |
+
|
| 1579 |
+
cc. The history file writing and truncation functions now return a useful
|
| 1580 |
+
status on error.
|
| 1581 |
+
|
| 1582 |
+
dd. Fixed a bug that could cause applications to dereference a NULL pointer
|
| 1583 |
+
if a NULL second argument was passed to history_expand().
|
| 1584 |
+
|
| 1585 |
+
ee. If a hook function assigned to rl_event_hook sets rl_done to a non-zero
|
| 1586 |
+
value, rl_read_key() now immediately returns '\n' (which is assumed to
|
| 1587 |
+
be bound to accept-line).
|
| 1588 |
+
|
| 1589 |
+
2. New Features in Readline
|
| 1590 |
+
|
| 1591 |
+
a. The blink timeout for paren matching is now settable by applications,
|
| 1592 |
+
via the rl_set_paren_blink_timeout() function.
|
| 1593 |
+
|
| 1594 |
+
b. _rl_executing_macro has been renamed to rl_executing_macro, which means
|
| 1595 |
+
it's now part of the public interface.
|
| 1596 |
+
|
| 1597 |
+
c. Readline has a new variable, rl_readline_state, which is a bitmap that
|
| 1598 |
+
encapsulates the current state of the library; intended for use by
|
| 1599 |
+
callbacks and hook functions.
|
| 1600 |
+
|
| 1601 |
+
d. rlfe has a new -l option to log input and output (-a appends to logfile),
|
| 1602 |
+
a new -n option to set the readline application name, and -v and -h
|
| 1603 |
+
options for version and help information.
|
| 1604 |
+
|
| 1605 |
+
e. rlfe can now perform filename completion for the inferior process if the
|
| 1606 |
+
OS has a /proc/<PID>/cwd that can be read with readlink(2) to get the
|
| 1607 |
+
inferior's current working directory.
|
| 1608 |
+
|
| 1609 |
+
f. A new file, rltypedefs.h, contains the new typedefs for function pointers
|
| 1610 |
+
and is installed by `make install'.
|
| 1611 |
+
|
| 1612 |
+
g. New application-callable function rl_set_prompt(const char *prompt):
|
| 1613 |
+
expands its prompt string argument and sets rl_prompt to the result.
|
| 1614 |
+
|
| 1615 |
+
h. New application-callable function rl_set_screen_size(int rows, int cols):
|
| 1616 |
+
public method for applications to set readline's idea of the screen
|
| 1617 |
+
dimensions.
|
| 1618 |
+
|
| 1619 |
+
i. The history example program (examples/histexamp.c) is now built as one
|
| 1620 |
+
of the examples.
|
| 1621 |
+
|
| 1622 |
+
j. The documentation has been updated to cover nearly all of the public
|
| 1623 |
+
functions and variables declared in readline.h.
|
| 1624 |
+
|
| 1625 |
+
k. New function, rl_get_screen_size (int *rows, int *columns), returns
|
| 1626 |
+
readline's idea of the screen dimensions.
|
| 1627 |
+
|
| 1628 |
+
l. The timeout in rl_gather_tyi (readline keyboard input polling function)
|
| 1629 |
+
is now settable via a function (rl_set_keyboard_input_timeout()).
|
| 1630 |
+
|
| 1631 |
+
m. Renamed the max_input_history variable to history_max_entries; the old
|
| 1632 |
+
variable is maintained for backwards compatibility.
|
| 1633 |
+
|
| 1634 |
+
n. The list of characters that separate words for the history tokenizer is
|
| 1635 |
+
now settable with a variable: history_word_delimiters. The default
|
| 1636 |
+
value is as before.
|
| 1637 |
+
|
| 1638 |
+
o. There is a new history.3 manual page documenting the history library.
|
| 1639 |
+
|
| 1640 |
+
-------------------------------------------------------------------------------
|
| 1641 |
+
This document details the changes between this version, readline-4.1,
|
| 1642 |
+
and the previous version, readline-4.0.
|
| 1643 |
+
|
| 1644 |
+
1. Changes to Readline
|
| 1645 |
+
|
| 1646 |
+
a. Changed the HTML documents so that the table-of-contents is no longer
|
| 1647 |
+
a separate file.
|
| 1648 |
+
|
| 1649 |
+
b. Changes to the shared object configuration for: Irix 5.x, Irix 6.x,
|
| 1650 |
+
OSF/1.
|
| 1651 |
+
|
| 1652 |
+
c. The shared library major and minor versions are now constructed
|
| 1653 |
+
automatically by configure and substituted into the makefiles.
|
| 1654 |
+
|
| 1655 |
+
d. It's now possible to install the shared libraries separately from the
|
| 1656 |
+
static libraries.
|
| 1657 |
+
|
| 1658 |
+
e. The history library tries to truncate the history file only if it is a
|
| 1659 |
+
regular file.
|
| 1660 |
+
|
| 1661 |
+
f. A bug that caused _rl_dispatch to address negative array indices on
|
| 1662 |
+
systems with signed chars was fixed.
|
| 1663 |
+
|
| 1664 |
+
g. rl-yank-nth-arg now leaves the history position the same as when it was
|
| 1665 |
+
called.
|
| 1666 |
+
|
| 1667 |
+
h. Changes to the completion code to handle MS-DOS drive-letter:pathname
|
| 1668 |
+
filenames.
|
| 1669 |
+
|
| 1670 |
+
i. Completion is now case-insensitive by default on MS-DOS.
|
| 1671 |
+
|
| 1672 |
+
j. Fixes to the history file manipulation code for MS-DOS.
|
| 1673 |
+
|
| 1674 |
+
k. Readline attempts to bind the arrow keys to appropriate defaults on MS-DOS.
|
| 1675 |
+
|
| 1676 |
+
l. Some fixes were made to the redisplay code for better operation on MS-DOS.
|
| 1677 |
+
|
| 1678 |
+
m. The quoted-insert code will now insert tty special chars like ^C.
|
| 1679 |
+
|
| 1680 |
+
n. A bug was fixed that caused the display code to reference memory before
|
| 1681 |
+
the start of the prompt string.
|
| 1682 |
+
|
| 1683 |
+
o. More support for __EMX__ (OS/2).
|
| 1684 |
+
|
| 1685 |
+
p. A bug was fixed in readline's signal handling that could cause infinite
|
| 1686 |
+
recursion in signal handlers.
|
| 1687 |
+
|
| 1688 |
+
q. A bug was fixed that caused the point to be less than zero when rl_forward
|
| 1689 |
+
was given a very large numeric argument.
|
| 1690 |
+
|
| 1691 |
+
r. The vi-mode code now gets characters via the application-settable value
|
| 1692 |
+
of rl_getc_function rather than calling rl_getc directly.
|
| 1693 |
+
|
| 1694 |
+
s. The history file code now uses O_BINARY mode when reading and writing
|
| 1695 |
+
the history file on cygwin32.
|
| 1696 |
+
|
| 1697 |
+
t. Fixed a bug in the redisplay code for lines with more than 256 line
|
| 1698 |
+
breaks.
|
| 1699 |
+
|
| 1700 |
+
u. A bug was fixed which caused invisible character markers to not be
|
| 1701 |
+
stripped from the prompt string if the terminal was in no-echo mode.
|
| 1702 |
+
|
| 1703 |
+
v. Readline no longer tries to get the variables it needs for redisplay
|
| 1704 |
+
from the termcap entry if the calling application has specified its
|
| 1705 |
+
own redisplay function. Readline treats the terminal as `dumb' in
|
| 1706 |
+
this case.
|
| 1707 |
+
|
| 1708 |
+
w. Fixes to the SIGWINCH code so that a multiple-line prompt with escape
|
| 1709 |
+
sequences is redrawn correctly.
|
| 1710 |
+
|
| 1711 |
+
x. Changes to the install and install-shared targets so that the libraries
|
| 1712 |
+
and header files are installed separately.
|
| 1713 |
+
|
| 1714 |
+
2. New Features in Readline
|
| 1715 |
+
|
| 1716 |
+
a. A new Readline `user manual' is in doc/rluserman.texinfo.
|
| 1717 |
+
|
| 1718 |
+
b. Parentheses matching is now always compiled into readline, and enabled
|
| 1719 |
+
or disabled when the value of the `blink-matching-paren' variable is
|
| 1720 |
+
changed.
|
| 1721 |
+
|
| 1722 |
+
c. MS-DOS systems now use ~/_inputrc as the last-ditch inputrc filename.
|
| 1723 |
+
|
| 1724 |
+
d. MS-DOS systems now use ~/_history as the default history file.
|
| 1725 |
+
|
| 1726 |
+
e. history-search-{forward,backward} now leave the point at the end of the
|
| 1727 |
+
line when the string to search for is empty, like
|
| 1728 |
+
{reverse,forward}-search-history.
|
| 1729 |
+
|
| 1730 |
+
f. history-search-{forward,backward} now leave the last history line found
|
| 1731 |
+
in the readline buffer if the second or subsequent search fails.
|
| 1732 |
+
|
| 1733 |
+
g. New function for use by applications: rl_on_new_line_with_prompt, used
|
| 1734 |
+
when an application displays the prompt itself before calling readline().
|
| 1735 |
+
|
| 1736 |
+
h. New variable for use by applications: rl_already_prompted. An application
|
| 1737 |
+
that displays the prompt itself before calling readline() must set this to
|
| 1738 |
+
a non-zero value.
|
| 1739 |
+
|
| 1740 |
+
i. A new variable, rl_gnu_readline_p, always 1. The intent is that an
|
| 1741 |
+
application can verify whether or not it is linked with the `real'
|
| 1742 |
+
readline library or some substitute.
|
| 1743 |
+
|
| 1744 |
+
j. Per Bothner's `rlfe' (pronounced `Ralphie') readline front-end program
|
| 1745 |
+
is included in the examples subdirectory, though it is not built
|
| 1746 |
+
by default.
|
| 1747 |
+
|
| 1748 |
+
-------------------------------------------------------------------------------
|
| 1749 |
+
This document details the changes between this version, readline-4.0,
|
| 1750 |
+
and the previous version, readline-2.2.
|
| 1751 |
+
|
| 1752 |
+
1. Changes to Readline
|
| 1753 |
+
|
| 1754 |
+
a. The version number is now 4.0, to match the major and minor version
|
| 1755 |
+
numbers on the shared readline and history libraries. Future
|
| 1756 |
+
releases will maintain the identical numbering.
|
| 1757 |
+
|
| 1758 |
+
b. Fixed a typo in the `make install' recipe that copied libreadline.a
|
| 1759 |
+
to libhistory.old right after installing it.
|
| 1760 |
+
|
| 1761 |
+
c. The readline and history info files are now installed out of the source
|
| 1762 |
+
directory if they are not found in the build directory.
|
| 1763 |
+
|
| 1764 |
+
d. The library no longer exports a function named `savestring' -- backwards
|
| 1765 |
+
compatibility be damned.
|
| 1766 |
+
|
| 1767 |
+
e. There is no longer any #ifdef SHELL code in the source files.
|
| 1768 |
+
|
| 1769 |
+
f. Some changes were made to the key binding code to fix memory leaks and
|
| 1770 |
+
better support Win32 systems.
|
| 1771 |
+
|
| 1772 |
+
g. Fixed a silly typo in the paren matching code -- it's microseconds, not
|
| 1773 |
+
milliseconds.
|
| 1774 |
+
|
| 1775 |
+
h. The readline library should be compilable by C++ compilers.
|
| 1776 |
+
|
| 1777 |
+
i. The readline.h public header file now includes function prototypes for
|
| 1778 |
+
all readline functions, and some changes were made to fix errors in the
|
| 1779 |
+
source files uncovered by the use of prototypes.
|
| 1780 |
+
|
| 1781 |
+
j. The maximum numeric argument is now clamped at 1000000.
|
| 1782 |
+
|
| 1783 |
+
k. Fixes to rl_yank_last_arg to make it behave better.
|
| 1784 |
+
|
| 1785 |
+
l. Fixed a bug in the display code that caused core dumps if the prompt
|
| 1786 |
+
string length exceeded 1024 characters.
|
| 1787 |
+
|
| 1788 |
+
m. The menu completion code was fixed to properly insert a single completion
|
| 1789 |
+
if there is only one match.
|
| 1790 |
+
|
| 1791 |
+
n. A bug was fixed that caused the display code to improperly display tabs
|
| 1792 |
+
after newlines.
|
| 1793 |
+
|
| 1794 |
+
o. A fix was made to the completion code in which a typo caused the wrong
|
| 1795 |
+
value to be passed to the function that computed the longest common
|
| 1796 |
+
prefix of the list of matches.
|
| 1797 |
+
|
| 1798 |
+
p. The completion code now checks the value of rl_filename_completion_desired,
|
| 1799 |
+
which is set by application-supplied completion functions to indicate
|
| 1800 |
+
that filename completion is being performed, to decide whether or not to
|
| 1801 |
+
call an application-supplied `ignore completions' function.
|
| 1802 |
+
|
| 1803 |
+
q. Code was added to the history library to catch history substitutions
|
| 1804 |
+
using `&' without a previous history substitution or search having been
|
| 1805 |
+
performed.
|
| 1806 |
+
|
| 1807 |
+
|
| 1808 |
+
2. New Features in Readline
|
| 1809 |
+
|
| 1810 |
+
a. There is a new script, support/shobj-conf, to do system-specific shared
|
| 1811 |
+
object and library configuration. It generates variables for configure
|
| 1812 |
+
to substitute into makefiles. The README file provides a detailed
|
| 1813 |
+
explanation of the shared library creation process.
|
| 1814 |
+
|
| 1815 |
+
b. Shared libraries and objects are now built in the `shlib' subdirectory.
|
| 1816 |
+
There is a shlib/Makefile.in to control the build process. `make shared'
|
| 1817 |
+
from the top-level directory is still the right way to build shared
|
| 1818 |
+
versions of the libraries.
|
| 1819 |
+
|
| 1820 |
+
c. rlconf.h is now installed, so applications can find out which features
|
| 1821 |
+
have been compiled into the installed readline and history libraries.
|
| 1822 |
+
|
| 1823 |
+
d. rlstdc.h is now an installed header file.
|
| 1824 |
+
|
| 1825 |
+
e. Many changes to the signal handling:
|
| 1826 |
+
o Readline now catches SIGQUIT and cleans up the tty before returning;
|
| 1827 |
+
o A new variable, rl_catch_signals, is available to application writers
|
| 1828 |
+
to indicate to readline whether or not it should install its own
|
| 1829 |
+
signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP,
|
| 1830 |
+
SIGTTIN, and SIGTTOU;
|
| 1831 |
+
o A new variable, rl_catch_sigwinch, is available to application
|
| 1832 |
+
writers to indicate to readline whether or not it should install its
|
| 1833 |
+
own signal handler for SIGWINCH, which will chain to the calling
|
| 1834 |
+
applications's SIGWINCH handler, if one is installed;
|
| 1835 |
+
o There is a new function, rl_free_line_state, for application signal
|
| 1836 |
+
handlers to call to free up the state associated with the current
|
| 1837 |
+
line after receiving a signal;
|
| 1838 |
+
o There is a new function, rl_cleanup_after_signal, to clean up the
|
| 1839 |
+
display and terminal state after receiving a signal;
|
| 1840 |
+
o There is a new function, rl_reset_after_signal, to reinitialize the
|
| 1841 |
+
terminal and display state after an application signal handler
|
| 1842 |
+
returns and readline continues
|
| 1843 |
+
|
| 1844 |
+
f. There is a new function, rl_resize_terminal, to reset readline's idea of
|
| 1845 |
+
the screen size after a SIGWINCH.
|
| 1846 |
+
|
| 1847 |
+
g. New public functions: rl_save_prompt and rl_restore_prompt. These were
|
| 1848 |
+
previously private functions with a `_' prefix. These functions are
|
| 1849 |
+
used when an application wants to write a message to the `message area'
|
| 1850 |
+
with rl_message and have the prompt restored correctly when the message
|
| 1851 |
+
is erased.
|
| 1852 |
+
|
| 1853 |
+
h. New function hook: rl_pre_input_hook, called just before readline starts
|
| 1854 |
+
reading input, after initialization.
|
| 1855 |
+
|
| 1856 |
+
i. New function hook: rl_display_matches_hook, called when readline would
|
| 1857 |
+
display the list of completion matches. The new function
|
| 1858 |
+
rl_display_match_list is what readline uses internally, and is available
|
| 1859 |
+
for use by application functions called via this hook.
|
| 1860 |
+
|
| 1861 |
+
j. New bindable function, delete-char-or-list, like tcsh.
|
| 1862 |
+
|
| 1863 |
+
k. A new variable, rl_erase_empty_line, which, if set by an application using
|
| 1864 |
+
readline, will cause readline to erase, prompt and all, lines on which the
|
| 1865 |
+
only thing typed was a newline.
|
| 1866 |
+
|
| 1867 |
+
l. There is a new script, support/shlib-install, to install and uninstall
|
| 1868 |
+
the shared readline and history libraries.
|
| 1869 |
+
|
| 1870 |
+
m. A new bindable variable, `isearch-terminators', which is a string
|
| 1871 |
+
containing the set of characters that should terminate an incremental
|
| 1872 |
+
search without being executed as a command.
|
| 1873 |
+
|
| 1874 |
+
n. A new bindable function, forward-backward-delete-char.
|
| 1875 |
+
|
| 1876 |
+
-------------------------------------------------------------------------------
|
| 1877 |
+
This document details the changes between this version, readline-2.2,
|
| 1878 |
+
and the previous version, readline-2.1.
|
| 1879 |
+
|
| 1880 |
+
1. Changes to Readline
|
| 1881 |
+
|
| 1882 |
+
a. Added a missing `extern' to a declaration in readline.h that kept
|
| 1883 |
+
readline from compiling cleanly on some systems.
|
| 1884 |
+
|
| 1885 |
+
b. The history file is now opened with mode 0600 when it is written for
|
| 1886 |
+
better security.
|
| 1887 |
+
|
| 1888 |
+
c. Changes were made to the SIGWINCH handling code so that prompt redisplay
|
| 1889 |
+
is done better.
|
| 1890 |
+
|
| 1891 |
+
d. ^G now interrupts incremental searches correctly.
|
| 1892 |
+
|
| 1893 |
+
e. A bug that caused a core dump when the set of characters to be quoted
|
| 1894 |
+
when completing words was empty was fixed.
|
| 1895 |
+
|
| 1896 |
+
f. Fixed a problem in the readline test program rltest.c that caused a core
|
| 1897 |
+
dump.
|
| 1898 |
+
|
| 1899 |
+
g. The code that handles parser directives in inputrc files now displays
|
| 1900 |
+
more error messages.
|
| 1901 |
+
|
| 1902 |
+
h. The history expansion code was fixed so that the appearance of the
|
| 1903 |
+
history comment character at the beginning of a word inhibits history
|
| 1904 |
+
expansion for that word and the rest of the input line.
|
| 1905 |
+
|
| 1906 |
+
i. The code that prints completion listings now behaves better if one or
|
| 1907 |
+
more of the filenames contains non-printable characters.
|
| 1908 |
+
|
| 1909 |
+
j. The time delay when showing matching parentheses is now 0.5 seconds.
|
| 1910 |
+
|
| 1911 |
+
|
| 1912 |
+
2. New Features in Readline
|
| 1913 |
+
|
| 1914 |
+
a. There is now an option for `iterative' yank-last-arg handline, so a user
|
| 1915 |
+
can keep entering `M-.', yanking the last argument of successive history
|
| 1916 |
+
lines.
|
| 1917 |
+
|
| 1918 |
+
b. New variable, `print-completions-horizontally', which causes completion
|
| 1919 |
+
matches to be displayed across the screen (like `ls -x') rather than up
|
| 1920 |
+
and down the screen (like `ls').
|
| 1921 |
+
|
| 1922 |
+
c. New variable, `completion-ignore-case', which causes filename completion
|
| 1923 |
+
and matching to be performed case-insensitively.
|
| 1924 |
+
|
| 1925 |
+
d. There is a new bindable command, `magic-space', which causes history
|
| 1926 |
+
expansion to be performed on the current readline buffer and a space to
|
| 1927 |
+
be inserted into the result.
|
| 1928 |
+
|
| 1929 |
+
e. There is a new bindable command, `menu-complete', which enables tcsh-like
|
| 1930 |
+
menu completion (successive executions of menu-complete insert a single
|
| 1931 |
+
completion match, cycling through the list of possible completions).
|
| 1932 |
+
|
| 1933 |
+
f. There is a new bindable command, `paste-from-clipboard', for use on Win32
|
| 1934 |
+
systems, to insert the text from the Win32 clipboard into the editing
|
| 1935 |
+
buffer.
|
| 1936 |
+
|
| 1937 |
+
g. The key sequence translation code now understands printf-style backslash
|
| 1938 |
+
escape sequences, including \NNN octal escapes. These escape sequences
|
| 1939 |
+
may be used in key sequence definitions or macro values.
|
| 1940 |
+
|
| 1941 |
+
h. An `$include' inputrc file parser directive has been added.
|
llava_next/share/doc/readline/INSTALL
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Basic Installation
|
| 2 |
+
==================
|
| 3 |
+
|
| 4 |
+
These are installation instructions for Readline-8.2.
|
| 5 |
+
|
| 6 |
+
The simplest way to compile readline is:
|
| 7 |
+
|
| 8 |
+
1. `cd' to the directory containing the readline source code and type
|
| 9 |
+
`./configure' to configure readline for your system. If you're
|
| 10 |
+
using `csh' on an old version of System V, you might need to type
|
| 11 |
+
`sh ./configure' instead to prevent `csh' from trying to execute
|
| 12 |
+
`configure' itself.
|
| 13 |
+
|
| 14 |
+
Running `configure' takes some time. While running, it prints some
|
| 15 |
+
messages telling which features it is checking for.
|
| 16 |
+
|
| 17 |
+
2. Type `make' to compile readline and build the static readline
|
| 18 |
+
and history libraries. If supported, the shared readline and history
|
| 19 |
+
libraries will be built also. See below for instructions on compiling
|
| 20 |
+
the other parts of the distribution. Typing `make everything' will
|
| 21 |
+
cause the static and shared libraries (if supported) and the example
|
| 22 |
+
programs to be built.
|
| 23 |
+
|
| 24 |
+
3. Type `make install' to install the static readline and history
|
| 25 |
+
libraries, the readline include files, the documentation, and, if
|
| 26 |
+
supported, the shared readline and history libraries.
|
| 27 |
+
|
| 28 |
+
4. You can remove the created libraries and object files from the
|
| 29 |
+
build directory by typing `make clean'. To also remove the
|
| 30 |
+
files that `configure' created (so you can compile readline for
|
| 31 |
+
a different kind of computer), type `make distclean'. There is
|
| 32 |
+
also a `make maintainer-clean' target, but that is intended mainly
|
| 33 |
+
for the readline developers, and should be used with care.
|
| 34 |
+
|
| 35 |
+
The `configure' shell script attempts to guess correct values for
|
| 36 |
+
various system-dependent variables used during compilation. It
|
| 37 |
+
uses those values to create a `Makefile' in the build directory,
|
| 38 |
+
and Makefiles in the `doc', `shlib', and `examples'
|
| 39 |
+
subdirectories. It also creates a `config.h' file containing
|
| 40 |
+
system-dependent definitions. Finally, it creates a shell script
|
| 41 |
+
`config.status' that you can run in the future to recreate the
|
| 42 |
+
current configuration, a file `config.cache' that saves the
|
| 43 |
+
results of its tests to speed up reconfiguring, and a file
|
| 44 |
+
`config.log' containing compiler output (useful mainly for
|
| 45 |
+
debugging `configure').
|
| 46 |
+
|
| 47 |
+
If you need to do unusual things to compile readline, please try
|
| 48 |
+
to figure out how `configure' could check whether to do them, and
|
| 49 |
+
mail diffs or instructions to <bug-readline@gnu.org> so they can
|
| 50 |
+
be considered for the next release. If at some point
|
| 51 |
+
`config.cache' contains results you don't want to keep, you may
|
| 52 |
+
remove or edit it.
|
| 53 |
+
|
| 54 |
+
The file `configure.in' is used to create `configure' by a
|
| 55 |
+
program called `autoconf'. You only need `configure.in' if you
|
| 56 |
+
want to change it or regenerate `configure' using a newer version
|
| 57 |
+
of `autoconf'. The readline `configure.in' requires autoconf
|
| 58 |
+
version 2.69 or newer.
|
| 59 |
+
|
| 60 |
+
Compilers and Options
|
| 61 |
+
=====================
|
| 62 |
+
|
| 63 |
+
Some systems require unusual options for compilation or linking that
|
| 64 |
+
the `configure' script does not know about. You can give `configure'
|
| 65 |
+
initial values for variables by setting them in the environment. Using
|
| 66 |
+
a Bourne-compatible shell, you can do that on the command line like
|
| 67 |
+
this:
|
| 68 |
+
|
| 69 |
+
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
| 70 |
+
|
| 71 |
+
Or on systems that have the `env' program, you can do it like this:
|
| 72 |
+
|
| 73 |
+
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
|
| 74 |
+
|
| 75 |
+
Compiling For Multiple Architectures
|
| 76 |
+
====================================
|
| 77 |
+
|
| 78 |
+
You can compile readline for more than one kind of computer at the
|
| 79 |
+
same time, by placing the object files for each architecture in their
|
| 80 |
+
own directory. To do this, you must use a version of `make' that
|
| 81 |
+
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
| 82 |
+
directory where you want the object files and executables to go and run
|
| 83 |
+
the `configure' script. `configure' automatically checks for the
|
| 84 |
+
source code in the directory that `configure' is in and in `..'.
|
| 85 |
+
|
| 86 |
+
If you have to use a `make' that does not supports the `VPATH'
|
| 87 |
+
variable, you have to compile readline for one architecture at a
|
| 88 |
+
time in the source code directory. After you have installed
|
| 89 |
+
readline for one architecture, use `make distclean' before
|
| 90 |
+
reconfiguring for another architecture.
|
| 91 |
+
|
| 92 |
+
Installation Names
|
| 93 |
+
==================
|
| 94 |
+
|
| 95 |
+
By default, `make install' will install the readline libraries in
|
| 96 |
+
`/usr/local/lib', the include files in
|
| 97 |
+
`/usr/local/include/readline', the man pages in `/usr/local/man',
|
| 98 |
+
and the info files in `/usr/local/info'. You can specify an
|
| 99 |
+
installation prefix other than `/usr/local' by giving `configure'
|
| 100 |
+
the option `--prefix=PATH' or by supplying a value for the
|
| 101 |
+
DESTDIR variable when running `make install'.
|
| 102 |
+
|
| 103 |
+
You can specify separate installation prefixes for
|
| 104 |
+
architecture-specific files and architecture-independent files.
|
| 105 |
+
If you give `configure' the option `--exec-prefix=PATH', the
|
| 106 |
+
readline Makefiles will use PATH as the prefix for installing the
|
| 107 |
+
libraries. Documentation and other data files will still use the
|
| 108 |
+
regular prefix.
|
| 109 |
+
|
| 110 |
+
Specifying the System Type
|
| 111 |
+
==========================
|
| 112 |
+
|
| 113 |
+
There may be some features `configure' can not figure out
|
| 114 |
+
automatically, but need to determine by the type of host readline
|
| 115 |
+
will run on. Usually `configure' can figure that out, but if it
|
| 116 |
+
prints a message saying it can not guess the host type, give it
|
| 117 |
+
the `--host=TYPE' option. TYPE can either be a short name for
|
| 118 |
+
the system type, such as `sun4', or a canonical name with three
|
| 119 |
+
fields: CPU-COMPANY-SYSTEM (e.g., i386-unknown-freebsd4.2).
|
| 120 |
+
|
| 121 |
+
See the file `config.sub' for the possible values of each field.
|
| 122 |
+
|
| 123 |
+
Sharing Defaults
|
| 124 |
+
================
|
| 125 |
+
|
| 126 |
+
If you want to set default values for `configure' scripts to share,
|
| 127 |
+
you can create a site shell script called `config.site' that gives
|
| 128 |
+
default values for variables like `CC', `cache_file', and `prefix'.
|
| 129 |
+
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
| 130 |
+
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
| 131 |
+
`CONFIG_SITE' environment variable to the location of the site script.
|
| 132 |
+
A warning: the readline `configure' looks for a site script, but not
|
| 133 |
+
all `configure' scripts do.
|
| 134 |
+
|
| 135 |
+
Operation Controls
|
| 136 |
+
==================
|
| 137 |
+
|
| 138 |
+
`configure' recognizes the following options to control how it
|
| 139 |
+
operates.
|
| 140 |
+
|
| 141 |
+
`--cache-file=FILE'
|
| 142 |
+
Use and save the results of the tests in FILE instead of
|
| 143 |
+
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
|
| 144 |
+
debugging `configure'.
|
| 145 |
+
|
| 146 |
+
`--help'
|
| 147 |
+
Print a summary of the options to `configure', and exit.
|
| 148 |
+
|
| 149 |
+
`--quiet'
|
| 150 |
+
`--silent'
|
| 151 |
+
`-q'
|
| 152 |
+
Do not print messages saying which checks are being made.
|
| 153 |
+
|
| 154 |
+
`--srcdir=DIR'
|
| 155 |
+
Look for the package's source code in directory DIR. Usually
|
| 156 |
+
`configure' can determine that directory automatically.
|
| 157 |
+
|
| 158 |
+
`--version'
|
| 159 |
+
Print the version of Autoconf used to generate the `configure'
|
| 160 |
+
script, and exit.
|
| 161 |
+
|
| 162 |
+
`configure' also accepts some other, not widely useful, options.
|
| 163 |
+
|
| 164 |
+
Optional Features
|
| 165 |
+
=================
|
| 166 |
+
|
| 167 |
+
The readline `configure' recognizes two `--with-PACKAGE' options:
|
| 168 |
+
|
| 169 |
+
`--with-curses'
|
| 170 |
+
This tells readline that it can find the termcap library functions
|
| 171 |
+
(tgetent, et al.) in the curses library, rather than a separate
|
| 172 |
+
termcap library. Readline uses the termcap functions, but does not
|
| 173 |
+
usually link with the termcap or curses library itself, allowing
|
| 174 |
+
applications which link with readline the to choose an appropriate
|
| 175 |
+
library. This option tells readline to link the example programs with
|
| 176 |
+
the curses library rather than libtermcap.
|
| 177 |
+
|
| 178 |
+
`--with-shared-termcap-library'
|
| 179 |
+
This tells the readline build process to link the shared version of
|
| 180 |
+
libreadline against a shared version of the curses or termcap library
|
| 181 |
+
(see the description of SHLIB_LIBS below under `Shared Libraries').
|
| 182 |
+
This relieves the application of having to link with curses or termcap
|
| 183 |
+
itself, but does not allow the application to choose which library to
|
| 184 |
+
use. This is only effective on systems that build shared libraries (see
|
| 185 |
+
below; the default for shared libraries is `yes').
|
| 186 |
+
|
| 187 |
+
`configure' also recognizes several `--enable-FEATURE' options:
|
| 188 |
+
|
| 189 |
+
`--enable-bracketed-paste-default'
|
| 190 |
+
Enable bracketed paste by default, so the initial value of the
|
| 191 |
+
`enable-bracketed-paste' Readline variable is `on'. The default
|
| 192 |
+
is `yes'.
|
| 193 |
+
|
| 194 |
+
`--enable-install-examples'
|
| 195 |
+
Install the readline example programs as part of `make install'.
|
| 196 |
+
|
| 197 |
+
`--enable-multibyte'
|
| 198 |
+
Build with support for multibyte characters enabled on systems with the
|
| 199 |
+
necessary framework (locale definitions, C library functions, etc.). The
|
| 200 |
+
default is `yes'.
|
| 201 |
+
|
| 202 |
+
`--enable-shared'
|
| 203 |
+
Build the shared libraries by default on supported platforms. The
|
| 204 |
+
default is `yes'.
|
| 205 |
+
|
| 206 |
+
`--enable-static'
|
| 207 |
+
Build the static libraries by default. The default is `yes'.
|
| 208 |
+
|
| 209 |
+
Shared Libraries
|
| 210 |
+
================
|
| 211 |
+
|
| 212 |
+
There is support for building shared versions of the readline and
|
| 213 |
+
history libraries. The configure script creates a Makefile in
|
| 214 |
+
the `shlib' subdirectory, and typing `make shared' will cause
|
| 215 |
+
shared versions of the readline and history libraries to be built
|
| 216 |
+
on supported platforms.
|
| 217 |
+
|
| 218 |
+
If `configure' is given the `--enable-shared' option, it will attempt
|
| 219 |
+
to build the shared libraries by default on supported platforms. This
|
| 220 |
+
option is enabled by default.
|
| 221 |
+
|
| 222 |
+
Configure calls the script support/shobj-conf to test whether or
|
| 223 |
+
not shared library creation is supported and to generate the values
|
| 224 |
+
of variables that are substituted into shlib/Makefile. If you
|
| 225 |
+
try to build shared libraries on an unsupported platform, `make'
|
| 226 |
+
will display a message asking you to update support/shobj-conf for
|
| 227 |
+
your platform.
|
| 228 |
+
|
| 229 |
+
If you need to update support/shobj-conf, you will need to create
|
| 230 |
+
a `stanza' for your operating system and compiler. The script uses
|
| 231 |
+
the value of host_os and ${CC} as determined by configure. For
|
| 232 |
+
instance, FreeBSD 4.2 with any version of gcc is identified as
|
| 233 |
+
`freebsd4.2-gcc*'.
|
| 234 |
+
|
| 235 |
+
In the stanza for your operating system-compiler pair, you will need to
|
| 236 |
+
define several variables. They are:
|
| 237 |
+
|
| 238 |
+
SHOBJ_CC The C compiler used to compile source files into shareable
|
| 239 |
+
object files. This is normally set to the value of ${CC}
|
| 240 |
+
by configure, and should not need to be changed.
|
| 241 |
+
|
| 242 |
+
SHOBJ_CFLAGS Flags to pass to the C compiler ($SHOBJ_CC) to create
|
| 243 |
+
position-independent code. If you are using gcc, this
|
| 244 |
+
should probably be set to `-fpic'.
|
| 245 |
+
|
| 246 |
+
SHOBJ_LD The link editor to be used to create the shared library from
|
| 247 |
+
the object files created by $SHOBJ_CC. If you are using
|
| 248 |
+
gcc, a value of `gcc' will probably work.
|
| 249 |
+
|
| 250 |
+
SHOBJ_LDFLAGS Flags to pass to SHOBJ_LD to enable shared object creation.
|
| 251 |
+
If you are using gcc, `-shared' may be all that is necessary.
|
| 252 |
+
These should be the flags needed for generic shared object
|
| 253 |
+
creation.
|
| 254 |
+
|
| 255 |
+
SHLIB_XLDFLAGS Additional flags to pass to SHOBJ_LD for shared library
|
| 256 |
+
creation. Many systems use the -R option to the link
|
| 257 |
+
editor to embed a path within the library for run-time
|
| 258 |
+
library searches. A reasonable value for such systems would
|
| 259 |
+
be `-R$(libdir)'.
|
| 260 |
+
|
| 261 |
+
SHLIB_LIBS Any additional libraries that shared libraries should be
|
| 262 |
+
linked against when they are created.
|
| 263 |
+
|
| 264 |
+
SHLIB_LIBPREF The prefix to use when generating the filename of the shared
|
| 265 |
+
library. The default is `lib'; Cygwin uses `cyg'.
|
| 266 |
+
|
| 267 |
+
SHLIB_LIBSUFF The suffix to add to `libreadline' and `libhistory' when
|
| 268 |
+
generating the filename of the shared library. Many systems
|
| 269 |
+
use `so'; HP-UX uses `sl'.
|
| 270 |
+
|
| 271 |
+
SHLIB_LIBVERSION The string to append to the filename to indicate the version
|
| 272 |
+
of the shared library. It should begin with $(SHLIB_LIBSUFF),
|
| 273 |
+
and possibly include version information that allows the
|
| 274 |
+
run-time loader to load the version of the shared library
|
| 275 |
+
appropriate for a particular program. Systems using shared
|
| 276 |
+
libraries similar to SunOS 4.x use major and minor library
|
| 277 |
+
version numbers; for those systems a value of
|
| 278 |
+
`$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate.
|
| 279 |
+
Systems based on System V Release 4 don't use minor version
|
| 280 |
+
numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems.
|
| 281 |
+
Other Unix versions use different schemes.
|
| 282 |
+
|
| 283 |
+
SHLIB_DLLVERSION The version number for shared libraries that determines API
|
| 284 |
+
compatibility between readline versions and the underlying
|
| 285 |
+
system. Used only on Cygwin. Defaults to $SHLIB_MAJOR, but
|
| 286 |
+
can be overridden at configuration time by defining DLLVERSION
|
| 287 |
+
in the environment.
|
| 288 |
+
|
| 289 |
+
SHLIB_DOT The character used to separate the name of the shared library
|
| 290 |
+
from the suffix and version information. The default is `.';
|
| 291 |
+
systems like Cygwin which don't separate version information
|
| 292 |
+
from the library name should set this to the empty string.
|
| 293 |
+
|
| 294 |
+
SHLIB_STATUS Set this to `supported' when you have defined the other
|
| 295 |
+
necessary variables. Make uses this to determine whether
|
| 296 |
+
or not shared library creation should be attempted. If
|
| 297 |
+
shared libraries are not supported, this will be set to
|
| 298 |
+
`unsupported'.
|
| 299 |
+
|
| 300 |
+
You should look at the existing stanzas in support/shobj-conf for ideas.
|
| 301 |
+
|
| 302 |
+
Once you have updated support/shobj-conf, re-run configure and type
|
| 303 |
+
`make shared' or `make'. The shared libraries will be created in the
|
| 304 |
+
shlib subdirectory.
|
| 305 |
+
|
| 306 |
+
If shared libraries are created, `make install' will install them.
|
| 307 |
+
You may install only the shared libraries by running `make
|
| 308 |
+
install-shared' from the top-level build directory. Running `make
|
| 309 |
+
install' in the shlib subdirectory will also work. If you don't want
|
| 310 |
+
to install any created shared libraries, run `make install-static'.
|
llava_next/share/doc/readline/README
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Introduction
|
| 2 |
+
============
|
| 3 |
+
|
| 4 |
+
This is the Gnu Readline library, version 8.2.
|
| 5 |
+
|
| 6 |
+
The Readline library provides a set of functions for use by applications
|
| 7 |
+
that allow users to edit command lines as they are typed in. Both
|
| 8 |
+
Emacs and vi editing modes are available. The Readline library includes
|
| 9 |
+
additional functions to maintain a list of previously-entered command
|
| 10 |
+
lines, to recall and perhaps reedit those lines, and perform csh-like
|
| 11 |
+
history expansion on previous commands.
|
| 12 |
+
|
| 13 |
+
The history facilities are also placed into a separate library, the
|
| 14 |
+
History library, as part of the build process. The History library
|
| 15 |
+
may be used without Readline in applications which desire its
|
| 16 |
+
capabilities.
|
| 17 |
+
|
| 18 |
+
The Readline library is free software, distributed under the terms of
|
| 19 |
+
the [GNU] General Public License as published by the Free Software
|
| 20 |
+
Foundation, version 3 of the License. For more information, see the
|
| 21 |
+
file COPYING.
|
| 22 |
+
|
| 23 |
+
To build the library, try typing `./configure', then `make'. The
|
| 24 |
+
configuration process is automated, so no further intervention should
|
| 25 |
+
be necessary. Readline builds with `gcc' by default if it is
|
| 26 |
+
available. If you want to use `cc' instead, type
|
| 27 |
+
|
| 28 |
+
CC=cc ./configure
|
| 29 |
+
|
| 30 |
+
if you are using a Bourne-style shell. If you are not, the following
|
| 31 |
+
may work:
|
| 32 |
+
|
| 33 |
+
env CC=cc ./configure
|
| 34 |
+
|
| 35 |
+
Read the file INSTALL in this directory for more information about how
|
| 36 |
+
to customize and control the build process.
|
| 37 |
+
|
| 38 |
+
The file rlconf.h contains C preprocessor defines that enable and disable
|
| 39 |
+
certain Readline features.
|
| 40 |
+
|
| 41 |
+
The special make target `everything' will build the static and shared
|
| 42 |
+
libraries (if the target platform supports them) and the examples.
|
| 43 |
+
|
| 44 |
+
Examples
|
| 45 |
+
========
|
| 46 |
+
|
| 47 |
+
There are several example programs that use Readline features in the
|
| 48 |
+
examples directory. The `rl' program is of particular interest. It
|
| 49 |
+
is a command-line interface to Readline, suitable for use in shell
|
| 50 |
+
scripts in place of `read'.
|
| 51 |
+
|
| 52 |
+
Shared Libraries
|
| 53 |
+
================
|
| 54 |
+
|
| 55 |
+
There is skeletal support for building shared versions of the
|
| 56 |
+
Readline and History libraries. The configure script creates
|
| 57 |
+
a Makefile in the `shlib' subdirectory, and typing `make shared'
|
| 58 |
+
will cause shared versions of the Readline and History libraries
|
| 59 |
+
to be built on supported platforms.
|
| 60 |
+
|
| 61 |
+
If `configure' is given the `--enable-shared' option, it will attempt
|
| 62 |
+
to build the shared libraries by default on supported platforms.
|
| 63 |
+
|
| 64 |
+
Configure calls the script support/shobj-conf to test whether or
|
| 65 |
+
not shared library creation is supported and to generate the values
|
| 66 |
+
of variables that are substituted into shlib/Makefile. If you
|
| 67 |
+
try to build shared libraries on an unsupported platform, `make'
|
| 68 |
+
will display a message asking you to update support/shobj-conf for
|
| 69 |
+
your platform.
|
| 70 |
+
|
| 71 |
+
If you need to update support/shobj-conf, you will need to create
|
| 72 |
+
a `stanza' for your operating system and compiler. The script uses
|
| 73 |
+
the value of host_os and ${CC} as determined by configure. For
|
| 74 |
+
instance, FreeBSD 4.2 with any version of gcc is identified as
|
| 75 |
+
`freebsd4.2-gcc*'.
|
| 76 |
+
|
| 77 |
+
In the stanza for your operating system-compiler pair, you will need to
|
| 78 |
+
define several variables. They are:
|
| 79 |
+
|
| 80 |
+
SHOBJ_CC The C compiler used to compile source files into shareable
|
| 81 |
+
object files. This is normally set to the value of ${CC}
|
| 82 |
+
by configure, and should not need to be changed.
|
| 83 |
+
|
| 84 |
+
SHOBJ_CFLAGS Flags to pass to the C compiler ($SHOBJ_CC) to create
|
| 85 |
+
position-independent code. If you are using gcc, this
|
| 86 |
+
should probably be set to `-fpic'.
|
| 87 |
+
|
| 88 |
+
SHOBJ_LD The link editor to be used to create the shared library from
|
| 89 |
+
the object files created by $SHOBJ_CC. If you are using
|
| 90 |
+
gcc, a value of `gcc' will probably work.
|
| 91 |
+
|
| 92 |
+
SHOBJ_LDFLAGS Flags to pass to SHOBJ_LD to enable shared object creation.
|
| 93 |
+
If you are using gcc, `-shared' may be all that is necessary.
|
| 94 |
+
These should be the flags needed for generic shared object
|
| 95 |
+
creation.
|
| 96 |
+
|
| 97 |
+
SHLIB_XLDFLAGS Additional flags to pass to SHOBJ_LD for shared library
|
| 98 |
+
creation. Many systems use the -R option to the link
|
| 99 |
+
editor to embed a path within the library for run-time
|
| 100 |
+
library searches. A reasonable value for such systems would
|
| 101 |
+
be `-R$(libdir)'.
|
| 102 |
+
|
| 103 |
+
SHLIB_LIBS Any additional libraries that shared libraries should be
|
| 104 |
+
linked against when they are created.
|
| 105 |
+
|
| 106 |
+
SHLIB_LIBPREF The prefix to use when generating the filename of the shared
|
| 107 |
+
library. The default is `lib'; Cygwin uses `cyg'.
|
| 108 |
+
|
| 109 |
+
SHLIB_LIBSUFF The suffix to add to `libreadline' and `libhistory' when
|
| 110 |
+
generating the filename of the shared library. Many systems
|
| 111 |
+
use `so'; HP-UX uses `sl'.
|
| 112 |
+
|
| 113 |
+
SHLIB_LIBVERSION The string to append to the filename to indicate the version
|
| 114 |
+
of the shared library. It should begin with $(SHLIB_LIBSUFF),
|
| 115 |
+
and possibly include version information that allows the
|
| 116 |
+
run-time loader to load the version of the shared library
|
| 117 |
+
appropriate for a particular program. Systems using shared
|
| 118 |
+
libraries similar to SunOS 4.x use major and minor library
|
| 119 |
+
version numbers; for those systems a value of
|
| 120 |
+
`$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' is appropriate.
|
| 121 |
+
Systems based on System V Release 4 don't use minor version
|
| 122 |
+
numbers; use `$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)' on those systems.
|
| 123 |
+
Other Unix versions use different schemes.
|
| 124 |
+
|
| 125 |
+
SHLIB_DLLVERSION The version number for shared libraries that determines API
|
| 126 |
+
compatibility between readline versions and the underlying
|
| 127 |
+
system. Used only on Cygwin. Defaults to $SHLIB_MAJOR, but
|
| 128 |
+
can be overridden at configuration time by defining DLLVERSION
|
| 129 |
+
in the environment.
|
| 130 |
+
|
| 131 |
+
SHLIB_DOT The character used to separate the name of the shared library
|
| 132 |
+
from the suffix and version information. The default is `.';
|
| 133 |
+
systems like Cygwin which don't separate version information
|
| 134 |
+
from the library name should set this to the empty string.
|
| 135 |
+
|
| 136 |
+
SHLIB_STATUS Set this to `supported' when you have defined the other
|
| 137 |
+
necessary variables. Make uses this to determine whether
|
| 138 |
+
or not shared library creation should be attempted.
|
| 139 |
+
|
| 140 |
+
You should look at the existing stanzas in support/shobj-conf for ideas.
|
| 141 |
+
|
| 142 |
+
Once you have updated support/shobj-conf, re-run configure and type
|
| 143 |
+
`make shared'. The shared libraries will be created in the shlib
|
| 144 |
+
subdirectory.
|
| 145 |
+
|
| 146 |
+
If shared libraries are created, `make install' will install them.
|
| 147 |
+
You may install only the shared libraries by running `make
|
| 148 |
+
install-shared' from the top-level build directory. Running `make
|
| 149 |
+
install' in the shlib subdirectory will also work. If you don't want
|
| 150 |
+
to install any created shared libraries, run `make install-static'.
|
| 151 |
+
|
| 152 |
+
Documentation
|
| 153 |
+
=============
|
| 154 |
+
|
| 155 |
+
The documentation for the Readline and History libraries appears in
|
| 156 |
+
the `doc' subdirectory. There are three texinfo files and a
|
| 157 |
+
Unix-style manual page describing the facilities available in the
|
| 158 |
+
Readline library. The texinfo files include both user and
|
| 159 |
+
programmer's manuals. HTML versions of the manuals appear in the
|
| 160 |
+
`doc' subdirectory as well.
|
| 161 |
+
|
| 162 |
+
Usage
|
| 163 |
+
=====
|
| 164 |
+
|
| 165 |
+
Our position on the use of Readline through a shared-library linking
|
| 166 |
+
mechanism is that there is no legal difference between shared-library
|
| 167 |
+
linking and static linking--either kind of linking combines various
|
| 168 |
+
modules into a single larger work. The conditions for using Readline
|
| 169 |
+
in a larger work are stated in section 3 of the GNU GPL.
|
| 170 |
+
|
| 171 |
+
Reporting Bugs
|
| 172 |
+
==============
|
| 173 |
+
|
| 174 |
+
Bug reports for Readline should be sent to:
|
| 175 |
+
|
| 176 |
+
bug-readline@gnu.org
|
| 177 |
+
|
| 178 |
+
When reporting a bug, please include the following information:
|
| 179 |
+
|
| 180 |
+
* the version number and release status of Readline (e.g., 4.2-release)
|
| 181 |
+
* the machine and OS that it is running on
|
| 182 |
+
* a list of the compilation flags or the contents of `config.h', if
|
| 183 |
+
appropriate
|
| 184 |
+
* a description of the bug
|
| 185 |
+
* a recipe for recreating the bug reliably
|
| 186 |
+
* a fix for the bug if you have one!
|
| 187 |
+
|
| 188 |
+
If you would like to contact the Readline maintainer directly, send mail
|
| 189 |
+
to bash-maintainers@gnu.org.
|
| 190 |
+
|
| 191 |
+
Since Readline is developed along with bash, the bug-bash@gnu.org mailing
|
| 192 |
+
list (mirrored to the Usenet newsgroup gnu.bash.bug) often contains
|
| 193 |
+
Readline bug reports and fixes.
|
| 194 |
+
|
| 195 |
+
Chet Ramey
|
| 196 |
+
chet.ramey@case.edu
|
llava_next/share/doc/xz/AUTHORS
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Authors of XZ Utils
|
| 3 |
+
===================
|
| 4 |
+
|
| 5 |
+
XZ Utils is developed and maintained by
|
| 6 |
+
Lasse Collin <lasse.collin@tukaani.org>.
|
| 7 |
+
|
| 8 |
+
Major parts of liblzma are based on code written by Igor Pavlov,
|
| 9 |
+
specifically the LZMA SDK <https://7-zip.org/sdk.html>. Without
|
| 10 |
+
this code, XZ Utils wouldn't exist.
|
| 11 |
+
|
| 12 |
+
The SHA-256 implementation in liblzma is based on code written by
|
| 13 |
+
Wei Dai in Crypto++ Library <https://www.cryptopp.com/>.
|
| 14 |
+
|
| 15 |
+
A few scripts have been adapted from GNU gzip. The original
|
| 16 |
+
versions were written by Jean-loup Gailly, Charles Levert, and
|
| 17 |
+
Paul Eggert. Andrew Dudman helped adapting the scripts and their
|
| 18 |
+
man pages for XZ Utils.
|
| 19 |
+
|
| 20 |
+
The initial version of the threaded .xz decompressor was written
|
| 21 |
+
by Sebastian Andrzej Siewior.
|
| 22 |
+
|
| 23 |
+
The initial version of the .lz (lzip) decoder was written
|
| 24 |
+
by Michał Górny.
|
| 25 |
+
|
| 26 |
+
Architecture-specific CRC optimizations were contributed by
|
| 27 |
+
Ilya Kurdyukov, Hans Jansen, and Chenxi Mao.
|
| 28 |
+
|
| 29 |
+
Other authors:
|
| 30 |
+
- Jonathan Nieder
|
| 31 |
+
- Joachim Henke
|
| 32 |
+
|
| 33 |
+
Special author: Jia Tan was a co-maintainer in 2022-2024. He and
|
| 34 |
+
the team behind him inserted a backdoor (CVE-2024-3094) into
|
| 35 |
+
XZ Utils 5.6.0 and 5.6.1 releases. He suddenly disappeared when
|
| 36 |
+
this was discovered.
|
| 37 |
+
|
| 38 |
+
Many people have contributed improvements or reported bugs.
|
| 39 |
+
Most of these people are mentioned in the file THANKS.
|
| 40 |
+
|
| 41 |
+
The translations of the command line tools and man pages have been
|
| 42 |
+
contributed by many people via the Translation Project:
|
| 43 |
+
|
| 44 |
+
- https://translationproject.org/domain/xz.html
|
| 45 |
+
- https://translationproject.org/domain/xz-man.html
|
| 46 |
+
|
| 47 |
+
The authors of the translated man pages are in the header comments
|
| 48 |
+
of the man page files. In the source package, the authors of the
|
| 49 |
+
translations are in po/*.po and po4a/*.po files.
|
| 50 |
+
|
| 51 |
+
Third-party code whose authors aren't listed here:
|
| 52 |
+
|
| 53 |
+
- GNU getopt_long() in the 'lib' directory is included for
|
| 54 |
+
platforms that don't have a usable getopt_long().
|
| 55 |
+
|
| 56 |
+
- The build system files from GNU Autoconf, GNU Automake,
|
| 57 |
+
GNU Libtool, GNU Gettext, Autoconf Archive, and related files.
|
| 58 |
+
|
llava_next/share/doc/xz/COPYING
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
XZ Utils Licensing
|
| 3 |
+
==================
|
| 4 |
+
|
| 5 |
+
Different licenses apply to different files in this package. Here
|
| 6 |
+
is a summary of which licenses apply to which parts of this package:
|
| 7 |
+
|
| 8 |
+
- liblzma is under the BSD Zero Clause License (0BSD).
|
| 9 |
+
|
| 10 |
+
- The command line tools xz, xzdec, lzmadec, and lzmainfo are
|
| 11 |
+
under 0BSD except that, on systems that don't have a usable
|
| 12 |
+
getopt_long, GNU getopt_long is compiled and linked in from the
|
| 13 |
+
'lib' directory. The getopt_long code is under GNU LGPLv2.1+.
|
| 14 |
+
|
| 15 |
+
- The scripts to grep, diff, and view compressed files have been
|
| 16 |
+
adapted from GNU gzip. These scripts (xzgrep, xzdiff, xzless,
|
| 17 |
+
and xzmore) are under GNU GPLv2+. The man pages of the scripts
|
| 18 |
+
are under 0BSD; they aren't based on the man pages of GNU gzip.
|
| 19 |
+
|
| 20 |
+
- Most of the XZ Utils specific documentation that is in
|
| 21 |
+
plain text files (like README, INSTALL, PACKAGERS, NEWS,
|
| 22 |
+
and ChangeLog) are under 0BSD unless stated otherwise in
|
| 23 |
+
the file itself. The files xz-file-format.txt and
|
| 24 |
+
lzma-file-format.xt are in the public domain but may
|
| 25 |
+
be distributed under the terms of 0BSD too.
|
| 26 |
+
|
| 27 |
+
- Translated messages and man pages are under 0BSD except that
|
| 28 |
+
some old translations are in the public domain.
|
| 29 |
+
|
| 30 |
+
- Test files and test code in the 'tests' directory, and
|
| 31 |
+
debugging utilities in the 'debug' directory are under
|
| 32 |
+
the BSD Zero Clause License (0BSD).
|
| 33 |
+
|
| 34 |
+
- The GNU Autotools based build system contains files that are
|
| 35 |
+
under GNU GPLv2+, GNU GPLv3+, and a few permissive licenses.
|
| 36 |
+
These files don't affect the licensing of the binaries being
|
| 37 |
+
built.
|
| 38 |
+
|
| 39 |
+
- The 'extra' directory contains files that are under various
|
| 40 |
+
free software licenses. These aren't built or installed as
|
| 41 |
+
part of XZ Utils.
|
| 42 |
+
|
| 43 |
+
For the files under the BSD Zero Clause License (0BSD), if
|
| 44 |
+
a copyright notice is needed, the following is sufficient:
|
| 45 |
+
|
| 46 |
+
Copyright (C) The XZ Utils authors and contributors
|
| 47 |
+
|
| 48 |
+
If you copy significant amounts of 0BSD-licensed code from XZ Utils
|
| 49 |
+
into your project, acknowledging this somewhere in your software is
|
| 50 |
+
polite (especially if it is proprietary, non-free software), but
|
| 51 |
+
it is not legally required by the license terms. Here is an example
|
| 52 |
+
of a good notice to put into "about box" or into documentation:
|
| 53 |
+
|
| 54 |
+
This software includes code from XZ Utils <https://tukaani.org/xz/>.
|
| 55 |
+
|
| 56 |
+
The following license texts are included in the following files:
|
| 57 |
+
- COPYING.0BSD: BSD Zero Clause License
|
| 58 |
+
- COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
|
| 59 |
+
- COPYING.GPLv2: GNU General Public License version 2
|
| 60 |
+
- COPYING.GPLv3: GNU General Public License version 3
|
| 61 |
+
|
| 62 |
+
A note about old XZ Utils releases:
|
| 63 |
+
|
| 64 |
+
XZ Utils releases 5.4.6 and older and 5.5.1alpha have a
|
| 65 |
+
significant amount of code put into the public domain and
|
| 66 |
+
that obviously remains so. The switch from public domain to
|
| 67 |
+
0BSD for newer releases was made in Febrary 2024 because
|
| 68 |
+
public domain has (real or perceived) legal ambiguities in
|
| 69 |
+
some jurisdictions.
|
| 70 |
+
|
| 71 |
+
There is very little *practical* difference between public
|
| 72 |
+
domain and 0BSD. The main difference likely is that one
|
| 73 |
+
shouldn't claim that 0BSD-licensed code is in the public
|
| 74 |
+
domain; 0BSD-licensed code is copyrighted but available under
|
| 75 |
+
an extremely permissive license. Neither 0BSD nor public domain
|
| 76 |
+
require retaining or reproducing author, copyright holder, or
|
| 77 |
+
license notices when distributing the software. (Compare to,
|
| 78 |
+
for example, BSD 2-Clause "Simplified" License which does have
|
| 79 |
+
such requirements.)
|
| 80 |
+
|
| 81 |
+
If you have questions, don't hesitate to ask for more information.
|
| 82 |
+
The contact information is in the README file.
|
| 83 |
+
|
llava_next/share/doc/xz/COPYING.0BSD
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Permission to use, copy, modify, and/or distribute this
|
| 2 |
+
software for any purpose with or without fee is hereby granted.
|
| 3 |
+
|
| 4 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
| 5 |
+
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
| 6 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
|
| 7 |
+
THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
|
| 8 |
+
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
| 9 |
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
| 10 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
GNU GENERAL PUBLIC LICENSE
|
| 2 |
+
Version 2, June 1991
|
| 3 |
+
|
| 4 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
| 5 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
| 6 |
+
Everyone is permitted to copy and distribute verbatim copies
|
| 7 |
+
of this license document, but changing it is not allowed.
|
| 8 |
+
|
| 9 |
+
Preamble
|
| 10 |
+
|
| 11 |
+
The licenses for most software are designed to take away your
|
| 12 |
+
freedom to share and change it. By contrast, the GNU General Public
|
| 13 |
+
License is intended to guarantee your freedom to share and change free
|
| 14 |
+
software--to make sure the software is free for all its users. This
|
| 15 |
+
General Public License applies to most of the Free Software
|
| 16 |
+
Foundation's software and to any other program whose authors commit to
|
| 17 |
+
using it. (Some other Free Software Foundation software is covered by
|
| 18 |
+
the GNU Lesser General Public License instead.) You can apply it to
|
| 19 |
+
your programs, too.
|
| 20 |
+
|
| 21 |
+
When we speak of free software, we are referring to freedom, not
|
| 22 |
+
price. Our General Public Licenses are designed to make sure that you
|
| 23 |
+
have the freedom to distribute copies of free software (and charge for
|
| 24 |
+
this service if you wish), that you receive source code or can get it
|
| 25 |
+
if you want it, that you can change the software or use pieces of it
|
| 26 |
+
in new free programs; and that you know you can do these things.
|
| 27 |
+
|
| 28 |
+
To protect your rights, we need to make restrictions that forbid
|
| 29 |
+
anyone to deny you these rights or to ask you to surrender the rights.
|
| 30 |
+
These restrictions translate to certain responsibilities for you if you
|
| 31 |
+
distribute copies of the software, or if you modify it.
|
| 32 |
+
|
| 33 |
+
For example, if you distribute copies of such a program, whether
|
| 34 |
+
gratis or for a fee, you must give the recipients all the rights that
|
| 35 |
+
you have. You must make sure that they, too, receive or can get the
|
| 36 |
+
source code. And you must show them these terms so they know their
|
| 37 |
+
rights.
|
| 38 |
+
|
| 39 |
+
We protect your rights with two steps: (1) copyright the software, and
|
| 40 |
+
(2) offer you this license which gives you legal permission to copy,
|
| 41 |
+
distribute and/or modify the software.
|
| 42 |
+
|
| 43 |
+
Also, for each author's protection and ours, we want to make certain
|
| 44 |
+
that everyone understands that there is no warranty for this free
|
| 45 |
+
software. If the software is modified by someone else and passed on, we
|
| 46 |
+
want its recipients to know that what they have is not the original, so
|
| 47 |
+
that any problems introduced by others will not reflect on the original
|
| 48 |
+
authors' reputations.
|
| 49 |
+
|
| 50 |
+
Finally, any free program is threatened constantly by software
|
| 51 |
+
patents. We wish to avoid the danger that redistributors of a free
|
| 52 |
+
program will individually obtain patent licenses, in effect making the
|
| 53 |
+
program proprietary. To prevent this, we have made it clear that any
|
| 54 |
+
patent must be licensed for everyone's free use or not licensed at all.
|
| 55 |
+
|
| 56 |
+
The precise terms and conditions for copying, distribution and
|
| 57 |
+
modification follow.
|
| 58 |
+
|
| 59 |
+
GNU GENERAL PUBLIC LICENSE
|
| 60 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
| 61 |
+
|
| 62 |
+
0. This License applies to any program or other work which contains
|
| 63 |
+
a notice placed by the copyright holder saying it may be distributed
|
| 64 |
+
under the terms of this General Public License. The "Program", below,
|
| 65 |
+
refers to any such program or work, and a "work based on the Program"
|
| 66 |
+
means either the Program or any derivative work under copyright law:
|
| 67 |
+
that is to say, a work containing the Program or a portion of it,
|
| 68 |
+
either verbatim or with modifications and/or translated into another
|
| 69 |
+
language. (Hereinafter, translation is included without limitation in
|
| 70 |
+
the term "modification".) Each licensee is addressed as "you".
|
| 71 |
+
|
| 72 |
+
Activities other than copying, distribution and modification are not
|
| 73 |
+
covered by this License; they are outside its scope. The act of
|
| 74 |
+
running the Program is not restricted, and the output from the Program
|
| 75 |
+
is covered only if its contents constitute a work based on the
|
| 76 |
+
Program (independent of having been made by running the Program).
|
| 77 |
+
Whether that is true depends on what the Program does.
|
| 78 |
+
|
| 79 |
+
1. You may copy and distribute verbatim copies of the Program's
|
| 80 |
+
source code as you receive it, in any medium, provided that you
|
| 81 |
+
conspicuously and appropriately publish on each copy an appropriate
|
| 82 |
+
copyright notice and disclaimer of warranty; keep intact all the
|
| 83 |
+
notices that refer to this License and to the absence of any warranty;
|
| 84 |
+
and give any other recipients of the Program a copy of this License
|
| 85 |
+
along with the Program.
|
| 86 |
+
|
| 87 |
+
You may charge a fee for the physical act of transferring a copy, and
|
| 88 |
+
you may at your option offer warranty protection in exchange for a fee.
|
| 89 |
+
|
| 90 |
+
2. You may modify your copy or copies of the Program or any portion
|
| 91 |
+
of it, thus forming a work based on the Program, and copy and
|
| 92 |
+
distribute such modifications or work under the terms of Section 1
|
| 93 |
+
above, provided that you also meet all of these conditions:
|
| 94 |
+
|
| 95 |
+
a) You must cause the modified files to carry prominent notices
|
| 96 |
+
stating that you changed the files and the date of any change.
|
| 97 |
+
|
| 98 |
+
b) You must cause any work that you distribute or publish, that in
|
| 99 |
+
whole or in part contains or is derived from the Program or any
|
| 100 |
+
part thereof, to be licensed as a whole at no charge to all third
|
| 101 |
+
parties under the terms of this License.
|
| 102 |
+
|
| 103 |
+
c) If the modified program normally reads commands interactively
|
| 104 |
+
when run, you must cause it, when started running for such
|
| 105 |
+
interactive use in the most ordinary way, to print or display an
|
| 106 |
+
announcement including an appropriate copyright notice and a
|
| 107 |
+
notice that there is no warranty (or else, saying that you provide
|
| 108 |
+
a warranty) and that users may redistribute the program under
|
| 109 |
+
these conditions, and telling the user how to view a copy of this
|
| 110 |
+
License. (Exception: if the Program itself is interactive but
|
| 111 |
+
does not normally print such an announcement, your work based on
|
| 112 |
+
the Program is not required to print an announcement.)
|
| 113 |
+
|
| 114 |
+
These requirements apply to the modified work as a whole. If
|
| 115 |
+
identifiable sections of that work are not derived from the Program,
|
| 116 |
+
and can be reasonably considered independent and separate works in
|
| 117 |
+
themselves, then this License, and its terms, do not apply to those
|
| 118 |
+
sections when you distribute them as separate works. But when you
|
| 119 |
+
distribute the same sections as part of a whole which is a work based
|
| 120 |
+
on the Program, the distribution of the whole must be on the terms of
|
| 121 |
+
this License, whose permissions for other licensees extend to the
|
| 122 |
+
entire whole, and thus to each and every part regardless of who wrote it.
|
| 123 |
+
|
| 124 |
+
Thus, it is not the intent of this section to claim rights or contest
|
| 125 |
+
your rights to work written entirely by you; rather, the intent is to
|
| 126 |
+
exercise the right to control the distribution of derivative or
|
| 127 |
+
collective works based on the Program.
|
| 128 |
+
|
| 129 |
+
In addition, mere aggregation of another work not based on the Program
|
| 130 |
+
with the Program (or with a work based on the Program) on a volume of
|
| 131 |
+
a storage or distribution medium does not bring the other work under
|
| 132 |
+
the scope of this License.
|
| 133 |
+
|
| 134 |
+
3. You may copy and distribute the Program (or a work based on it,
|
| 135 |
+
under Section 2) in object code or executable form under the terms of
|
| 136 |
+
Sections 1 and 2 above provided that you also do one of the following:
|
| 137 |
+
|
| 138 |
+
a) Accompany it with the complete corresponding machine-readable
|
| 139 |
+
source code, which must be distributed under the terms of Sections
|
| 140 |
+
1 and 2 above on a medium customarily used for software interchange; or,
|
| 141 |
+
|
| 142 |
+
b) Accompany it with a written offer, valid for at least three
|
| 143 |
+
years, to give any third party, for a charge no more than your
|
| 144 |
+
cost of physically performing source distribution, a complete
|
| 145 |
+
machine-readable copy of the corresponding source code, to be
|
| 146 |
+
distributed under the terms of Sections 1 and 2 above on a medium
|
| 147 |
+
customarily used for software interchange; or,
|
| 148 |
+
|
| 149 |
+
c) Accompany it with the information you received as to the offer
|
| 150 |
+
to distribute corresponding source code. (This alternative is
|
| 151 |
+
allowed only for noncommercial distribution and only if you
|
| 152 |
+
received the program in object code or executable form with such
|
| 153 |
+
an offer, in accord with Subsection b above.)
|
| 154 |
+
|
| 155 |
+
The source code for a work means the preferred form of the work for
|
| 156 |
+
making modifications to it. For an executable work, complete source
|
| 157 |
+
code means all the source code for all modules it contains, plus any
|
| 158 |
+
associated interface definition files, plus the scripts used to
|
| 159 |
+
control compilation and installation of the executable. However, as a
|
| 160 |
+
special exception, the source code distributed need not include
|
| 161 |
+
anything that is normally distributed (in either source or binary
|
| 162 |
+
form) with the major components (compiler, kernel, and so on) of the
|
| 163 |
+
operating system on which the executable runs, unless that component
|
| 164 |
+
itself accompanies the executable.
|
| 165 |
+
|
| 166 |
+
If distribution of executable or object code is made by offering
|
| 167 |
+
access to copy from a designated place, then offering equivalent
|
| 168 |
+
access to copy the source code from the same place counts as
|
| 169 |
+
distribution of the source code, even though third parties are not
|
| 170 |
+
compelled to copy the source along with the object code.
|
| 171 |
+
|
| 172 |
+
4. You may not copy, modify, sublicense, or distribute the Program
|
| 173 |
+
except as expressly provided under this License. Any attempt
|
| 174 |
+
otherwise to copy, modify, sublicense or distribute the Program is
|
| 175 |
+
void, and will automatically terminate your rights under this License.
|
| 176 |
+
However, parties who have received copies, or rights, from you under
|
| 177 |
+
this License will not have their licenses terminated so long as such
|
| 178 |
+
parties remain in full compliance.
|
| 179 |
+
|
| 180 |
+
5. You are not required to accept this License, since you have not
|
| 181 |
+
signed it. However, nothing else grants you permission to modify or
|
| 182 |
+
distribute the Program or its derivative works. These actions are
|
| 183 |
+
prohibited by law if you do not accept this License. Therefore, by
|
| 184 |
+
modifying or distributing the Program (or any work based on the
|
| 185 |
+
Program), you indicate your acceptance of this License to do so, and
|
| 186 |
+
all its terms and conditions for copying, distributing or modifying
|
| 187 |
+
the Program or works based on it.
|
| 188 |
+
|
| 189 |
+
6. Each time you redistribute the Program (or any work based on the
|
| 190 |
+
Program), the recipient automatically receives a license from the
|
| 191 |
+
original licensor to copy, distribute or modify the Program subject to
|
| 192 |
+
these terms and conditions. You may not impose any further
|
| 193 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
| 194 |
+
You are not responsible for enforcing compliance by third parties to
|
| 195 |
+
this License.
|
| 196 |
+
|
| 197 |
+
7. If, as a consequence of a court judgment or allegation of patent
|
| 198 |
+
infringement or for any other reason (not limited to patent issues),
|
| 199 |
+
conditions are imposed on you (whether by court order, agreement or
|
| 200 |
+
otherwise) that contradict the conditions of this License, they do not
|
| 201 |
+
excuse you from the conditions of this License. If you cannot
|
| 202 |
+
distribute so as to satisfy simultaneously your obligations under this
|
| 203 |
+
License and any other pertinent obligations, then as a consequence you
|
| 204 |
+
may not distribute the Program at all. For example, if a patent
|
| 205 |
+
license would not permit royalty-free redistribution of the Program by
|
| 206 |
+
all those who receive copies directly or indirectly through you, then
|
| 207 |
+
the only way you could satisfy both it and this License would be to
|
| 208 |
+
refrain entirely from distribution of the Program.
|
| 209 |
+
|
| 210 |
+
If any portion of this section is held invalid or unenforceable under
|
| 211 |
+
any particular circumstance, the balance of the section is intended to
|
| 212 |
+
apply and the section as a whole is intended to apply in other
|
| 213 |
+
circumstances.
|
| 214 |
+
|
| 215 |
+
It is not the purpose of this section to induce you to infringe any
|
| 216 |
+
patents or other property right claims or to contest validity of any
|
| 217 |
+
such claims; this section has the sole purpose of protecting the
|
| 218 |
+
integrity of the free software distribution system, which is
|
| 219 |
+
implemented by public license practices. Many people have made
|
| 220 |
+
generous contributions to the wide range of software distributed
|
| 221 |
+
through that system in reliance on consistent application of that
|
| 222 |
+
system; it is up to the author/donor to decide if he or she is willing
|
| 223 |
+
to distribute software through any other system and a licensee cannot
|
| 224 |
+
impose that choice.
|
| 225 |
+
|
| 226 |
+
This section is intended to make thoroughly clear what is believed to
|
| 227 |
+
be a consequence of the rest of this License.
|
| 228 |
+
|
| 229 |
+
8. If the distribution and/or use of the Program is restricted in
|
| 230 |
+
certain countries either by patents or by copyrighted interfaces, the
|
| 231 |
+
original copyright holder who places the Program under this License
|
| 232 |
+
may add an explicit geographical distribution limitation excluding
|
| 233 |
+
those countries, so that distribution is permitted only in or among
|
| 234 |
+
countries not thus excluded. In such case, this License incorporates
|
| 235 |
+
the limitation as if written in the body of this License.
|
| 236 |
+
|
| 237 |
+
9. The Free Software Foundation may publish revised and/or new versions
|
| 238 |
+
of the General Public License from time to time. Such new versions will
|
| 239 |
+
be similar in spirit to the present version, but may differ in detail to
|
| 240 |
+
address new problems or concerns.
|
| 241 |
+
|
| 242 |
+
Each version is given a distinguishing version number. If the Program
|
| 243 |
+
specifies a version number of this License which applies to it and "any
|
| 244 |
+
later version", you have the option of following the terms and conditions
|
| 245 |
+
either of that version or of any later version published by the Free
|
| 246 |
+
Software Foundation. If the Program does not specify a version number of
|
| 247 |
+
this License, you may choose any version ever published by the Free Software
|
| 248 |
+
Foundation.
|
| 249 |
+
|
| 250 |
+
10. If you wish to incorporate parts of the Program into other free
|
| 251 |
+
programs whose distribution conditions are different, write to the author
|
| 252 |
+
to ask for permission. For software which is copyrighted by the Free
|
| 253 |
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
| 254 |
+
make exceptions for this. Our decision will be guided by the two goals
|
| 255 |
+
of preserving the free status of all derivatives of our free software and
|
| 256 |
+
of promoting the sharing and reuse of software generally.
|
| 257 |
+
|
| 258 |
+
NO WARRANTY
|
| 259 |
+
|
| 260 |
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
| 261 |
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
| 262 |
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
| 263 |
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
| 264 |
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
| 265 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
| 266 |
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
| 267 |
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
| 268 |
+
REPAIR OR CORRECTION.
|
| 269 |
+
|
| 270 |
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
| 271 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
| 272 |
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
| 273 |
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
| 274 |
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
| 275 |
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
| 276 |
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
| 277 |
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
| 278 |
+
POSSIBILITY OF SUCH DAMAGES.
|
| 279 |
+
|
| 280 |
+
END OF TERMS AND CONDITIONS
|
| 281 |
+
|
| 282 |
+
How to Apply These Terms to Your New Programs
|
| 283 |
+
|
| 284 |
+
If you develop a new program, and you want it to be of the greatest
|
| 285 |
+
possible use to the public, the best way to achieve this is to make it
|
| 286 |
+
free software which everyone can redistribute and change under these terms.
|
| 287 |
+
|
| 288 |
+
To do so, attach the following notices to the program. It is safest
|
| 289 |
+
to attach them to the start of each source file to most effectively
|
| 290 |
+
convey the exclusion of warranty; and each file should have at least
|
| 291 |
+
the "copyright" line and a pointer to where the full notice is found.
|
| 292 |
+
|
| 293 |
+
<one line to give the program's name and a brief idea of what it does.>
|
| 294 |
+
Copyright (C) <year> <name of author>
|
| 295 |
+
|
| 296 |
+
This program is free software; you can redistribute it and/or modify
|
| 297 |
+
it under the terms of the GNU General Public License as published by
|
| 298 |
+
the Free Software Foundation; either version 2 of the License, or
|
| 299 |
+
(at your option) any later version.
|
| 300 |
+
|
| 301 |
+
This program is distributed in the hope that it will be useful,
|
| 302 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 303 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 304 |
+
GNU General Public License for more details.
|
| 305 |
+
|
| 306 |
+
You should have received a copy of the GNU General Public License along
|
| 307 |
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
| 308 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
| 309 |
+
|
| 310 |
+
Also add information on how to contact you by electronic and paper mail.
|
| 311 |
+
|
| 312 |
+
If the program is interactive, make it output a short notice like this
|
| 313 |
+
when it starts in an interactive mode:
|
| 314 |
+
|
| 315 |
+
Gnomovision version 69, Copyright (C) year name of author
|
| 316 |
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
| 317 |
+
This is free software, and you are welcome to redistribute it
|
| 318 |
+
under certain conditions; type `show c' for details.
|
| 319 |
+
|
| 320 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
| 321 |
+
parts of the General Public License. Of course, the commands you use may
|
| 322 |
+
be called something other than `show w' and `show c'; they could even be
|
| 323 |
+
mouse-clicks or menu items--whatever suits your program.
|
| 324 |
+
|
| 325 |
+
You should also get your employer (if you work as a programmer) or your
|
| 326 |
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
| 327 |
+
necessary. Here is a sample; alter the names:
|
| 328 |
+
|
| 329 |
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
| 330 |
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
| 331 |
+
|
| 332 |
+
<signature of Ty Coon>, 1 April 1989
|
| 333 |
+
Ty Coon, President of Vice
|
| 334 |
+
|
| 335 |
+
This General Public License does not permit incorporating your program into
|
| 336 |
+
proprietary programs. If your program is a subroutine library, you may
|
| 337 |
+
consider it more useful to permit linking proprietary applications with the
|
| 338 |
+
library. If this is what you want to do, use the GNU Lesser General
|
| 339 |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entation
|
| 7 |
+
1.1. Overall documentation
|
| 8 |
+
1.2. Documentation for command-line tools
|
| 9 |
+
1.3. Documentation for liblzma
|
| 10 |
+
2. Version numbering
|
| 11 |
+
3. Reporting bugs
|
| 12 |
+
4. Translations
|
| 13 |
+
5. Other implementations of the .xz format
|
| 14 |
+
6. Contact information
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
0. Overview
|
| 18 |
+
-----------
|
| 19 |
+
|
| 20 |
+
XZ Utils provide a general-purpose data-compression library plus
|
| 21 |
+
command-line tools. The native file format is the .xz format, but
|
| 22 |
+
also the legacy .lzma format is supported. The .xz format supports
|
| 23 |
+
multiple compression algorithms, which are called "filters" in the
|
| 24 |
+
context of XZ Utils. The primary filter is currently LZMA2. With
|
| 25 |
+
typical files, XZ Utils create about 30 % smaller files than gzip.
|
| 26 |
+
|
| 27 |
+
To ease adapting support for the .xz format into existing applications
|
| 28 |
+
and scripts, the API of liblzma is somewhat similar to the API of the
|
| 29 |
+
popular zlib library. For the same reason, the command-line tool xz
|
| 30 |
+
has a command-line syntax similar to that of gzip.
|
| 31 |
+
|
| 32 |
+
When aiming for the highest compression ratio, the LZMA2 encoder uses
|
| 33 |
+
a lot of CPU time and may use, depending on the settings, even
|
| 34 |
+
hundreds of megabytes of RAM. However, in fast modes, the LZMA2 encoder
|
| 35 |
+
competes with bzip2 in compression speed, RAM usage, and compression
|
| 36 |
+
ratio.
|
| 37 |
+
|
| 38 |
+
LZMA2 is reasonably fast to decompress. It is a little slower than
|
| 39 |
+
gzip, but a lot faster than bzip2. Being fast to decompress means
|
| 40 |
+
that the .xz format is especially nice when the same file will be
|
| 41 |
+
decompressed very many times (usually on different computers), which
|
| 42 |
+
is the case e.g. when distributing software packages. In such
|
| 43 |
+
situations, it's not too bad if the compression takes some time,
|
| 44 |
+
since that needs to be done only once to benefit many people.
|
| 45 |
+
|
| 46 |
+
With some file types, combining (or "chaining") LZMA2 with an
|
| 47 |
+
additional filter can improve the compression ratio. A filter chain may
|
| 48 |
+
contain up to four filters, although usually only one or two are used.
|
| 49 |
+
For example, putting a BCJ (Branch/Call/Jump) filter before LZMA2
|
| 50 |
+
in the filter chain can improve compression ratio of executable files.
|
| 51 |
+
|
| 52 |
+
Since the .xz format allows adding new filter IDs, it is possible that
|
| 53 |
+
some day there will be a filter that is, for example, much faster to
|
| 54 |
+
compress than LZMA2 (but probably with worse compression ratio).
|
| 55 |
+
Similarly, it is possible that some day there is a filter that will
|
| 56 |
+
compress better than LZMA2.
|
| 57 |
+
|
| 58 |
+
XZ Utils supports multithreaded compression. XZ Utils doesn't support
|
| 59 |
+
multithreaded decompression yet. It has been planned though and taken
|
| 60 |
+
into account when designing the .xz file format. In the future, files
|
| 61 |
+
that were created in threaded mode can be decompressed in threaded
|
| 62 |
+
mode too.
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
1. Documentation
|
| 66 |
+
----------------
|
| 67 |
+
|
| 68 |
+
1.1. Overall documentation
|
| 69 |
+
|
| 70 |
+
README This file
|
| 71 |
+
|
| 72 |
+
INSTALL.generic Generic install instructions for those not
|
| 73 |
+
familiar with packages using GNU Autotools
|
| 74 |
+
INSTALL Installation instructions specific to XZ Utils
|
| 75 |
+
PACKAGERS Information to packagers of XZ Utils
|
| 76 |
+
|
| 77 |
+
COPYING XZ Utils copyright and license information
|
| 78 |
+
COPYING.0BSD BSD Zero Clause License
|
| 79 |
+
COPYING.GPLv2 GNU General Public License version 2
|
| 80 |
+
COPYING.GPLv3 GNU General Public License version 3
|
| 81 |
+
COPYING.LGPLv2.1 GNU Lesser General Public License version 2.1
|
| 82 |
+
|
| 83 |
+
AUTHORS The main authors of XZ Utils
|
| 84 |
+
THANKS Incomplete list of people who have helped making
|
| 85 |
+
this software
|
| 86 |
+
NEWS User-visible changes between XZ Utils releases
|
| 87 |
+
ChangeLog Detailed list of changes (commit log)
|
| 88 |
+
TODO Known bugs and some sort of to-do list
|
| 89 |
+
|
| 90 |
+
Note that only some of the above files are included in binary
|
| 91 |
+
packages.
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
1.2. Documentation for command-line tools
|
| 95 |
+
|
| 96 |
+
The command-line tools are documented as man pages. In source code
|
| 97 |
+
releases (and possibly also in some binary packages), the man pages
|
| 98 |
+
are also provided in plain text (ASCII only) format in the directory
|
| 99 |
+
"doc/man" to make the man pages more accessible to those whose
|
| 100 |
+
operating system doesn't provide an easy way to view man pages.
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
1.3. Documentation for liblzma
|
| 104 |
+
|
| 105 |
+
The liblzma API headers include short docs about each function
|
| 106 |
+
and data type as Doxygen tags. These docs should be quite OK as
|
| 107 |
+
a quick reference.
|
| 108 |
+
|
| 109 |
+
There are a few example/tutorial programs that should help in
|
| 110 |
+
getting started with liblzma. In the source package the examples
|
| 111 |
+
are in "doc/examples" and in binary packages they may be under
|
| 112 |
+
"examples" in the same directory as this README.
|
| 113 |
+
|
| 114 |
+
Since the liblzma API has similarities to the zlib API, some people
|
| 115 |
+
may find it useful to read the zlib docs and tutorial too:
|
| 116 |
+
|
| 117 |
+
https://zlib.net/manual.html
|
| 118 |
+
https://zlib.net/zlib_how.html
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
2. Version numbering
|
| 122 |
+
--------------------
|
| 123 |
+
|
| 124 |
+
The version number format of XZ Utils is X.Y.ZS:
|
| 125 |
+
|
| 126 |
+
- X is the major version. When this is incremented, the library
|
| 127 |
+
API and ABI break.
|
| 128 |
+
|
| 129 |
+
- Y is the minor version. It is incremented when new features
|
| 130 |
+
are added without breaking the existing API or ABI. An even Y
|
| 131 |
+
indicates a stable release and an odd Y indicates unstable
|
| 132 |
+
(alpha or beta version).
|
| 133 |
+
|
| 134 |
+
- Z is the revision. This has a different meaning for stable and
|
| 135 |
+
unstable releases:
|
| 136 |
+
|
| 137 |
+
* Stable: Z is incremented when bugs get fixed without adding
|
| 138 |
+
any new features. This is intended to be convenient for
|
| 139 |
+
downstream distributors that want bug fixes but don't want
|
| 140 |
+
any new features to minimize the risk of introducing new bugs.
|
| 141 |
+
|
| 142 |
+
* Unstable: Z is just a counter. API or ABI of features added
|
| 143 |
+
in earlier unstable releases having the same X.Y may break.
|
| 144 |
+
|
| 145 |
+
- S indicates stability of the release. It is missing from the
|
| 146 |
+
stable releases, where Y is an even number. When Y is odd, S
|
| 147 |
+
is either "alpha" or "beta" to make it very clear that such
|
| 148 |
+
versions are not stable releases. The same X.Y.Z combination is
|
| 149 |
+
not used for more than one stability level, i.e. after X.Y.Zalpha,
|
| 150 |
+
the next version can be X.Y.(Z+1)beta but not X.Y.Zbeta.
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
3. Reporting bugs
|
| 154 |
+
-----------------
|
| 155 |
+
|
| 156 |
+
Naturally it is easiest for me if you already know what causes the
|
| 157 |
+
unexpected behavior. Even better if you have a patch to propose.
|
| 158 |
+
However, quite often the reason for unexpected behavior is unknown,
|
| 159 |
+
so here are a few things to do before sending a bug report:
|
| 160 |
+
|
| 161 |
+
1. Try to create a small example how to reproduce the issue.
|
| 162 |
+
|
| 163 |
+
2. Compile XZ Utils with debugging code using configure switches
|
| 164 |
+
--enable-debug and, if possible, --disable-shared. If you are
|
| 165 |
+
using GCC, use CFLAGS='-O0 -ggdb3'. Don't strip the resulting
|
| 166 |
+
binaries.
|
| 167 |
+
|
| 168 |
+
3. Turn on core dumps. The exact command depends on your shell;
|
| 169 |
+
for example in GNU bash it is done with "ulimit -c unlimited",
|
| 170 |
+
and in tcsh with "limit coredumpsize unlimited".
|
| 171 |
+
|
| 172 |
+
4. Try to reproduce the suspected bug. If you get "assertion failed"
|
| 173 |
+
message, be sure to include the complete message in your bug
|
| 174 |
+
report. If the application leaves a coredump, get a backtrace
|
| 175 |
+
using gdb:
|
| 176 |
+
$ gdb /path/to/app-binary # Load the app to the debugger.
|
| 177 |
+
(gdb) core core # Open the coredump.
|
| 178 |
+
(gdb) bt # Print the backtrace. Copy & paste to bug report.
|
| 179 |
+
(gdb) quit # Quit gdb.
|
| 180 |
+
|
| 181 |
+
Report your bug via email or IRC (see Contact information below).
|
| 182 |
+
Don't send core dump files or any executables. If you have a small
|
| 183 |
+
example file(s) (total size less than 256 KiB), please include
|
| 184 |
+
it/them as an attachment. If you have bigger test files, put them
|
| 185 |
+
online somewhere and include a URL to the file(s) in the bug report.
|
| 186 |
+
|
| 187 |
+
Always include the exact version number of XZ Utils in the bug report.
|
| 188 |
+
If you are using a snapshot from the git repository, use "git describe"
|
| 189 |
+
to get the exact snapshot version. If you are using XZ Utils shipped
|
| 190 |
+
in an operating system distribution, mention the distribution name,
|
| 191 |
+
distribution version, and exact xz package version; if you cannot
|
| 192 |
+
repeat the bug with the code compiled from unpatched source code,
|
| 193 |
+
you probably need to report a bug to your distribution's bug tracking
|
| 194 |
+
system.
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
4. Translations
|
| 198 |
+
---------------
|
| 199 |
+
|
| 200 |
+
The xz command line tool and all man pages can be translated.
|
| 201 |
+
The translations are handled via the Translation Project. If you
|
| 202 |
+
wish to help translating xz, please join the Translation Project:
|
| 203 |
+
|
| 204 |
+
https://translationproject.org/html/translators.html
|
| 205 |
+
|
| 206 |
+
Below are notes and testing instructions specific to xz
|
| 207 |
+
translations.
|
| 208 |
+
|
| 209 |
+
Testing can be done by installing xz into a temporary directory:
|
| 210 |
+
|
| 211 |
+
./configure --disable-shared --prefix=/tmp/xz-test
|
| 212 |
+
# <Edit the .po file in the po directory.>
|
| 213 |
+
make -C po update-po
|
| 214 |
+
make install
|
| 215 |
+
bash debug/translation.bash | less
|
| 216 |
+
bash debug/translation.bash | less -S # For --list outputs
|
| 217 |
+
|
| 218 |
+
Repeat the above as needed (no need to re-run configure though).
|
| 219 |
+
|
| 220 |
+
Note especially the following:
|
| 221 |
+
|
| 222 |
+
- The output of --help and --long-help must look nice on
|
| 223 |
+
an 80-column terminal. It's OK to add extra lines if needed.
|
| 224 |
+
|
| 225 |
+
- In contrast, don't add extra lines to error messages and such.
|
| 226 |
+
They are often preceded with e.g. a filename on the same line,
|
| 227 |
+
so you have no way to predict where to put a \n. Let the terminal
|
| 228 |
+
do the wrapping even if it looks ugly. Adding new lines will be
|
| 229 |
+
even uglier in the generic case even if it looks nice in a few
|
| 230 |
+
limited examples.
|
| 231 |
+
|
| 232 |
+
- Be careful with column alignment in tables and table-like output
|
| 233 |
+
(--list, --list --verbose --verbose, --info-memory, --help, and
|
| 234 |
+
--long-help):
|
| 235 |
+
|
| 236 |
+
* All descriptions of options in --help should start in the
|
| 237 |
+
same column (but it doesn't need to be the same column as
|
| 238 |
+
in the English messages; just be consistent if you change it).
|
| 239 |
+
Check that both --help and --long-help look OK, since they
|
| 240 |
+
share several strings.
|
| 241 |
+
|
| 242 |
+
* --list --verbose and --info-memory print lines that have
|
| 243 |
+
the format "Description: %s". If you need a longer
|
| 244 |
+
description, you can put extra space between the colon
|
| 245 |
+
and %s. Then you may need to add extra space to other
|
| 246 |
+
strings too so that the result as a whole looks good (all
|
| 247 |
+
values start at the same column).
|
| 248 |
+
|
| 249 |
+
* The columns of the actual tables in --list --verbose --verbose
|
| 250 |
+
should be aligned properly. Abbreviate if necessary. It might
|
| 251 |
+
be good to keep at least 2 or 3 spaces between column headings
|
| 252 |
+
and avoid spaces in the headings so that the columns stand out
|
| 253 |
+
better, but this is a matter of opinion. Do what you think
|
| 254 |
+
looks best.
|
| 255 |
+
|
| 256 |
+
- Be careful to put a period at the end of a sentence when the
|
| 257 |
+
original version has it, and don't put it when the original
|
| 258 |
+
doesn't have it. Similarly, be careful with \n characters
|
| 259 |
+
at the beginning and end of the strings.
|
| 260 |
+
|
| 261 |
+
- Read the TRANSLATORS comments that have been extracted from the
|
| 262 |
+
source code and included in xz.pot. Some comments suggest
|
| 263 |
+
testing with a specific command which needs an .xz file. You
|
| 264 |
+
may use e.g. any tests/files/good-*.xz. However, these test
|
| 265 |
+
commands are included in translations.bash output, so reading
|
| 266 |
+
translations.bash output carefully can be enough.
|
| 267 |
+
|
| 268 |
+
- If you find language problems in the original English strings,
|
| 269 |
+
feel free to suggest improvements. Ask if something is unclear.
|
| 270 |
+
|
| 271 |
+
- The translated messages should be understandable (sometimes this
|
| 272 |
+
may be a problem with the original English messages too). Don't
|
| 273 |
+
make a direct word-by-word translation from English especially if
|
| 274 |
+
the result doesn't sound good in your language.
|
| 275 |
+
|
| 276 |
+
Thanks for your help!
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
5. Other implementations of the .xz format
|
| 280 |
+
------------------------------------------
|
| 281 |
+
|
| 282 |
+
7-Zip and the p7zip port of 7-Zip support the .xz format starting
|
| 283 |
+
from the version 9.00alpha.
|
| 284 |
+
|
| 285 |
+
https://7-zip.org/
|
| 286 |
+
https://p7zip.sourceforge.net/
|
| 287 |
+
|
| 288 |
+
XZ Embedded is a limited implementation written for use in the Linux
|
| 289 |
+
kernel, but it is also suitable for other embedded use.
|
| 290 |
+
|
| 291 |
+
https://tukaani.org/xz/embedded.html
|
| 292 |
+
|
| 293 |
+
XZ for Java is a complete implementation written in pure Java.
|
| 294 |
+
|
| 295 |
+
https://tukaani.org/xz/java.html
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
6. Contact information
|
| 299 |
+
----------------------
|
| 300 |
+
|
| 301 |
+
XZ Utils in general:
|
| 302 |
+
- Home page: https://tukaani.org/xz/
|
| 303 |
+
- Email to maintainer(s): xz@tukaani.org
|
| 304 |
+
- IRC: #tukaani on Libera Chat
|
| 305 |
+
- GitHub: https://github.com/tukaani-project/xz
|
| 306 |
+
|
| 307 |
+
Lead maintainer:
|
| 308 |
+
- Email: Lasse Collin <lasse.collin@tukaani.org>
|
| 309 |
+
- IRC: Larhzu on Libera Chat
|
| 310 |
+
|
llava_next/share/doc/xz/THANKS
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Thanks
|
| 3 |
+
======
|
| 4 |
+
|
| 5 |
+
Some people have helped more, some less, but nevertheless everyone's help
|
| 6 |
+
has been important. :-) In alphabetical order:
|
| 7 |
+
- Mark Adler
|
| 8 |
+
- Kian-Meng Ang
|
| 9 |
+
- H. Peter Anvin
|
| 10 |
+
- Jeff Bastian
|
| 11 |
+
- Nelson H. F. Beebe
|
| 12 |
+
- Karl Beldan
|
| 13 |
+
- Karl Berry
|
| 14 |
+
- Anders F. Björklund
|
| 15 |
+
- Emmanuel Blot
|
| 16 |
+
- Melanie Blower
|
| 17 |
+
- Alexander Bluhm
|
| 18 |
+
- Martin Blumenstingl
|
| 19 |
+
- Ben Boeckel
|
| 20 |
+
- Jakub Bogusz
|
| 21 |
+
- Adam Borowski
|
| 22 |
+
- Maarten Bosmans
|
| 23 |
+
- Lukas Braune
|
| 24 |
+
- Benjamin Buch
|
| 25 |
+
- Trent W. Buck
|
| 26 |
+
- Kevin R. Bulgrien
|
| 27 |
+
- James Buren
|
| 28 |
+
- David Burklund
|
| 29 |
+
- Frank Busse
|
| 30 |
+
- Daniel Mealha Cabrita
|
| 31 |
+
- Milo Casagrande
|
| 32 |
+
- Marek Černocký
|
| 33 |
+
- Tomer Chachamu
|
| 34 |
+
- Vitaly Chikunov
|
| 35 |
+
- Antoine Cœur
|
| 36 |
+
- Felix Collin
|
| 37 |
+
- Marcus Comstedt
|
| 38 |
+
- Gabi Davar
|
| 39 |
+
- İhsan Doğan
|
| 40 |
+
- Chris Donawa
|
| 41 |
+
- Andrew Dudman
|
| 42 |
+
- Markus Duft
|
| 43 |
+
- İsmail Dönmez
|
| 44 |
+
- Dexter Castor Döpping
|
| 45 |
+
- Paul Eggert
|
| 46 |
+
- Robert Elz
|
| 47 |
+
- Gilles Espinasse
|
| 48 |
+
- Denis Excoffier
|
| 49 |
+
- Vincent Fazio
|
| 50 |
+
- Michael Felt
|
| 51 |
+
- Michael Fox
|
| 52 |
+
- Andres Freund
|
| 53 |
+
- Mike Frysinger
|
| 54 |
+
- Daniel Richard G.
|
| 55 |
+
- Tomasz Gajc
|
| 56 |
+
- Bjarni Ingi Gislason
|
| 57 |
+
- John Paul Adrian Glaubitz
|
| 58 |
+
- Bill Glessner
|
| 59 |
+
- Matthew Good
|
| 60 |
+
- Michał Górny
|
| 61 |
+
- Jason Gorski
|
| 62 |
+
- Juan Manuel Guerrero
|
| 63 |
+
- Gabriela Gutierrez
|
| 64 |
+
- Diederik de Haas
|
| 65 |
+
- Joachim Henke
|
| 66 |
+
- Christian Hesse
|
| 67 |
+
- Vincenzo Innocente
|
| 68 |
+
- Peter Ivanov
|
| 69 |
+
- Nicholas Jackson
|
| 70 |
+
- Sam James
|
| 71 |
+
- Hajin Jang
|
| 72 |
+
- Hans Jansen
|
| 73 |
+
- Jouk Jansen
|
| 74 |
+
- Jun I Jin
|
| 75 |
+
- Christoph Junghans
|
| 76 |
+
- Kiyoshi Kanazawa
|
| 77 |
+
- Joona Kannisto
|
| 78 |
+
- Per Øyvind Karlsen
|
| 79 |
+
- Firas Khalil Khana
|
| 80 |
+
- Iouri Kharon
|
| 81 |
+
- Thomas Klausner
|
| 82 |
+
- Richard Koch
|
| 83 |
+
- Anton Kochkov
|
| 84 |
+
- Ville Koskinen
|
| 85 |
+
- Sergey Kosukhin
|
| 86 |
+
- Marcin Kowalczyk
|
| 87 |
+
- Jan Kratochvil
|
| 88 |
+
- Christian Kujau
|
| 89 |
+
- Stephan Kulow
|
| 90 |
+
- Ilya Kurdyukov
|
| 91 |
+
- Peter Lawler
|
| 92 |
+
- James M Leddy
|
| 93 |
+
- Kelvin Lee
|
| 94 |
+
- Vincent Lefevre
|
| 95 |
+
- Hin-Tak Leung
|
| 96 |
+
- Andraž 'ruskie' Levstik
|
| 97 |
+
- Cary Lewis
|
| 98 |
+
- Wim Lewis
|
| 99 |
+
- Xin Li
|
| 100 |
+
- Yifeng Li
|
| 101 |
+
- Eric Lindblad
|
| 102 |
+
- Lorenzo De Liso
|
| 103 |
+
- H.J. Lu
|
| 104 |
+
- Bela Lubkin
|
| 105 |
+
- Chenxi Mao
|
| 106 |
+
- Gregory Margo
|
| 107 |
+
- Julien Marrec
|
| 108 |
+
- Ed Maste
|
| 109 |
+
- Martin Matuška
|
| 110 |
+
- Ivan A. Melnikov
|
| 111 |
+
- Jim Meyering
|
| 112 |
+
- Arkadiusz Miskiewicz
|
| 113 |
+
- Nathan Moinvaziri
|
| 114 |
+
- Étienne Mollier
|
| 115 |
+
- Conley Moorhous
|
| 116 |
+
- Andrew Murray
|
| 117 |
+
- Rafał Mużyło
|
| 118 |
+
- Adrien Nader
|
| 119 |
+
- Evan Nemerson
|
| 120 |
+
- Alexander Neumann
|
| 121 |
+
- Hongbo Ni
|
| 122 |
+
- Jonathan Nieder
|
| 123 |
+
- Asgeir Storesund Nilsen
|
| 124 |
+
- Andre Noll
|
| 125 |
+
- Peter O'Gorman
|
| 126 |
+
- Dimitri Papadopoulos Orfanos
|
| 127 |
+
- Daniel Packard
|
| 128 |
+
- Filip Palian
|
| 129 |
+
- Peter Pallinger
|
| 130 |
+
- Kai Pastor
|
| 131 |
+
- Keith Patton
|
| 132 |
+
- Rui Paulo
|
| 133 |
+
- Igor Pavlov
|
| 134 |
+
- Diego Elio Pettenò
|
| 135 |
+
- Elbert Pol
|
| 136 |
+
- Mikko Pouru
|
| 137 |
+
- Frank Prochnow
|
| 138 |
+
- Rich Prohaska
|
| 139 |
+
- Trần Ngọc Quân
|
| 140 |
+
- Pavel Raiskup
|
| 141 |
+
- Ole André Vadla Ravnås
|
| 142 |
+
- Eric S. Raymond
|
| 143 |
+
- Robert Readman
|
| 144 |
+
- Bernhard Reutner-Fischer
|
| 145 |
+
- Markus Rickert
|
| 146 |
+
- Cristian Rodríguez
|
| 147 |
+
- Christian von Roques
|
| 148 |
+
- Boud Roukema
|
| 149 |
+
- Torsten Rupp
|
| 150 |
+
- Stephen Sachs
|
| 151 |
+
- Jukka Salmi
|
| 152 |
+
- Agostino Sarubbo
|
| 153 |
+
- Vijay Sarvepalli
|
| 154 |
+
- Alexandre Sauvé
|
| 155 |
+
- Benno Schulenberg
|
| 156 |
+
- Andreas Schwab
|
| 157 |
+
- Eli Schwartz
|
| 158 |
+
- Peter Seiderer
|
| 159 |
+
- Bhargava Shastry
|
| 160 |
+
- Dan Shechter
|
| 161 |
+
- Stuart Shelton
|
| 162 |
+
- Sebastian Andrzej Siewior
|
| 163 |
+
- Ville Skyttä
|
| 164 |
+
- Brad Smith
|
| 165 |
+
- Bruce Stark
|
| 166 |
+
- Pippijn van Steenhoven
|
| 167 |
+
- Tobias Stoeckmann
|
| 168 |
+
- Martin Storsjö
|
| 169 |
+
- Jonathan Stott
|
| 170 |
+
- Dan Stromberg
|
| 171 |
+
- Douglas Thor
|
| 172 |
+
- Vincent Torri
|
| 173 |
+
- Alexey Tourbin
|
| 174 |
+
- Paul Townsend
|
| 175 |
+
- Mohammed Adnène Trojette
|
| 176 |
+
- Orange Tsai
|
| 177 |
+
- Taiki Tsunekawa
|
| 178 |
+
- Mathieu Vachon
|
| 179 |
+
- Maksym Vatsyk
|
| 180 |
+
- Loganaden Velvindron
|
| 181 |
+
- Patrick J. Volkerding
|
| 182 |
+
- Martin Väth
|
| 183 |
+
- Adam Walling
|
| 184 |
+
- Jeffrey Walton
|
| 185 |
+
- Christian Weisgerber
|
| 186 |
+
- Dan Weiss
|
| 187 |
+
- Bert Wesarg
|
| 188 |
+
- Mark Wielaard
|
| 189 |
+
- Fredrik Wikstrom
|
| 190 |
+
- Jim Wilcoxson
|
| 191 |
+
- Ralf Wildenhues
|
| 192 |
+
- Charles Wilson
|
| 193 |
+
- Lars Wirzenius
|
| 194 |
+
- Pilorz Wojciech
|
| 195 |
+
- Chien Wong
|
| 196 |
+
- Ryan Young
|
| 197 |
+
- Andreas Zieringer
|
| 198 |
+
|
| 199 |
+
Companies:
|
| 200 |
+
- Google
|
| 201 |
+
- Sandfly Security
|
| 202 |
+
|
| 203 |
+
Also thanks to all the people who have participated in the Tukaani project.
|
| 204 |
+
|
| 205 |
+
I have probably forgot to add some names to the above list. Sorry about
|
| 206 |
+
that and thanks for your help.
|
| 207 |
+
|
llava_next/share/doc/xz/examples/00_README.txt
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
liblzma example programs
|
| 3 |
+
========================
|
| 4 |
+
|
| 5 |
+
Introduction
|
| 6 |
+
|
| 7 |
+
The examples are written so that the same comments aren't
|
| 8 |
+
repeated (much) in later files.
|
| 9 |
+
|
| 10 |
+
On POSIX systems, the examples should build by just typing "make".
|
| 11 |
+
|
| 12 |
+
The examples that use stdin or stdout don't set stdin and stdout
|
| 13 |
+
to binary mode. On systems where it matters (e.g. Windows) it is
|
| 14 |
+
possible that the examples won't work without modification.
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
List of examples
|
| 18 |
+
|
| 19 |
+
01_compress_easy.c Multi-call compression using
|
| 20 |
+
a compression preset
|
| 21 |
+
|
| 22 |
+
02_decompress.c Multi-call decompression
|
| 23 |
+
|
| 24 |
+
03_compress_custom.c Like 01_compress_easy.c but using
|
| 25 |
+
a custom filter chain
|
| 26 |
+
(x86 BCJ + LZMA2)
|
| 27 |
+
|
| 28 |
+
04_compress_easy_mt.c Multi-threaded multi-call
|
| 29 |
+
compression using a compression
|
| 30 |
+
preset
|
| 31 |
+
|
llava_next/share/doc/xz/examples/01_compress_easy.c
AD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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// SPDX-License-Identifier: 0BSD
|
| 2 |
+
|
| 3 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 4 |
+
//
|
| 5 |
+
/// \file 01_compress_easy.c
|
| 6 |
+
/// \brief Compress from stdin to stdout in multi-call mode
|
| 7 |
+
///
|
| 8 |
+
/// Usage: ./01_compress_easy PRESET < INFILE > OUTFILE
|
| 9 |
+
///
|
| 10 |
+
/// Example: ./01_compress_easy 6 < foo > foo.xz
|
| 11 |
+
//
|
| 12 |
+
// Author: Lasse Collin
|
| 13 |
+
//
|
| 14 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 15 |
+
|
| 16 |
+
#include <stdbool.h>
|
| 17 |
+
#include <stdlib.h>
|
| 18 |
+
#include <stdio.h>
|
| 19 |
+
#include <string.h>
|
| 20 |
+
#include <errno.h>
|
| 21 |
+
#include <lzma.h>
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
static void
|
| 25 |
+
show_usage_and_exit(const char *argv0)
|
| 26 |
+
{
|
| 27 |
+
fprintf(stderr, "Usage: %s PRESET < INFILE > OUTFILE\n"
|
| 28 |
+
"PRESET is a number 0-9 and can optionally be "
|
| 29 |
+
"followed by 'e' to indicate extreme preset\n",
|
| 30 |
+
argv0);
|
| 31 |
+
exit(EXIT_FAILURE);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
static uint32_t
|
| 36 |
+
get_preset(int argc, char **argv)
|
| 37 |
+
{
|
| 38 |
+
// One argument whose first char must be 0-9.
|
| 39 |
+
if (argc != 2 || argv[1][0] < '0' || argv[1][0] > '9')
|
| 40 |
+
show_usage_and_exit(argv[0]);
|
| 41 |
+
|
| 42 |
+
// Calculate the preste level 0-9.
|
| 43 |
+
uint32_t preset = argv[1][0] - '0';
|
| 44 |
+
|
| 45 |
+
// If there is a second char, it must be 'e'. It will set
|
| 46 |
+
// the LZMA_PRESET_EXTREME flag.
|
| 47 |
+
if (argv[1][1] != '\0') {
|
| 48 |
+
if (argv[1][1] != 'e' || argv[1][2] != '\0')
|
| 49 |
+
show_usage_and_exit(argv[0]);
|
| 50 |
+
|
| 51 |
+
preset |= LZMA_PRESET_EXTREME;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
return preset;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
static bool
|
| 59 |
+
init_encoder(lzma_stream *strm, uint32_t preset)
|
| 60 |
+
{
|
| 61 |
+
// Initialize the encoder using a preset. Set the integrity to check
|
| 62 |
+
// to CRC64, which is the default in the xz command line tool. If
|
| 63 |
+
// the .xz file needs to be decompressed with XZ Embedded, use
|
| 64 |
+
// LZMA_CHECK_CRC32 instead.
|
| 65 |
+
lzma_ret ret = lzma_easy_encoder(strm, preset, LZMA_CHECK_CRC64);
|
| 66 |
+
|
| 67 |
+
// Return successfully if the initialization went fine.
|
| 68 |
+
if (ret == LZMA_OK)
|
| 69 |
+
return true;
|
| 70 |
+
|
| 71 |
+
// Something went wrong. The possible errors are documented in
|
| 72 |
+
// lzma/container.h (src/liblzma/api/lzma/container.h in the source
|
| 73 |
+
// package or e.g. /usr/include/lzma/container.h depending on the
|
| 74 |
+
// install prefix).
|
| 75 |
+
const char *msg;
|
| 76 |
+
switch (ret) {
|
| 77 |
+
case LZMA_MEM_ERROR:
|
| 78 |
+
msg = "Memory allocation failed";
|
| 79 |
+
break;
|
| 80 |
+
|
| 81 |
+
case LZMA_OPTIONS_ERROR:
|
| 82 |
+
msg = "Specified preset is not supported";
|
| 83 |
+
break;
|
| 84 |
+
|
| 85 |
+
case LZMA_UNSUPPORTED_CHECK:
|
| 86 |
+
msg = "Specified integrity check is not supported";
|
| 87 |
+
break;
|
| 88 |
+
|
| 89 |
+
default:
|
| 90 |
+
// This is most likely LZMA_PROG_ERROR indicating a bug in
|
| 91 |
+
// this program or in liblzma. It is inconvenient to have a
|
| 92 |
+
// separate error message for errors that should be impossible
|
| 93 |
+
// to occur, but knowing the error code is important for
|
| 94 |
+
// debugging. That's why it is good to print the error code
|
| 95 |
+
// at least when there is no good error message to show.
|
| 96 |
+
msg = "Unknown error, possibly a bug";
|
| 97 |
+
break;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
fprintf(stderr, "Error initializing the encoder: %s (error code %u)\n",
|
| 101 |
+
msg, ret);
|
| 102 |
+
return false;
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
static bool
|
| 107 |
+
compress(lzma_stream *strm, FILE *infile, FILE *outfile)
|
| 108 |
+
{
|
| 109 |
+
// This will be LZMA_RUN until the end of the input file is reached.
|
| 110 |
+
// This tells lzma_code() when there will be no more input.
|
| 111 |
+
lzma_action action = LZMA_RUN;
|
| 112 |
+
|
| 113 |
+
// Buffers to temporarily hold uncompressed input
|
| 114 |
+
// and compressed output.
|
| 115 |
+
uint8_t inbuf[BUFSIZ];
|
| 116 |
+
uint8_t outbuf[BUFSIZ];
|
| 117 |
+
|
| 118 |
+
// Initialize the input and output pointers. Initializing next_in
|
| 119 |
+
// and avail_in isn't really necessary when we are going to encode
|
| 120 |
+
// just one file since LZMA_STREAM_INIT takes care of initializing
|
| 121 |
+
// those already. But it doesn't hurt much and it will be needed
|
| 122 |
+
// if encoding more than one file like we will in 02_decompress.c.
|
| 123 |
+
//
|
| 124 |
+
// While we don't care about strm->total_in or strm->total_out in this
|
| 125 |
+
// example, it is worth noting that initializing the encoder will
|
| 126 |
+
// always reset total_in and total_out to zero. But the encoder
|
| 127 |
+
// initialization doesn't touch next_in, avail_in, next_out, or
|
| 128 |
+
// avail_out.
|
| 129 |
+
strm->next_in = NULL;
|
| 130 |
+
strm->avail_in = 0;
|
| 131 |
+
strm->next_out = outbuf;
|
| 132 |
+
strm->avail_out = sizeof(outbuf);
|
| 133 |
+
|
| 134 |
+
// Loop until the file has been successfully compressed or until
|
| 135 |
+
// an error occurs.
|
| 136 |
+
while (true) {
|
| 137 |
+
// Fill the input buffer if it is empty.
|
| 138 |
+
if (strm->avail_in == 0 && !feof(infile)) {
|
| 139 |
+
strm->next_in = inbuf;
|
| 140 |
+
strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
|
| 141 |
+
infile);
|
| 142 |
+
|
| 143 |
+
if (ferror(infile)) {
|
| 144 |
+
fprintf(stderr, "Read error: %s\n",
|
| 145 |
+
strerror(errno));
|
| 146 |
+
return false;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
// Once the end of the input file has been reached,
|
| 150 |
+
// we need to tell lzma_code() that no more input
|
| 151 |
+
// will be coming and that it should finish the
|
| 152 |
+
// encoding.
|
| 153 |
+
if (feof(infile))
|
| 154 |
+
action = LZMA_FINISH;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
// Tell liblzma do the actual encoding.
|
| 158 |
+
//
|
| 159 |
+
// This reads up to strm->avail_in bytes of input starting
|
| 160 |
+
// from strm->next_in. avail_in will be decremented and
|
| 161 |
+
// next_in incremented by an equal amount to match the
|
| 162 |
+
// number of input bytes consumed.
|
| 163 |
+
//
|
| 164 |
+
// Up to strm->avail_out bytes of compressed output will be
|
| 165 |
+
// written starting from strm->next_out. avail_out and next_out
|
| 166 |
+
// will be incremented by an equal amount to match the number
|
| 167 |
+
// of output bytes written.
|
| 168 |
+
//
|
| 169 |
+
// The encoder has to do internal buffering, which means that
|
| 170 |
+
// it may take quite a bit of input before the same data is
|
| 171 |
+
// available in compressed form in the output buffer.
|
| 172 |
+
lzma_ret ret = lzma_code(strm, action);
|
| 173 |
+
|
| 174 |
+
// If the output buffer is full or if the compression finished
|
| 175 |
+
// successfully, write the data from the output buffer to
|
| 176 |
+
// the output file.
|
| 177 |
+
if (strm->avail_out == 0 || ret == LZMA_STREAM_END) {
|
| 178 |
+
// When lzma_code() has returned LZMA_STREAM_END,
|
| 179 |
+
// the output buffer is likely to be only partially
|
| 180 |
+
// full. Calculate how much new data there is to
|
| 181 |
+
// be written to the output file.
|
| 182 |
+
size_t write_size = sizeof(outbuf) - strm->avail_out;
|
| 183 |
+
|
| 184 |
+
if (fwrite(outbuf, 1, write_size, outfile)
|
| 185 |
+
!= write_size) {
|
| 186 |
+
fprintf(stderr, "Write error: %s\n",
|
| 187 |
+
strerror(errno));
|
| 188 |
+
return false;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
// Reset next_out and avail_out.
|
| 192 |
+
strm->next_out = outbuf;
|
| 193 |
+
strm->avail_out = sizeof(outbuf);
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
// Normally the return value of lzma_code() will be LZMA_OK
|
| 197 |
+
// until everything has been encoded.
|
| 198 |
+
if (ret != LZMA_OK) {
|
| 199 |
+
// Once everything has been encoded successfully, the
|
| 200 |
+
// return value of lzma_code() will be LZMA_STREAM_END.
|
| 201 |
+
//
|
| 202 |
+
// It is important to check for LZMA_STREAM_END. Do not
|
| 203 |
+
// assume that getting ret != LZMA_OK would mean that
|
| 204 |
+
// everything has gone well.
|
| 205 |
+
if (ret == LZMA_STREAM_END)
|
| 206 |
+
return true;
|
| 207 |
+
|
| 208 |
+
// It's not LZMA_OK nor LZMA_STREAM_END,
|
| 209 |
+
// so it must be an error code. See lzma/base.h
|
| 210 |
+
// (src/liblzma/api/lzma/base.h in the source package
|
| 211 |
+
// or e.g. /usr/include/lzma/base.h depending on the
|
| 212 |
+
// install prefix) for the list and documentation of
|
| 213 |
+
// possible values. Most values listen in lzma_ret
|
| 214 |
+
// enumeration aren't possible in this example.
|
| 215 |
+
const char *msg;
|
| 216 |
+
switch (ret) {
|
| 217 |
+
case LZMA_MEM_ERROR:
|
| 218 |
+
msg = "Memory allocation failed";
|
| 219 |
+
break;
|
| 220 |
+
|
| 221 |
+
case LZMA_DATA_ERROR:
|
| 222 |
+
// This error is returned if the compressed
|
| 223 |
+
// or uncompressed size get near 8 EiB
|
| 224 |
+
// (2^63 bytes) because that's where the .xz
|
| 225 |
+
// file format size limits currently are.
|
| 226 |
+
// That is, the possibility of this error
|
| 227 |
+
// is mostly theoretical unless you are doing
|
| 228 |
+
// something very unusual.
|
| 229 |
+
//
|
| 230 |
+
// Note that strm->total_in and strm->total_out
|
| 231 |
+
// have nothing to do with this error. Changing
|
| 232 |
+
// those variables won't increase or decrease
|
| 233 |
+
// the chance of getting this error.
|
| 234 |
+
msg = "File size limits exceeded";
|
| 235 |
+
break;
|
| 236 |
+
|
| 237 |
+
default:
|
| 238 |
+
// This is most likely LZMA_PROG_ERROR, but
|
| 239 |
+
// if this program is buggy (or liblzma has
|
| 240 |
+
// a bug), it may be e.g. LZMA_BUF_ERROR or
|
| 241 |
+
// LZMA_OPTIONS_ERROR too.
|
| 242 |
+
//
|
| 243 |
+
// It is inconvenient to have a separate
|
| 244 |
+
// error message for errors that should be
|
| 245 |
+
// impossible to occur, but knowing the error
|
| 246 |
+
// code is important for debugging. That's why
|
| 247 |
+
// it is good to print the error code at least
|
| 248 |
+
// when there is no good error message to show.
|
| 249 |
+
msg = "Unknown error, possibly a bug";
|
| 250 |
+
break;
|
| 251 |
+
}
|
| 252 |
+
|
| 253 |
+
fprintf(stderr, "Encoder error: %s (error code %u)\n",
|
| 254 |
+
msg, ret);
|
| 255 |
+
return false;
|
| 256 |
+
}
|
| 257 |
+
}
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
|
| 261 |
+
extern int
|
| 262 |
+
main(int argc, char **argv)
|
| 263 |
+
{
|
| 264 |
+
// Get the preset number from the command line.
|
| 265 |
+
uint32_t preset = get_preset(argc, argv);
|
| 266 |
+
|
| 267 |
+
// Initialize a lzma_stream structure. When it is allocated on stack,
|
| 268 |
+
// it is simplest to use LZMA_STREAM_INIT macro like below. When it
|
| 269 |
+
// is allocated on heap, using memset(strmptr, 0, sizeof(*strmptr))
|
| 270 |
+
// works (as long as NULL pointers are represented with zero bits
|
| 271 |
+
// as they are on practically all computers today).
|
| 272 |
+
lzma_stream strm = LZMA_STREAM_INIT;
|
| 273 |
+
|
| 274 |
+
// Initialize the encoder. If it succeeds, compress from
|
| 275 |
+
// stdin to stdout.
|
| 276 |
+
bool success = init_encoder(&strm, preset);
|
| 277 |
+
if (success)
|
| 278 |
+
success = compress(&strm, stdin, stdout);
|
| 279 |
+
|
| 280 |
+
// Free the memory allocated for the encoder. If we were encoding
|
| 281 |
+
// multiple files, this would only need to be done after the last
|
| 282 |
+
// file. See 02_decompress.c for handling of multiple files.
|
| 283 |
+
//
|
| 284 |
+
// It is OK to call lzma_end() multiple times or when it hasn't been
|
| 285 |
+
// actually used except initialized with LZMA_STREAM_INIT.
|
| 286 |
+
lzma_end(&strm);
|
| 287 |
+
|
| 288 |
+
// Close stdout to catch possible write errors that can occur
|
| 289 |
+
// when pending data is flushed from the stdio buffers.
|
| 290 |
+
if (fclose(stdout)) {
|
| 291 |
+
fprintf(stderr, "Write error: %s\n", strerror(errno));
|
| 292 |
+
success = false;
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
return success ? EXIT_SUCCESS : EXIT_FAILURE;
|
| 296 |
+
}
|
llava_next/share/doc/xz/examples/02_decompress.c
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
+
///////////////////////////////////////////////////////////////////////////////
|
| 4 |
+
//
|
| 5 |
+
/// \file 02_decompress.c
|
| 6 |
+
/// \brief Decompress .xz files to stdout
|
| 7 |
+
///
|
| 8 |
+
/// Usage: ./02_decompress INPUT_FILES... > OUTFILE
|
| 9 |
+
///
|
| 10 |
+
/// Example: ./02_decompress foo.xz bar.xz > foobar
|
| 11 |
+
//
|
| 12 |
+
// Author: Lasse Collin
|
| 13 |
+
//
|
| 14 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 15 |
+
|
| 16 |
+
#include <stdbool.h>
|
| 17 |
+
#include <stdlib.h>
|
| 18 |
+
#include <stdio.h>
|
| 19 |
+
#include <string.h>
|
| 20 |
+
#include <errno.h>
|
| 21 |
+
#include <lzma.h>
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
static bool
|
| 25 |
+
init_decoder(lzma_stream *strm)
|
| 26 |
+
{
|
| 27 |
+
// Initialize a .xz decoder. The decoder supports a memory usage limit
|
| 28 |
+
// and a set of flags.
|
| 29 |
+
//
|
| 30 |
+
// The memory usage of the decompressor depends on the settings used
|
| 31 |
+
// to compress a .xz file. It can vary from less than a megabyte to
|
| 32 |
+
// a few gigabytes, but in practice (at least for now) it rarely
|
| 33 |
+
// exceeds 65 MiB because that's how much memory is required to
|
| 34 |
+
// decompress files created with "xz -9". Settings requiring more
|
| 35 |
+
// memory take extra effort to use and don't (at least for now)
|
| 36 |
+
// provide significantly better compression in most cases.
|
| 37 |
+
//
|
| 38 |
+
// Memory usage limit is useful if it is important that the
|
| 39 |
+
// decompressor won't consume gigabytes of memory. The need
|
| 40 |
+
// for limiting depends on the application. In this example,
|
| 41 |
+
// no memory usage limiting is used. This is done by setting
|
| 42 |
+
// the limit to UINT64_MAX.
|
| 43 |
+
//
|
| 44 |
+
// The .xz format allows concatenating compressed files as is:
|
| 45 |
+
//
|
| 46 |
+
// echo foo | xz > foobar.xz
|
| 47 |
+
// echo bar | xz >> foobar.xz
|
| 48 |
+
//
|
| 49 |
+
// When decompressing normal standalone .xz files, LZMA_CONCATENATED
|
| 50 |
+
// should always be used to support decompression of concatenated
|
| 51 |
+
// .xz files. If LZMA_CONCATENATED isn't used, the decoder will stop
|
| 52 |
+
// after the first .xz stream. This can be useful when .xz data has
|
| 53 |
+
// been embedded inside another file format.
|
| 54 |
+
//
|
| 55 |
+
// Flags other than LZMA_CONCATENATED are supported too, and can
|
| 56 |
+
// be combined with bitwise-or. See lzma/container.h
|
| 57 |
+
// (src/liblzma/api/lzma/container.h in the source package or e.g.
|
| 58 |
+
// /usr/include/lzma/container.h depending on the install prefix)
|
| 59 |
+
// for details.
|
| 60 |
+
lzma_ret ret = lzma_stream_decoder(
|
| 61 |
+
strm, UINT64_MAX, LZMA_CONCATENATED);
|
| 62 |
+
|
| 63 |
+
// Return successfully if the initialization went fine.
|
| 64 |
+
if (ret == LZMA_OK)
|
| 65 |
+
return true;
|
| 66 |
+
|
| 67 |
+
// Something went wrong. The possible errors are documented in
|
| 68 |
+
// lzma/container.h (src/liblzma/api/lzma/container.h in the source
|
| 69 |
+
// package or e.g. /usr/include/lzma/container.h depending on the
|
| 70 |
+
// install prefix).
|
| 71 |
+
//
|
| 72 |
+
// Note that LZMA_MEMLIMIT_ERROR is never possible here. If you
|
| 73 |
+
// specify a very tiny limit, the error will be delayed until
|
| 74 |
+
// the first headers have been parsed by a call to lzma_code().
|
| 75 |
+
const char *msg;
|
| 76 |
+
switch (ret) {
|
| 77 |
+
case LZMA_MEM_ERROR:
|
| 78 |
+
msg = "Memory allocation failed";
|
| 79 |
+
break;
|
| 80 |
+
|
| 81 |
+
case LZMA_OPTIONS_ERROR:
|
| 82 |
+
msg = "Unsupported decompressor flags";
|
| 83 |
+
break;
|
| 84 |
+
|
| 85 |
+
default:
|
| 86 |
+
// This is most likely LZMA_PROG_ERROR indicating a bug in
|
| 87 |
+
// this program or in liblzma. It is inconvenient to have a
|
| 88 |
+
// separate error message for errors that should be impossible
|
| 89 |
+
// to occur, but knowing the error code is important for
|
| 90 |
+
// debugging. That's why it is good to print the error code
|
| 91 |
+
// at least when there is no good error message to show.
|
| 92 |
+
msg = "Unknown error, possibly a bug";
|
| 93 |
+
break;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
fprintf(stderr, "Error initializing the decoder: %s (error code %u)\n",
|
| 97 |
+
msg, ret);
|
| 98 |
+
return false;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
static bool
|
| 103 |
+
decompress(lzma_stream *strm, const char *inname, FILE *infile, FILE *outfile)
|
| 104 |
+
{
|
| 105 |
+
// When LZMA_CONCATENATED flag was used when initializing the decoder,
|
| 106 |
+
// we need to tell lzma_code() when there will be no more input.
|
| 107 |
+
// This is done by setting action to LZMA_FINISH instead of LZMA_RUN
|
| 108 |
+
// in the same way as it is done when encoding.
|
| 109 |
+
//
|
| 110 |
+
// When LZMA_CONCATENATED isn't used, there is no need to use
|
| 111 |
+
// LZMA_FINISH to tell when all the input has been read, but it
|
| 112 |
+
// is still OK to use it if you want. When LZMA_CONCATENATED isn't
|
| 113 |
+
// used, the decoder will stop after the first .xz stream. In that
|
| 114 |
+
// case some unused data may be left in strm->next_in.
|
| 115 |
+
lzma_action action = LZMA_RUN;
|
| 116 |
+
|
| 117 |
+
uint8_t inbuf[BUFSIZ];
|
| 118 |
+
uint8_t outbuf[BUFSIZ];
|
| 119 |
+
|
| 120 |
+
strm->next_in = NULL;
|
| 121 |
+
strm->avail_in = 0;
|
| 122 |
+
strm->next_out = outbuf;
|
| 123 |
+
strm->avail_out = sizeof(outbuf);
|
| 124 |
+
|
| 125 |
+
while (true) {
|
| 126 |
+
if (strm->avail_in == 0 && !feof(infile)) {
|
| 127 |
+
strm->next_in = inbuf;
|
| 128 |
+
strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
|
| 129 |
+
infile);
|
| 130 |
+
|
| 131 |
+
if (ferror(infile)) {
|
| 132 |
+
fprintf(stderr, "%s: Read error: %s\n",
|
| 133 |
+
inname, strerror(errno));
|
| 134 |
+
return false;
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
// Once the end of the input file has been reached,
|
| 138 |
+
// we need to tell lzma_code() that no more input
|
| 139 |
+
// will be coming. As said before, this isn't required
|
| 140 |
+
// if the LZMA_CONCATENATED flag isn't used when
|
| 141 |
+
// initializing the decoder.
|
| 142 |
+
if (feof(infile))
|
| 143 |
+
action = LZMA_FINISH;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
lzma_ret ret = lzma_code(strm, action);
|
| 147 |
+
|
| 148 |
+
if (strm->avail_out == 0 || ret == LZMA_STREAM_END) {
|
| 149 |
+
size_t write_size = sizeof(outbuf) - strm->avail_out;
|
| 150 |
+
|
| 151 |
+
if (fwrite(outbuf, 1, write_size, outfile)
|
| 152 |
+
!= write_size) {
|
| 153 |
+
fprintf(stderr, "Write error: %s\n",
|
| 154 |
+
strerror(errno));
|
| 155 |
+
return false;
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
strm->next_out = outbuf;
|
| 159 |
+
strm->avail_out = sizeof(outbuf);
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
if (ret != LZMA_OK) {
|
| 163 |
+
// Once everything has been decoded successfully, the
|
| 164 |
+
// return value of lzma_code() will be LZMA_STREAM_END.
|
| 165 |
+
//
|
| 166 |
+
// It is important to check for LZMA_STREAM_END. Do not
|
| 167 |
+
// assume that getting ret != LZMA_OK would mean that
|
| 168 |
+
// everything has gone well or that when you aren't
|
| 169 |
+
// getting more output it must have successfully
|
| 170 |
+
// decoded everything.
|
| 171 |
+
if (ret == LZMA_STREAM_END)
|
| 172 |
+
return true;
|
| 173 |
+
|
| 174 |
+
// It's not LZMA_OK nor LZMA_STREAM_END,
|
| 175 |
+
// so it must be an error code. See lzma/base.h
|
| 176 |
+
// (src/liblzma/api/lzma/base.h in the source package
|
| 177 |
+
// or e.g. /usr/include/lzma/base.h depending on the
|
| 178 |
+
// install prefix) for the list and documentation of
|
| 179 |
+
// possible values. Many values listen in lzma_ret
|
| 180 |
+
// enumeration aren't possible in this example, but
|
| 181 |
+
// can be made possible by enabling memory usage limit
|
| 182 |
+
// or adding flags to the decoder initialization.
|
| 183 |
+
const char *msg;
|
| 184 |
+
switch (ret) {
|
| 185 |
+
case LZMA_MEM_ERROR:
|
| 186 |
+
msg = "Memory allocation failed";
|
| 187 |
+
break;
|
| 188 |
+
|
| 189 |
+
case LZMA_FORMAT_ERROR:
|
| 190 |
+
// .xz magic bytes weren't found.
|
| 191 |
+
msg = "The input is not in the .xz format";
|
| 192 |
+
break;
|
| 193 |
+
|
| 194 |
+
case LZMA_OPTIONS_ERROR:
|
| 195 |
+
// For example, the headers specify a filter
|
| 196 |
+
// that isn't supported by this liblzma
|
| 197 |
+
// version (or it hasn't been enabled when
|
| 198 |
+
// building liblzma, but no-one sane does
|
| 199 |
+
// that unless building liblzma for an
|
| 200 |
+
// embedded system). Upgrading to a newer
|
| 201 |
+
// liblzma might help.
|
| 202 |
+
//
|
| 203 |
+
// Note that it is unlikely that the file has
|
| 204 |
+
// accidentally became corrupt if you get this
|
| 205 |
+
// error. The integrity of the .xz headers is
|
| 206 |
+
// always verified with a CRC32, so
|
| 207 |
+
// unintentionally corrupt files can be
|
| 208 |
+
// distinguished from unsupported files.
|
| 209 |
+
msg = "Unsupported compression options";
|
| 210 |
+
break;
|
| 211 |
+
|
| 212 |
+
case LZMA_DATA_ERROR:
|
| 213 |
+
msg = "Compressed file is corrupt";
|
| 214 |
+
break;
|
| 215 |
+
|
| 216 |
+
case LZMA_BUF_ERROR:
|
| 217 |
+
// Typically this error means that a valid
|
| 218 |
+
// file has got truncated, but it might also
|
| 219 |
+
// be a damaged part in the file that makes
|
| 220 |
+
// the decoder think the file is truncated.
|
| 221 |
+
// If you prefer, you can use the same error
|
| 222 |
+
// message for this as for LZMA_DATA_ERROR.
|
| 223 |
+
msg = "Compressed file is truncated or "
|
| 224 |
+
"otherwise corrupt";
|
| 225 |
+
break;
|
| 226 |
+
|
| 227 |
+
default:
|
| 228 |
+
// This is most likely LZMA_PROG_ERROR.
|
| 229 |
+
msg = "Unknown error, possibly a bug";
|
| 230 |
+
break;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
fprintf(stderr, "%s: Decoder error: "
|
| 234 |
+
"%s (error code %u)\n",
|
| 235 |
+
inname, msg, ret);
|
| 236 |
+
return false;
|
| 237 |
+
}
|
| 238 |
+
}
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
extern int
|
| 243 |
+
main(int argc, char **argv)
|
| 244 |
+
{
|
| 245 |
+
if (argc <= 1) {
|
| 246 |
+
fprintf(stderr, "Usage: %s FILES...\n", argv[0]);
|
| 247 |
+
return EXIT_FAILURE;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
lzma_stream strm = LZMA_STREAM_INIT;
|
| 251 |
+
|
| 252 |
+
bool success = true;
|
| 253 |
+
|
| 254 |
+
// Try to decompress all files.
|
| 255 |
+
for (int i = 1; i < argc; ++i) {
|
| 256 |
+
if (!init_decoder(&strm)) {
|
| 257 |
+
// Decoder initialization failed. There's no point
|
| 258 |
+
// to retry it so we need to exit.
|
| 259 |
+
success = false;
|
| 260 |
+
break;
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
FILE *infile = fopen(argv[i], "rb");
|
| 264 |
+
|
| 265 |
+
if (infile == NULL) {
|
| 266 |
+
fprintf(stderr, "%s: Error opening the "
|
| 267 |
+
"input file: %s\n",
|
| 268 |
+
argv[i], strerror(errno));
|
| 269 |
+
success = false;
|
| 270 |
+
} else {
|
| 271 |
+
success &= decompress(&strm, argv[i], infile, stdout);
|
| 272 |
+
fclose(infile);
|
| 273 |
+
}
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
// Free the memory allocated for the decoder. This only needs to be
|
| 277 |
+
// done after the last file.
|
| 278 |
+
lzma_end(&strm);
|
| 279 |
+
|
| 280 |
+
if (fclose(stdout)) {
|
| 281 |
+
fprintf(stderr,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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// SPDX-License-Identifier: 0BSD
|
| 2 |
+
|
| 3 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 4 |
+
//
|
| 5 |
+
/// \file 03_compress_custom.c
|
| 6 |
+
/// \brief Compress in multi-call mode using x86 BCJ and LZMA2
|
| 7 |
+
///
|
| 8 |
+
/// Usage: ./03_compress_custom < INFILE > OUTFILE
|
| 9 |
+
///
|
| 10 |
+
/// Example: ./03_compress_custom < foo > foo.xz
|
| 11 |
+
//
|
| 12 |
+
// Author: Lasse Collin
|
| 13 |
+
//
|
| 14 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 15 |
+
|
| 16 |
+
#include <stdbool.h>
|
| 17 |
+
#include <stdlib.h>
|
| 18 |
+
#include <stdio.h>
|
| 19 |
+
#include <string.h>
|
| 20 |
+
#include <errno.h>
|
| 21 |
+
#include <lzma.h>
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
static bool
|
| 25 |
+
init_encoder(lzma_stream *strm)
|
| 26 |
+
{
|
| 27 |
+
// Use the default preset (6) for LZMA2.
|
| 28 |
+
//
|
| 29 |
+
// The lzma_options_lzma structure and the lzma_lzma_preset() function
|
| 30 |
+
// are declared in lzma/lzma12.h (src/liblzma/api/lzma/lzma12.h in the
|
| 31 |
+
// source package or e.g. /usr/include/lzma/lzma12.h depending on
|
| 32 |
+
// the install prefix).
|
| 33 |
+
lzma_options_lzma opt_lzma2;
|
| 34 |
+
if (lzma_lzma_preset(&opt_lzma2, LZMA_PRESET_DEFAULT)) {
|
| 35 |
+
// It should never fail because the default preset
|
| 36 |
+
// (and presets 0-9 optionally with LZMA_PRESET_EXTREME)
|
| 37 |
+
// are supported by all stable liblzma versions.
|
| 38 |
+
//
|
| 39 |
+
// (The encoder initialization later in this function may
|
| 40 |
+
// still fail due to unsupported preset *if* the features
|
| 41 |
+
// required by the preset have been disabled at build time,
|
| 42 |
+
// but no-one does such things except on embedded systems.)
|
| 43 |
+
fprintf(stderr, "Unsupported preset, possibly a bug\n");
|
| 44 |
+
return false;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
// Now we could customize the LZMA2 options if we wanted. For example,
|
| 48 |
+
// we could set the dictionary size (opt_lzma2.dict_size) to
|
| 49 |
+
// something else than the default (8 MiB) of the default preset.
|
| 50 |
+
// See lzma/lzma12.h for details of all LZMA2 options.
|
| 51 |
+
//
|
| 52 |
+
// The x86 BCJ filter will try to modify the x86 instruction stream so
|
| 53 |
+
// that LZMA2 can compress it better. The x86 BCJ filter doesn't need
|
| 54 |
+
// any options so it will be set to NULL below.
|
| 55 |
+
//
|
| 56 |
+
// Construct the filter chain. The uncompressed data goes first to
|
| 57 |
+
// the first filter in the array, in this case the x86 BCJ filter.
|
| 58 |
+
// The array is always terminated by setting .id = LZMA_VLI_UNKNOWN.
|
| 59 |
+
//
|
| 60 |
+
// See lzma/filter.h for more information about the lzma_filter
|
| 61 |
+
// structure.
|
| 62 |
+
lzma_filter filters[] = {
|
| 63 |
+
{ .id = LZMA_FILTER_X86, .options = NULL },
|
| 64 |
+
{ .id = LZMA_FILTER_LZMA2, .options = &opt_lzma2 },
|
| 65 |
+
{ .id = LZMA_VLI_UNKNOWN, .options = NULL },
|
| 66 |
+
};
|
| 67 |
+
|
| 68 |
+
// Initialize the encoder using the custom filter chain.
|
| 69 |
+
lzma_ret ret = lzma_stream_encoder(strm, filters, LZMA_CHECK_CRC64);
|
| 70 |
+
|
| 71 |
+
if (ret == LZMA_OK)
|
| 72 |
+
return true;
|
| 73 |
+
|
| 74 |
+
const char *msg;
|
| 75 |
+
switch (ret) {
|
| 76 |
+
case LZMA_MEM_ERROR:
|
| 77 |
+
msg = "Memory allocation failed";
|
| 78 |
+
break;
|
| 79 |
+
|
| 80 |
+
case LZMA_OPTIONS_ERROR:
|
| 81 |
+
// We are no longer using a plain preset so this error
|
| 82 |
+
// message has been edited accordingly compared to
|
| 83 |
+
// 01_compress_easy.c.
|
| 84 |
+
msg = "Specified filter chain is not supported";
|
| 85 |
+
break;
|
| 86 |
+
|
| 87 |
+
case LZMA_UNSUPPORTED_CHECK:
|
| 88 |
+
msg = "Specified integrity check is not supported";
|
| 89 |
+
break;
|
| 90 |
+
|
| 91 |
+
default:
|
| 92 |
+
msg = "Unknown error, possibly a bug";
|
| 93 |
+
break;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
fprintf(stderr, "Error initializing the encoder: %s (error code %u)\n",
|
| 97 |
+
msg, ret);
|
| 98 |
+
return false;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
// This function is identical to the one in 01_compress_easy.c.
|
| 103 |
+
static bool
|
| 104 |
+
compress(lzma_stream *strm, FILE *infile, FILE *outfile)
|
| 105 |
+
{
|
| 106 |
+
lzma_action action = LZMA_RUN;
|
| 107 |
+
|
| 108 |
+
uint8_t inbuf[BUFSIZ];
|
| 109 |
+
uint8_t outbuf[BUFSIZ];
|
| 110 |
+
|
| 111 |
+
strm->next_in = NULL;
|
| 112 |
+
strm->avail_in = 0;
|
| 113 |
+
strm->next_out = outbuf;
|
| 114 |
+
strm->avail_out = sizeof(outbuf);
|
| 115 |
+
|
| 116 |
+
while (true) {
|
| 117 |
+
if (strm->avail_in == 0 && !feof(infile)) {
|
| 118 |
+
strm->next_in = inbuf;
|
| 119 |
+
strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
|
| 120 |
+
infile);
|
| 121 |
+
|
| 122 |
+
if (ferror(infile)) {
|
| 123 |
+
fprintf(stderr, "Read error: %s\n",
|
| 124 |
+
strerror(errno));
|
| 125 |
+
return false;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
if (feof(infile))
|
| 129 |
+
action = LZMA_FINISH;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
lzma_ret ret = lzma_code(strm, action);
|
| 133 |
+
|
| 134 |
+
if (strm->avail_out == 0 || ret == LZMA_STREAM_END) {
|
| 135 |
+
size_t write_size = sizeof(outbuf) - strm->avail_out;
|
| 136 |
+
|
| 137 |
+
if (fwrite(outbuf, 1, write_size, outfile)
|
| 138 |
+
!= write_size) {
|
| 139 |
+
fprintf(stderr, "Write error: %s\n",
|
| 140 |
+
strerror(errno));
|
| 141 |
+
return false;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
strm->next_out = outbuf;
|
| 145 |
+
strm->avail_out = sizeof(outbuf);
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
if (ret != LZMA_OK) {
|
| 149 |
+
if (ret == LZMA_STREAM_END)
|
| 150 |
+
return true;
|
| 151 |
+
|
| 152 |
+
const char *msg;
|
| 153 |
+
switch (ret) {
|
| 154 |
+
case LZMA_MEM_ERROR:
|
| 155 |
+
msg = "Memory allocation failed";
|
| 156 |
+
break;
|
| 157 |
+
|
| 158 |
+
case LZMA_DATA_ERROR:
|
| 159 |
+
msg = "File size limits exceeded";
|
| 160 |
+
break;
|
| 161 |
+
|
| 162 |
+
default:
|
| 163 |
+
msg = "Unknown error, possibly a bug";
|
| 164 |
+
break;
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
fprintf(stderr, "Encoder error: %s (error code %u)\n",
|
| 168 |
+
msg, ret);
|
| 169 |
+
return false;
|
| 170 |
+
}
|
| 171 |
+
}
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
extern int
|
| 176 |
+
main(void)
|
| 177 |
+
{
|
| 178 |
+
lzma_stream strm = LZMA_STREAM_INIT;
|
| 179 |
+
|
| 180 |
+
bool success = init_encoder(&strm);
|
| 181 |
+
if (success)
|
| 182 |
+
success = compress(&strm, stdin, stdout);
|
| 183 |
+
|
| 184 |
+
lzma_end(&strm);
|
| 185 |
+
|
| 186 |
+
if (fclose(stdout)) {
|
| 187 |
+
fprintf(stderr, "Write error: %s\n", strerror(errno));
|
| 188 |
+
success = false;
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
return success ? EXIT_SUCCESS : EXIT_FAILURE;
|
| 192 |
+
}
|
llava_next/share/doc/xz/examples/04_compress_easy_mt.c
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// SPDX-License-Identifier: 0BSD
|
| 2 |
+
|
| 3 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 4 |
+
//
|
| 5 |
+
/// \file 04_compress_easy_mt.c
|
| 6 |
+
/// \brief Compress in multi-call mode using LZMA2 in multi-threaded mode
|
| 7 |
+
///
|
| 8 |
+
/// Usage: ./04_compress_easy_mt < INFILE > OUTFILE
|
| 9 |
+
///
|
| 10 |
+
/// Example: ./04_compress_easy_mt < foo > foo.xz
|
| 11 |
+
//
|
| 12 |
+
// Author: Lasse Collin
|
| 13 |
+
//
|
| 14 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 15 |
+
|
| 16 |
+
#include <stdbool.h>
|
| 17 |
+
#include <stdlib.h>
|
| 18 |
+
#include <stdio.h>
|
| 19 |
+
#include <string.h>
|
| 20 |
+
#include <errno.h>
|
| 21 |
+
#include <lzma.h>
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
static bool
|
| 25 |
+
init_encoder(lzma_stream *strm)
|
| 26 |
+
{
|
| 27 |
+
// The threaded encoder takes the options as pointer to
|
| 28 |
+
// a lzma_mt structure.
|
| 29 |
+
lzma_mt mt = {
|
| 30 |
+
// No flags are needed.
|
| 31 |
+
.flags = 0,
|
| 32 |
+
|
| 33 |
+
// Let liblzma determine a sane block size.
|
| 34 |
+
.block_size = 0,
|
| 35 |
+
|
| 36 |
+
// Use no timeout for lzma_code() calls by setting timeout
|
| 37 |
+
// to zero. That is, sometimes lzma_code() might block for
|
| 38 |
+
// a long time (from several seconds to even minutes).
|
| 39 |
+
// If this is not OK, for example due to progress indicator
|
| 40 |
+
// needing updates, specify a timeout in milliseconds here.
|
| 41 |
+
// See the documentation of lzma_mt in lzma/container.h for
|
| 42 |
+
// information how to choose a reasonable timeout.
|
| 43 |
+
.timeout = 0,
|
| 44 |
+
|
| 45 |
+
// Use the default preset (6) for LZMA2.
|
| 46 |
+
// To use a preset, filters must be set to NULL.
|
| 47 |
+
.preset = LZMA_PRESET_DEFAULT,
|
| 48 |
+
.filters = NULL,
|
| 49 |
+
|
| 50 |
+
// Use CRC64 for integrity checking. See also
|
| 51 |
+
// 01_compress_easy.c about choosing the integrity check.
|
| 52 |
+
.check = LZMA_CHECK_CRC64,
|
| 53 |
+
};
|
| 54 |
+
|
| 55 |
+
// Detect how many threads the CPU supports.
|
| 56 |
+
mt.threads = lzma_cputhreads();
|
| 57 |
+
|
| 58 |
+
// If the number of CPU cores/threads cannot be detected,
|
| 59 |
+
// use one thread. Note that this isn't the same as the normal
|
| 60 |
+
// single-threaded mode as this will still split the data into
|
| 61 |
+
// blocks and use more RAM than the normal single-threaded mode.
|
| 62 |
+
// You may want to consider using lzma_easy_encoder() or
|
| 63 |
+
// lzma_stream_encoder() instead of lzma_stream_encoder_mt() if
|
| 64 |
+
// lzma_cputhreads() returns 0 or 1.
|
| 65 |
+
if (mt.threads == 0)
|
| 66 |
+
mt.threads = 1;
|
| 67 |
+
|
| 68 |
+
// If the number of CPU cores/threads exceeds threads_max,
|
| 69 |
+
// limit the number of threads to keep memory usage lower.
|
| 70 |
+
// The number 8 is arbitrarily chosen and may be too low or
|
| 71 |
+
// high depending on the compression preset and the computer
|
| 72 |
+
// being used.
|
| 73 |
+
//
|
| 74 |
+
// FIXME: A better way could be to check the amount of RAM
|
| 75 |
+
// (or available RAM) and use lzma_stream_encoder_mt_memusage()
|
| 76 |
+
// to determine if the number of threads should be reduced.
|
| 77 |
+
const uint32_t threads_max = 8;
|
| 78 |
+
if (mt.threads > threads_max)
|
| 79 |
+
mt.threads = threads_max;
|
| 80 |
+
|
| 81 |
+
// Initialize the threaded encoder.
|
| 82 |
+
lzma_ret ret = lzma_stream_encoder_mt(strm, &mt);
|
| 83 |
+
|
| 84 |
+
if (ret == LZMA_OK)
|
| 85 |
+
return true;
|
| 86 |
+
|
| 87 |
+
const char *msg;
|
| 88 |
+
switch (ret) {
|
| 89 |
+
case LZMA_MEM_ERROR:
|
| 90 |
+
msg = "Memory allocation failed";
|
| 91 |
+
break;
|
| 92 |
+
|
| 93 |
+
case LZMA_OPTIONS_ERROR:
|
| 94 |
+
// We are no longer using a plain preset so this error
|
| 95 |
+
// message has been edited accordingly compared to
|
| 96 |
+
// 01_compress_easy.c.
|
| 97 |
+
msg = "Specified filter chain is not supported";
|
| 98 |
+
break;
|
| 99 |
+
|
| 100 |
+
case LZMA_UNSUPPORTED_CHECK:
|
| 101 |
+
msg = "Specified integrity check is not supported";
|
| 102 |
+
break;
|
| 103 |
+
|
| 104 |
+
default:
|
| 105 |
+
msg = "Unknown error, possibly a bug";
|
| 106 |
+
break;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
fprintf(stderr, "Error initializing the encoder: %s (error code %u)\n",
|
| 110 |
+
msg, ret);
|
| 111 |
+
return false;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
// This function is identical to the one in 01_compress_easy.c.
|
| 116 |
+
static bool
|
| 117 |
+
compress(lzma_stream *strm, FILE *infile, FILE *outfile)
|
| 118 |
+
{
|
| 119 |
+
lzma_action action = LZMA_RUN;
|
| 120 |
+
|
| 121 |
+
uint8_t inbuf[BUFSIZ];
|
| 122 |
+
uint8_t outbuf[BUFSIZ];
|
| 123 |
+
|
| 124 |
+
strm->next_in = NULL;
|
| 125 |
+
strm->avail_in = 0;
|
| 126 |
+
strm->next_out = outbuf;
|
| 127 |
+
strm->avail_out = sizeof(outbuf);
|
| 128 |
+
|
| 129 |
+
while (true) {
|
| 130 |
+
if (strm->avail_in == 0 && !feof(infile)) {
|
| 131 |
+
strm->next_in = inbuf;
|
| 132 |
+
strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
|
| 133 |
+
infile);
|
| 134 |
+
|
| 135 |
+
if (ferror(infile)) {
|
| 136 |
+
fprintf(stderr, "Read error: %s\n",
|
| 137 |
+
strerror(errno));
|
| 138 |
+
return false;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
if (feof(infile))
|
| 142 |
+
action = LZMA_FINISH;
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
lzma_ret ret = lzma_code(strm, action);
|
| 146 |
+
|
| 147 |
+
if (strm->avail_out == 0 || ret == LZMA_STREAM_END) {
|
| 148 |
+
size_t write_size = sizeof(outbuf) - strm->avail_out;
|
| 149 |
+
|
| 150 |
+
if (fwrite(outbuf, 1, write_size, outfile)
|
| 151 |
+
!= write_size) {
|
| 152 |
+
fprintf(stderr, "Write error: %s\n",
|
| 153 |
+
strerror(errno));
|
| 154 |
+
return false;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
strm->next_out = outbuf;
|
| 158 |
+
strm->avail_out = sizeof(outbuf);
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
if (ret != LZMA_OK) {
|
| 162 |
+
if (ret == LZMA_STREAM_END)
|
| 163 |
+
return true;
|
| 164 |
+
|
| 165 |
+
const char *msg;
|
| 166 |
+
switch (ret) {
|
| 167 |
+
case LZMA_MEM_ERROR:
|
| 168 |
+
msg = "Memory allocation failed";
|
| 169 |
+
break;
|
| 170 |
+
|
| 171 |
+
case LZMA_DATA_ERROR:
|
| 172 |
+
msg = "File size limits exceeded";
|
| 173 |
+
break;
|
| 174 |
+
|
| 175 |
+
default:
|
| 176 |
+
msg = "Unknown error, possibly a bug";
|
| 177 |
+
break;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
fprintf(stderr, "Encoder error: %s (error code %u)\n",
|
| 181 |
+
msg, ret);
|
| 182 |
+
return false;
|
| 183 |
+
}
|
| 184 |
+
}
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
extern int
|
| 189 |
+
main(void)
|
| 190 |
+
{
|
| 191 |
+
lzma_stream strm = LZMA_STREAM_INIT;
|
| 192 |
+
|
| 193 |
+
bool success = init_encoder(&strm);
|
| 194 |
+
if (success)
|
| 195 |
+
success = compress(&strm, stdin, stdout);
|
| 196 |
+
|
| 197 |
+
lzma_end(&strm);
|
| 198 |
+
|
| 199 |
+
if (fclose(stdout)) {
|
| 200 |
+
fprintf(stderr, "Write error: %s\n", strerror(errno));
|
| 201 |
+
success = false;
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
return success ? EXIT_SUCCESS : EXIT_FAILURE;
|
| 205 |
+
}
|
llava_next/share/doc/xz/examples/11_file_info.c
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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 5 |
+
/// \file 11_file_info.c
|
| 6 |
+
/// \brief Get uncompressed size of .xz file(s)
|
| 7 |
+
///
|
| 8 |
+
/// Usage: ./11_file_info INFILE1.xz [INFILEn.xz]...
|
| 9 |
+
///
|
| 10 |
+
/// Example: ./11_file_info foo.xz
|
| 11 |
+
//
|
| 12 |
+
// Author: Lasse Collin
|
| 13 |
+
//
|
| 14 |
+
///////////////////////////////////////////////////////////////////////////////
|
| 15 |
+
|
| 16 |
+
#include <stdbool.h>
|
| 17 |
+
#include <inttypes.h>
|
| 18 |
+
#include <stdlib.h>
|
| 19 |
+
#include <stdio.h>
|
| 20 |
+
#include <string.h>
|
| 21 |
+
#include <errno.h>
|
| 22 |
+
#include <lzma.h>
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
static bool
|
| 26 |
+
print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
|
| 27 |
+
{
|
| 28 |
+
// Get the file size. In standard C it can be done by seeking to
|
| 29 |
+
// the end of the file and then getting the file position.
|
| 30 |
+
// In POSIX one can use fstat() and then st_size from struct stat.
|
| 31 |
+
// Also note that fseek() and ftell() use long and thus don't support
|
| 32 |
+
// large files on 32-bit systems (POSIX versions fseeko() and
|
| 33 |
+
// ftello() can support large files).
|
| 34 |
+
if (fseek(infile, 0, SEEK_END)) {
|
| 35 |
+
fprintf(stderr, "Error seeking the file '%s': %s\n",
|
| 36 |
+
filename, strerror(errno));
|
| 37 |
+
return false;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
const long file_size = ftell(infile);
|
| 41 |
+
|
| 42 |
+
// The decoder wants to start from the beginning of the .xz file.
|
| 43 |
+
rewind(infile);
|
| 44 |
+
|
| 45 |
+
// Initialize the decoder.
|
| 46 |
+
lzma_index *i;
|
| 47 |
+
lzma_ret ret = lzma_file_info_decoder(strm, &i, UINT64_MAX,
|
| 48 |
+
(uint64_t)file_size);
|
| 49 |
+
switch (ret) {
|
| 50 |
+
case LZMA_OK:
|
| 51 |
+
// Initialization succeeded.
|
| 52 |
+
break;
|
| 53 |
+
|
| 54 |
+
case LZMA_MEM_ERROR:
|
| 55 |
+
fprintf(stderr, "Out of memory when initializing "
|
| 56 |
+
"the .xz file info decoder\n");
|
| 57 |
+
return false;
|
| 58 |
+
|
| 59 |
+
case LZMA_PROG_ERROR:
|
| 60 |
+
default:
|
| 61 |
+
fprintf(stderr, "Unknown error, possibly a bug\n");
|
| 62 |
+
return false;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
// This example program reuses the same lzma_stream structure
|
| 66 |
+
// for multiple files, so we need to reset this when starting
|
| 67 |
+
// a new file.
|
| 68 |
+
strm->avail_in = 0;
|
| 69 |
+
|
| 70 |
+
// Buffer for input data.
|
| 71 |
+
uint8_t inbuf[BUFSIZ];
|
| 72 |
+
|
| 73 |
+
// Pass data to the decoder and seek when needed.
|
| 74 |
+
while (true) {
|
| 75 |
+
if (strm->avail_in == 0) {
|
| 76 |
+
strm->next_in = inbuf;
|
| 77 |
+
strm->avail_in = fread(inbuf, 1, sizeof(inbuf),
|
| 78 |
+
infile);
|
| 79 |
+
|
| 80 |
+
if (ferror(infile)) {
|
| 81 |
+
fprintf(stderr,
|
| 82 |
+
"Error reading from '%s': %s\n",
|
| 83 |
+
filename, strerror(errno));
|
| 84 |
+
return false;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
// We don't need to care about hitting the end of
|
| 88 |
+
// the file so no need to check for feof().
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
ret = lzma_code(strm, LZMA_RUN);
|
| 92 |
+
|
| 93 |
+
switch (ret) {
|
| 94 |
+
case LZMA_OK:
|
| 95 |
+
break;
|
| 96 |
+
|
| 97 |
+
case LZMA_SEEK_NEEDED:
|
| 98 |
+
// The cast is safe because liblzma won't ask us to
|
| 99 |
+
// seek past the known size of the input file which
|
| 100 |
+
// did fit into a long.
|
| 101 |
+
//
|
| 102 |
+
// NOTE: Remember to change these to off_t if you
|
| 103 |
+
// switch fseeko() or lseek().
|
| 104 |
+
if (fseek(infile, (long)(strm->seek_pos), SEEK_SET)) {
|
| 105 |
+
fprintf(stderr, "Error seeking the "
|
| 106 |
+
"file '%s': %s\n",
|
| 107 |
+
filename, strerror(errno));
|
| 108 |
+
return false;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
// The old data in the inbuf is useless now. Set
|
| 112 |
+
// avail_in to zero so that we will read new input
|
| 113 |
+
// from the new file position on the next iteration
|
| 114 |
+
// of this loop.
|
| 115 |
+
strm->avail_in = 0;
|
| 116 |
+
break;
|
| 117 |
+
|
| 118 |
+
case LZMA_STREAM_END:
|
| 119 |
+
// File information was successfully decoded.
|
| 120 |
+
// See <lzma/index.h> for functions that can be
|
| 121 |
+
// used on it. In this example we just print
|
| 122 |
+
// the uncompressed size (in bytes) of
|
| 123 |
+
// the .xz file followed by its file name.
|
| 124 |
+
printf("%10" PRIu64 " %s\n",
|
| 125 |
+
lzma_index_uncompressed_size(i),
|
| 126 |
+
filename);
|
| 127 |
+
|
| 128 |
+
// Free the memory of the lzma_index structure.
|
| 129 |
+
lzma_index_end(i, NULL);
|
| 130 |
+
|
| 131 |
+
return true;
|
| 132 |
+
|
| 133 |
+
case LZMA_FORMAT_ERROR:
|
| 134 |
+
// .xz magic bytes weren't found.
|
| 135 |
+
fprintf(stderr, "The file '%s' is not "
|
| 136 |
+
"in the .xz format\n", filename);
|
| 137 |
+
return false;
|
| 138 |
+
|
| 139 |
+
case LZMA_OPTIONS_ERROR:
|
| 140 |
+
fprintf(stderr, "The file '%s' has .xz headers that "
|
| 141 |
+
"are not supported by this liblzma "
|
| 142 |
+
"version\n", filename);
|
| 143 |
+
return false;
|
| 144 |
+
|
| 145 |
+
case LZMA_DATA_ERROR:
|
| 146 |
+
fprintf(stderr, "The file '%s' is corrupt\n",
|
| 147 |
+
filename);
|
| 148 |
+
return false;
|
| 149 |
+
|
| 150 |
+
case LZMA_MEM_ERROR:
|
| 151 |
+
fprintf(stderr, "Memory allocation failed when "
|
| 152 |
+
"decoding the file '%s'\n", filename);
|
| 153 |
+
return false;
|
| 154 |
+
|
| 155 |
+
// LZMA_MEMLIMIT_ERROR shouldn't happen because we used
|
| 156 |
+
// UINT64_MAX as the limit.
|
| 157 |
+
//
|
| 158 |
+
// LZMA_BUF_ERROR shouldn't happen because we always provide
|
| 159 |
+
// new input when the input buffer is empty. The decoder
|
| 160 |
+
// knows the input file size and thus won't try to read past
|
| 161 |
+
// the end of the file.
|
| 162 |
+
case LZMA_MEMLIMIT_ERROR:
|
| 163 |
+
case LZMA_BUF_ERROR:
|
| 164 |
+
case LZMA_PROG_ERROR:
|
| 165 |
+
default:
|
| 166 |
+
fprintf(stderr, "Unknown error, possibly a bug\n");
|
| 167 |
+
return false;
|
| 168 |
+
}
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
// This line is never reached.
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
extern int
|
| 176 |
+
main(int argc, char **argv)
|
| 177 |
+
{
|
| 178 |
+
bool success = true;
|
| 179 |
+
lzma_stream strm = LZMA_STREAM_INIT;
|
| 180 |
+
|
| 181 |
+
for (int i = 1; i < argc; ++i) {
|
| 182 |
+
FILE *infile = fopen(argv[i], "rb");
|
| 183 |
+
|
| 184 |
+
if (infile == NULL) {
|
| 185 |
+
fprintf(stderr, "Cannot open the file '%s': %s\n",
|
| 186 |
+
argv[i], strerror(errno));
|
| 187 |
+
success = false;
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
success &= print_file_size(&strm, infile, argv[i]);
|
| 191 |
+
|
| 192 |
+
(void)fclose(infile);
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
lzma_end(&strm);
|
| 196 |
+
|
| 197 |
+
// Close stdout to catch possible write errors that can occur
|
| 198 |
+
// when pending data is flushed from the stdio buffers.
|
| 199 |
+
if (fclose(stdout)) {
|
| 200 |
+
fprintf(stderr, "Write error: %s\n", strerror(errno));
|
| 201 |
+
success = false;
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
return success ? EXIT_SUCCESS : EXIT_FAILURE;
|
| 205 |
+
}
|
llava_next/share/doc/xz/examples/Makefile
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: 0BSD
|
| 2 |
+
# Author: Lasse Collin
|
| 3 |
+
|
| 4 |
+
CC = c99
|
| 5 |
+
CFLAGS = -g
|
| 6 |
+
LDFLAGS = -llzma
|
| 7 |
+
|
| 8 |
+
PROGS = \
|
| 9 |
+
01_compress_easy \
|
| 10 |
+
02_decompress \
|
| 11 |
+
03_compress_custom \
|
| 12 |
+
04_compress_easy_mt \
|
| 13 |
+
11_file_info
|
| 14 |
+
|
| 15 |
+
all: $(PROGS)
|
| 16 |
+
|
| 17 |
+
.c:
|
| 18 |
+
$(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
|
| 19 |
+
|
| 20 |
+
clean:
|
| 21 |
+
-rm -f $(PROGS)
|
llava_next/share/doc/xz/faq.txt
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
XZ Utils FAQ
|
| 3 |
+
============
|
| 4 |
+
|
| 5 |
+
Q: What do the letters XZ mean?
|
| 6 |
+
|
| 7 |
+
A: Nothing. They are just two letters, which come from the file format
|
| 8 |
+
suffix .xz. The .xz suffix was selected, because it seemed to be
|
| 9 |
+
pretty much unused. It has no deeper meaning.
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
Q: What are LZMA and LZMA2?
|
| 13 |
+
|
| 14 |
+
A: LZMA stands for Lempel-Ziv-Markov chain-Algorithm. It is the name
|
| 15 |
+
of the compression algorithm designed by Igor Pavlov for 7-Zip.
|
| 16 |
+
LZMA is based on LZ77 and range encoding.
|
| 17 |
+
|
| 18 |
+
LZMA2 is an updated version of the original LZMA to fix a couple of
|
| 19 |
+
practical issues. In context of XZ Utils, LZMA is called LZMA1 to
|
| 20 |
+
emphasize that LZMA is not the same thing as LZMA2. LZMA2 is the
|
| 21 |
+
primary compression algorithm in the .xz file format.
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
Q: There are many LZMA related projects. How does XZ Utils relate to them?
|
| 25 |
+
|
| 26 |
+
A: 7-Zip and LZMA SDK are the original projects. LZMA SDK is roughly
|
| 27 |
+
a subset of the 7-Zip source tree.
|
| 28 |
+
|
| 29 |
+
p7zip is 7-Zip's command-line tools ported to POSIX-like systems.
|
| 30 |
+
|
| 31 |
+
LZMA Utils provide a gzip-like lzma tool for POSIX-like systems.
|
| 32 |
+
LZMA Utils are based on LZMA SDK. XZ Utils are the successor to
|
| 33 |
+
LZMA Utils.
|
| 34 |
+
|
| 35 |
+
There are several other projects using LZMA. Most are more or less
|
| 36 |
+
based on LZMA SDK. See <https://7-zip.org/links.html>.
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
Q: Why is liblzma named liblzma if its primary file format is .xz?
|
| 40 |
+
Shouldn't it be e.g. libxz?
|
| 41 |
+
|
| 42 |
+
A: When the designing of the .xz format began, the idea was to replace
|
| 43 |
+
the .lzma format and use the same .lzma suffix. It would have been
|
| 44 |
+
quite OK to reuse the suffix when there were very few .lzma files
|
| 45 |
+
around. However, the old .lzma format became popular before the
|
| 46 |
+
new format was finished. The new format was renamed to .xz but the
|
| 47 |
+
name of liblzma wasn't changed.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
Q: Do XZ Utils support the .7z format?
|
| 51 |
+
|
| 52 |
+
A: No. Use 7-Zip (Windows) or p7zip (POSIX-like systems) to handle .7z
|
| 53 |
+
files.
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
Q: I have many .tar.7z files. Can I convert them to .tar.xz without
|
| 57 |
+
spending hours recompressing the data?
|
| 58 |
+
|
| 59 |
+
A: In the "extra" directory, there is a script named 7z2lzma.bash which
|
| 60 |
+
is able to convert some .7z files to the .lzma format (not .xz). It
|
| 61 |
+
needs the 7za (or 7z) command from p7zip. The script may silently
|
| 62 |
+
produce corrupt output if certain assumptions are not met, so
|
| 63 |
+
decompress the resulting .lzma file and compare it against the
|
| 64 |
+
original before deleting the original file!
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
Q: I have many .lzma files. Can I quickly convert them to the .xz format?
|
| 68 |
+
|
| 69 |
+
A: For now, no. Since XZ Utils supports the .lzma format, it's usually
|
| 70 |
+
not too bad to keep the old files in the old format. If you want to
|
| 71 |
+
do the conversion anyway, you need to decompress the .lzma files and
|
| 72 |
+
then recompress to the .xz format.
|
| 73 |
+
|
| 74 |
+
Technically, there is a way to make the conversion relatively fast
|
| 75 |
+
(roughly twice the time that normal decompression takes). Writing
|
| 76 |
+
such a tool would take quite a bit of time though, and would probably
|
| 77 |
+
be useful to only a few people. If you really want such a conversion
|
| 78 |
+
tool, contact Lasse Collin and offer some money.
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
Q: I have installed xz, but my tar doesn't recognize .tar.xz files.
|
| 82 |
+
How can I extract .tar.xz files?
|
| 83 |
+
|
| 84 |
+
A: xz -dc foo.tar.xz | tar xf -
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
Q: Can I recover parts of a broken .xz file (e.g. a corrupted CD-R)?
|
| 88 |
+
|
| 89 |
+
A: It may be possible if the file consists of multiple blocks, which
|
| 90 |
+
typically is not the case if the file was created in single-threaded
|
| 91 |
+
mode. There is no recovery program yet.
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
Q: Is (some part of) XZ Utils patented?
|
| 95 |
+
|
| 96 |
+
A: Lasse Collin is not aware of any patents that could affect XZ Utils.
|
| 97 |
+
However, due to the nature of software patents, it's not possible to
|
| 98 |
+
guarantee that XZ Utils isn't affected by any third party patent(s).
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
Q: Where can I find documentation about the file format and algorithms?
|
| 102 |
+
|
| 103 |
+
A: The .xz format is documented in xz-file-format.txt. It is a container
|
| 104 |
+
format only, and doesn't include descriptions of any non-trivial
|
| 105 |
+
filters.
|
| 106 |
+
|
| 107 |
+
Documenting LZMA and LZMA2 is planned, but for now, there is no other
|
| 108 |
+
documentation than the source code. Before you begin, you should know
|
| 109 |
+
the basics of LZ77 and range-coding algorithms. LZMA is based on LZ77,
|
| 110 |
+
but LZMA is a lot more complex. Range coding is used to compress
|
| 111 |
+
the final bitstream like Huffman coding is used in Deflate.
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
Q: I cannot find BCJ and BCJ2 filters. Don't they exist in liblzma?
|
| 115 |
+
|
| 116 |
+
A: BCJ filter is called "x86" in liblzma. BCJ2 is not included,
|
| 117 |
+
because it requires using more than one encoded output stream.
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
Q: I need to use a script that runs "xz -9". On a system with 256 MiB
|
| 121 |
+
of RAM, xz says that it cannot allocate memory. Can I make the
|
| 122 |
+
script work without modifying it?
|
| 123 |
+
|
| 124 |
+
A: Set a default memory usage limit for compression. You can do it e.g.
|
| 125 |
+
in a shell initialization script such as ~/.bashrc or /etc/profile:
|
| 126 |
+
|
| 127 |
+
XZ_DEFAULTS=--memlimit-compress=150MiB
|
| 128 |
+
export XZ_DEFAULTS
|
| 129 |
+
|
| 130 |
+
xz will then scale the compression settings down so that the given
|
| 131 |
+
memory usage limit is not reached. This way xz shouldn't run out
|
| 132 |
+
of memory.
|
| 133 |
+
|
| 134 |
+
Check also that memory-related resource limits are high enough.
|
| 135 |
+
On most systems, "ulimit -a" will show the current resource limits.
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
Q: How do I create files that can be decompressed with XZ Embedded?
|
| 139 |
+
|
| 140 |
+
A: See the documentation in XZ Embedded. In short, something like
|
| 141 |
+
this is a good start:
|
| 142 |
+
|
| 143 |
+
xz --check=crc32 --lzma2=preset=6e,dict=64KiB
|
| 144 |
+
|
| 145 |
+
Or if a BCJ filter is needed too, e.g. if compressing
|
| 146 |
+
a kernel image for PowerPC:
|
| 147 |
+
|
| 148 |
+
xz --check=crc32 --powerpc --lzma2=preset=6e,dict=64KiB
|
| 149 |
+
|
| 150 |
+
Adjust the dictionary size to get a good compromise between
|
| 151 |
+
compression ratio and decompressor memory usage. Note that
|
| 152 |
+
in single-call decompression mode of XZ Embedded, a big
|
| 153 |
+
dictionary doesn't increase memory usage.
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
Q: How is multi-threaded compression implemented in XZ Utils?
|
| 157 |
+
|
| 158 |
+
A: The simplest method is splitting the uncompressed data into blocks
|
| 159 |
+
and compressing them in parallel independent from each other.
|
| 160 |
+
This is currently the only threading method supported in XZ Utils.
|
| 161 |
+
Since the blocks are compressed independently, they can also be
|
| 162 |
+
decompressed independently. Together with the index feature in .xz,
|
| 163 |
+
this allows using threads to create .xz files for random-access
|
| 164 |
+
reading. This also makes threaded decompression possible.
|
| 165 |
+
|
| 166 |
+
The independent blocks method has a couple of disadvantages too. It
|
| 167 |
+
will compress worse than a single-block method. Often the difference
|
| 168 |
+
is not too big (maybe 1-2 %) but sometimes it can be too big. Also,
|
| 169 |
+
the memory usage of the compressor increases linearly when adding
|
| 170 |
+
threads.
|
| 171 |
+
|
| 172 |
+
At least two other threading methods are possible but these haven't
|
| 173 |
+
been implemented in XZ Utils:
|
| 174 |
+
|
| 175 |
+
Match finder parallelization has been in 7-Zip for ages. It doesn't
|
| 176 |
+
affect compression ratio or memory usage significantly. Among the
|
| 177 |
+
three threading methods, only this is useful when compressing small
|
| 178 |
+
files (files that are not significantly bigger than the dictionary).
|
| 179 |
+
Unfortunately this method scales only to about two CPU cores.
|
| 180 |
+
|
| 181 |
+
The third method is pigz-style threading (I use that name, because
|
| 182 |
+
pigz <https://www.zlib.net/pigz/> uses that method). It doesn't
|
| 183 |
+
affect compression ratio significantly and scales to many cores.
|
| 184 |
+
The memory usage scales linearly when threads are added. This isn't
|
| 185 |
+
significant with pigz, because Deflate uses only a 32 KiB dictionary,
|
| 186 |
+
but with LZMA2 the memory usage will increase dramatically just like
|
| 187 |
+
with the independent-blocks method. There is also a constant
|
| 188 |
+
computational overhead, which may make pigz-method a bit dull on
|
| 189 |
+
dual-core compared to the parallel match finder method, but with more
|
| 190 |
+
cores the overhead is not a big deal anymore.
|
| 191 |
+
|
| 192 |
+
Combining the threading methods will be possible and also useful.
|
| 193 |
+
For example, combining match finder parallelization with pigz-style
|
| 194 |
+
threading or independent-blocks-threading can cut the memory usage
|
| 195 |
+
by 50 %.
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
Q: I told xz to use many threads but it is using only one or two
|
| 199 |
+
processor cores. What is wrong?
|
| 200 |
+
|
| 201 |
+
A: Since multi-threaded compression is done by splitting the data into
|
| 202 |
+
blocks that are compressed individually, if the input file is too
|
| 203 |
+
small for the block size, then many threads cannot be used. The
|
| 204 |
+
default block size increases when the compression level is
|
| 205 |
+
increased. For example, xz -6 uses 8 MiB LZMA2 dictionary and
|
| 206 |
+
24 MiB blocks, and xz -9 uses 64 MiB LZMA dictionary and 192 MiB
|
| 207 |
+
blocks. If the input file is 100 MiB, xz -6 can use five threads
|
| 208 |
+
of which one will finish quickly as it has only 4 MiB to compress.
|
| 209 |
+
However, for the same file, xz -9 can only use one thread.
|
| 210 |
+
|
| 211 |
+
One can adjust block size with --block-size=SIZE but making the
|
| 212 |
+
block size smaller than LZMA2 dictionary is waste of RAM: using
|
| 213 |
+
xz -9 with 6 MiB blocks isn't any better than using xz -6 with
|
| 214 |
+
6 MiB blocks. The default settings use a block size bigger than
|
| 215 |
+
the LZMA2 dictionary size because this was seen as a reasonable
|
| 216 |
+
compromise between RAM usage and compression ratio.
|
| 217 |
+
|
| 218 |
+
When decompressing, the ability to use threads depends on how the
|
| 219 |
+
file was created. If it was created in multi-threaded mode then
|
| 220 |
+
it can be decompressed in multi-threaded mode too if there are
|
| 221 |
+
multiple blocks in the file.
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
Q: How do I build a program that needs liblzmadec (lzmadec.h)?
|
| 225 |
+
|
| 226 |
+
A: liblzmadec is part of LZMA Utils. XZ Utils has liblzma, but no
|
| 227 |
+
liblzmadec. The code using liblzmadec should be ported to use
|
| 228 |
+
liblzma instead. If you cannot or don't want to do that, download
|
| 229 |
+
LZMA Utils from <https://tukaani.org/lzma/>.
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
Q: The default build of liblzma is too big. How can I make it smaller?
|
| 233 |
+
|
| 234 |
+
A: Give --enable-small to the configure script. Use also appropriate
|
| 235 |
+
--enable or --disable options to include only those filter encoders
|
| 236 |
+
and decoders and integrity checks that you actually need. Use
|
| 237 |
+
CFLAGS=-Os (with GCC) or equivalent to tell your compiler to optimize
|
| 238 |
+
for size. See INSTALL for information about configure options.
|
| 239 |
+
|
| 240 |
+
If the result is still too big, take a look at XZ Embedded. It is
|
| 241 |
+
a separate project, which provides a limited but significantly
|
| 242 |
+
smaller XZ decoder implementation than XZ Utils. You can find it
|
| 243 |
+
at <https://tukaani.org/xz/embedded.html>.
|
| 244 |
+
|
llava_next/share/doc/xz/history.txt
ADDED
|
@@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, there was a small group working on the Tukaani distribution,
|
| 8 |
+
which was a Slackware fork. One of the project's goals was to fit the
|
| 9 |
+
distro on a single 700 MiB ISO-9660 image. Using LZMA instead of gzip
|
| 10 |
+
helped a lot. Roughly speaking, one could fit data that took 1000 MiB
|
| 11 |
+
in gzipped form into 700 MiB with LZMA. Naturally, the compression
|
| 12 |
+
ratio varied across packages, but this was what we got on average.
|
| 13 |
+
|
| 14 |
+
Slackware packages have traditionally had .tgz as the filename suffix,
|
| 15 |
+
which is an abbreviation of .tar.gz. A logical naming for LZMA
|
| 16 |
+
compressed packages was .tlz, being an abbreviation of .tar.lzma.
|
| 17 |
+
|
| 18 |
+
At the end of the year 2007, there was no distribution under the
|
| 19 |
+
Tukaani project anymore, but development of LZMA Utils was kept going.
|
| 20 |
+
Still, there were .tlz packages around, because at least Vector Linux
|
| 21 |
+
(a Slackware based distribution) used LZMA for its packages.
|
| 22 |
+
|
| 23 |
+
First versions of the modified pkgtools used the LZMA_Alone tool from
|
| 24 |
+
Igor Pavlov's LZMA SDK as is. It was fine, because users wouldn't need
|
| 25 |
+
to interact with LZMA_Alone directly. But people soon wanted to use
|
| 26 |
+
LZMA for other files too, and the interface of LZMA_Alone wasn't
|
| 27 |
+
comfortable for those used to gzip and bzip2.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
First steps of LZMA Utils
|
| 31 |
+
|
| 32 |
+
The first version of LZMA Utils (4.22.0) included a shell script called
|
| 33 |
+
lzmash. It was a wrapper that had a gzip-like command-line interface. It
|
| 34 |
+
used the LZMA_Alone tool from LZMA SDK to do all the real work. zgrep,
|
| 35 |
+
zdiff, and related scripts from gzip were adapted to work with LZMA and
|
| 36 |
+
were part of the first LZMA Utils release too.
|
| 37 |
+
|
| 38 |
+
LZMA Utils 4.22.0 included also lzmadec, which was a small (less than
|
| 39 |
+
10 KiB) decoder-only command-line tool. It was written on top of the
|
| 40 |
+
decoder-only C code found from the LZMA SDK. lzmadec was convenient in
|
| 41 |
+
situations where LZMA_Alone (a few hundred KiB) would be too big.
|
| 42 |
+
|
| 43 |
+
lzmash and lzmadec were written by Lasse Collin.
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
Second generation
|
| 47 |
+
|
| 48 |
+
The lzmash script was an ugly and not very secure hack. The last
|
| 49 |
+
version of LZMA Utils to use lzmash was 4.27.1.
|
| 50 |
+
|
| 51 |
+
LZMA Utils 4.32.0beta1 introduced a new lzma command-line tool written
|
| 52 |
+
by Ville Koskinen. It was written in C++, and used the encoder and
|
| 53 |
+
decoder from C++ LZMA SDK with some little modifications. This tool
|
| 54 |
+
replaced both the lzmash script and the LZMA_Alone command-line tool
|
| 55 |
+
in LZMA Utils.
|
| 56 |
+
|
| 57 |
+
Introducing this new tool caused some temporary incompatibilities,
|
| 58 |
+
because the LZMA_Alone executable was simply named lzma like the new
|
| 59 |
+
command-line tool, but they had a completely different command-line
|
| 60 |
+
interface. The file format was still the same.
|
| 61 |
+
|
| 62 |
+
Lasse wrote liblzmadec, which was a small decoder-only library based
|
| 63 |
+
on the C code found from LZMA SDK. liblzmadec had an API similar to
|
| 64 |
+
zlib, although there were some significant differences, which made it
|
| 65 |
+
non-trivial to use it in some applications designed for zlib and
|
| 66 |
+
libbzip2.
|
| 67 |
+
|
| 68 |
+
The lzmadec command-line tool was converted to use liblzmadec.
|
| 69 |
+
|
| 70 |
+
Alexandre Sauvé helped converting the build system to use GNU
|
| 71 |
+
Autotools. This made it easier to test for certain less portable
|
| 72 |
+
features needed by the new command-line tool.
|
| 73 |
+
|
| 74 |
+
Since the new command-line tool never got completely finished (for
|
| 75 |
+
example, it didn't support the LZMA_OPT environment variable), the
|
| 76 |
+
intent was to not call 4.32.x stable. Similarly, liblzmadec wasn't
|
| 77 |
+
polished, but appeared to work well enough, so some people started
|
| 78 |
+
using it too.
|
| 79 |
+
|
| 80 |
+
Because the development of the third generation of LZMA Utils was
|
| 81 |
+
delayed considerably (3-4 years), the 4.32.x branch had to be kept
|
| 82 |
+
maintained. It got some bug fixes now and then, and finally it was
|
| 83 |
+
decided to call it stable, although most of the missing features were
|
| 84 |
+
never added.
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
File format problems
|
| 88 |
+
|
| 89 |
+
The file format used by LZMA_Alone was primitive. It was designed with
|
| 90 |
+
embedded systems in mind, and thus provided only a minimal set of
|
| 91 |
+
features. The two biggest problems for non-embedded use were the lack
|
| 92 |
+
of magic bytes and an integrity check.
|
| 93 |
+
|
| 94 |
+
Igor and Lasse started developing a new file format with some help
|
| 95 |
+
from Ville Koskinen. Also Mark Adler, Mikko Pouru, H. Peter Anvin,
|
| 96 |
+
and Lars Wirzenius helped with some minor things at some point of the
|
| 97 |
+
development. Designing the new format took quite a long time (actually,
|
| 98 |
+
too long a time would be a more appropriate expression). It was mostly
|
| 99 |
+
because Lasse was quite slow at getting things done due to personal
|
| 100 |
+
reasons.
|
| 101 |
+
|
| 102 |
+
Originally the new format was supposed to use the same .lzma suffix
|
| 103 |
+
that was already used by the old file format. Switching to the new
|
| 104 |
+
format wouldn't have caused much trouble when the old format wasn't
|
| 105 |
+
used by many people. But since the development of the new format took
|
| 106 |
+
such a long time, the old format got quite popular, and it was decided
|
| 107 |
+
that the new file format must use a different suffix.
|
| 108 |
+
|
| 109 |
+
It was decided to use .xz as the suffix of the new file format. The
|
| 110 |
+
first stable .xz file format specification was finally released in
|
| 111 |
+
December 2008. In addition to fixing the most obvious problems of
|
| 112 |
+
the old .lzma format, the .xz format added some new features like
|
| 113 |
+
support for multiple filters (compression algorithms), filter chaining
|
| 114 |
+
(like piping on the command line), and limited random-access reading.
|
| 115 |
+
|
| 116 |
+
Currently the primary compression algorithm used in .xz is LZMA2.
|
| 117 |
+
It is an extension on top of the original LZMA to fix some practical
|
| 118 |
+
problems: LZMA2 adds support for flushing the encoder, uncompressed
|
| 119 |
+
chunks, eases stateful decoder implementations, and improves support
|
| 120 |
+
for multithreading. Since LZMA2 is better than the original LZMA, the
|
| 121 |
+
original LZMA is not supported in .xz.
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
Transition to XZ Utils
|
| 125 |
+
|
| 126 |
+
The early versions of XZ Utils were called LZMA Utils. The first
|
| 127 |
+
releases were 4.42.0alphas. They dropped the rest of the C++ LZMA SDK.
|
| 128 |
+
The code was still directly based on LZMA SDK but ported to C and
|
| 129 |
+
converted from a callback API to a stateful API. Later, Igor Pavlov
|
| 130 |
+
made a C version of the LZMA encoder too; these ports from C++ to C
|
| 131 |
+
were independent in LZMA SDK and LZMA Utils.
|
| 132 |
+
|
| 133 |
+
The core of the new LZMA Utils was liblzma, a compression library with
|
| 134 |
+
a zlib-like API. liblzma supported both the old and new file format.
|
| 135 |
+
The gzip-like lzma command-line tool was rewritten to use liblzma.
|
| 136 |
+
|
| 137 |
+
The new LZMA Utils code base was renamed to XZ Utils when the name
|
| 138 |
+
of the new file format had been decided. The liblzma compression
|
| 139 |
+
library retained its name though, because changing it would have
|
| 140 |
+
caused unnecessary breakage in applications already using the early
|
| 141 |
+
liblzma snapshots.
|
| 142 |
+
|
| 143 |
+
The xz command-line tool can emulate the gzip-like lzma tool by
|
| 144 |
+
creating appropriate symlinks (e.g. lzma -> xz). Thus, practically
|
| 145 |
+
all scripts using the lzma tool from LZMA Utils will work as is with
|
| 146 |
+
XZ Utils (and will keep using the old .lzma format). Still, the .lzma
|
| 147 |
+
format is more or less deprecated. XZ Utils will keep supporting it,
|
| 148 |
+
but new applications should use the .xz format, and migrating old
|
| 149 |
+
applications to .xz is often a good idea too.
|
| 150 |
+
|
llava_next/share/doc/xz/lzma-file-format.txt
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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ictionary Size
|
| 12 |
+
1.1.3. Uncompressed Size
|
| 13 |
+
1.2. LZMA Compressed Data
|
| 14 |
+
2. References
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
0. Preface
|
| 18 |
+
|
| 19 |
+
This document describes the .lzma file format, which is
|
| 20 |
+
sometimes also called LZMA_Alone format. It is a legacy file
|
| 21 |
+
format, which is being or has been replaced by the .xz format.
|
| 22 |
+
The MIME type of the .lzma format is `application/x-lzma'.
|
| 23 |
+
|
| 24 |
+
The most commonly used software to handle .lzma files are
|
| 25 |
+
LZMA SDK, LZMA Utils, 7-Zip, and XZ Utils. This document
|
| 26 |
+
describes some of the differences between these implementations
|
| 27 |
+
and gives hints what subset of the .lzma format is the most
|
| 28 |
+
portable.
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
0.1. Notices and Acknowledgements
|
| 32 |
+
|
| 33 |
+
This file format was designed by Igor Pavlov for use in
|
| 34 |
+
LZMA SDK. This document was written by Lasse Collin
|
| 35 |
+
<lasse.collin@tukaani.org> using the documentation found
|
| 36 |
+
from the LZMA SDK.
|
| 37 |
+
|
| 38 |
+
This document has been put into the public domain.
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
0.2. Changes
|
| 42 |
+
|
| 43 |
+
Last modified: 2024-04-08 17:35+0300
|
| 44 |
+
|
| 45 |
+
From version 2011-04-12 11:55+0300 to 2022-07-13 21:00+0300:
|
| 46 |
+
The section 1.1.3 was modified to allow End of Payload Marker
|
| 47 |
+
with a known Uncompressed Size.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
1. File Format
|
| 51 |
+
|
| 52 |
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+==========================+
|
| 53 |
+
| Header | LZMA Compressed Data |
|
| 54 |
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+==========================+
|
| 55 |
+
|
| 56 |
+
The .lzma format file consist of 13-byte Header followed by
|
| 57 |
+
the LZMA Compressed Data.
|
| 58 |
+
|
| 59 |
+
Unlike the .gz, .bz2, and .xz formats, it is not possible to
|
| 60 |
+
concatenate multiple .lzma files as is and expect the
|
| 61 |
+
decompression tool to decode the resulting file as if it were
|
| 62 |
+
a single .lzma file.
|
| 63 |
+
|
| 64 |
+
For example, the command line tools from LZMA Utils and
|
| 65 |
+
LZMA SDK silently ignore all the data after the first .lzma
|
| 66 |
+
stream. In contrast, the command line tool from XZ Utils
|
| 67 |
+
considers the .lzma file to be corrupt if there is data after
|
| 68 |
+
the first .lzma stream.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
1.1. Header
|
| 72 |
+
|
| 73 |
+
+------------+----+----+----+----+--+--+--+--+--+--+--+--+
|
| 74 |
+
| Properties | Dictionary Size | Uncompressed Size |
|
| 75 |
+
+------------+----+----+----+----+--+--+--+--+--+--+--+--+
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
1.1.1. Properties
|
| 79 |
+
|
| 80 |
+
The Properties field contains three properties. An abbreviation
|
| 81 |
+
is given in parentheses, followed by the value range of the
|
| 82 |
+
property. The field consists of
|
| 83 |
+
|
| 84 |
+
1) the number of literal context bits (lc, [0, 8]);
|
| 85 |
+
2) the number of literal position bits (lp, [0, 4]); and
|
| 86 |
+
3) the number of position bits (pb, [0, 4]).
|
| 87 |
+
|
| 88 |
+
The properties are encoded using the following formula:
|
| 89 |
+
|
| 90 |
+
Properties = (pb * 5 + lp) * 9 + lc
|
| 91 |
+
|
| 92 |
+
The following C code illustrates a straightforward way to
|
| 93 |
+
decode the Properties field:
|
| 94 |
+
|
| 95 |
+
uint8_t lc, lp, pb;
|
| 96 |
+
uint8_t prop = get_lzma_properties();
|
| 97 |
+
if (prop > (4 * 5 + 4) * 9 + 8)
|
| 98 |
+
return LZMA_PROPERTIES_ERROR;
|
| 99 |
+
|
| 100 |
+
pb = prop / (9 * 5);
|
| 101 |
+
prop -= pb * 9 * 5;
|
| 102 |
+
lp = prop / 9;
|
| 103 |
+
lc = prop - lp * 9;
|
| 104 |
+
|
| 105 |
+
XZ Utils has an additional requirement: lc + lp <= 4. Files
|
| 106 |
+
which don't follow this requirement cannot be decompressed
|
| 107 |
+
with XZ Utils. Usually this isn't a problem since the most
|
| 108 |
+
common lc/lp/pb values are 3/0/2. It is the only lc/lp/pb
|
| 109 |
+
combination that the files created by LZMA Utils can have,
|
| 110 |
+
but LZMA Utils can decompress files with any lc/lp/pb.
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
1.1.2. Dictionary Size
|
| 114 |
+
|
| 115 |
+
Dictionary Size is stored as an unsigned 32-bit little endian
|
| 116 |
+
integer. Any 32-bit value is possible, but for maximum
|
| 117 |
+
portability, only sizes of 2^n and 2^n + 2^(n-1) should be
|
| 118 |
+
used.
|
| 119 |
+
|
| 120 |
+
LZMA Utils creates only files with dictionary size 2^n,
|
| 121 |
+
16 <= n <= 25. LZMA Utils can decompress files with any
|
| 122 |
+
dictionary size.
|
| 123 |
+
|
| 124 |
+
XZ Utils creates and decompresses .lzma files only with
|
| 125 |
+
dictionary sizes 2^n and 2^n + 2^(n-1). If some other
|
| 126 |
+
dictionary size is specified when compressing, the value
|
| 127 |
+
stored in the Dictionary Size field is a rounded up, but the
|
| 128 |
+
specified value is still used in the actual compression code.
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
1.1.3. Uncompressed Size
|
| 132 |
+
|
| 133 |
+
Uncompressed Size is stored as unsigned 64-bit little endian
|
| 134 |
+
integer. A special value of 0xFFFF_FFFF_FFFF_FFFF indicates
|
| 135 |
+
that Uncompressed Size is unknown. End of Payload Marker (*)
|
| 136 |
+
is used if Uncompressed Size is unknown. End of Payload Marker
|
| 137 |
+
is allowed but rarely used if Uncompressed Size is known.
|
| 138 |
+
XZ Utils 5.2.5 and older don't support .lzma files that have
|
| 139 |
+
End of Payload Marker together with a known Uncompressed Size.
|
| 140 |
+
|
| 141 |
+
XZ Utils rejects files whose Uncompressed Size field specifies
|
| 142 |
+
a known size that is 256 GiB or more. This is to reject false
|
| 143 |
+
positives when trying to guess if the input file is in the
|
| 144 |
+
.lzma format. When Uncompressed Size is unknown, there is no
|
| 145 |
+
limit for the uncompressed size of the file.
|
| 146 |
+
|
| 147 |
+
(*) Some tools use the term End of Stream (EOS) marker
|
| 148 |
+
instead of End of Payload Marker.
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
1.2. LZMA Compressed Data
|
| 152 |
+
|
| 153 |
+
Detailed description of the format of this field is out of
|
| 154 |
+
scope of this document.
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
2. References
|
| 158 |
+
|
| 159 |
+
LZMA SDK - The original LZMA implementation
|
| 160 |
+
https://7-zip.org/sdk.html
|
| 161 |
+
|
| 162 |
+
7-Zip
|
| 163 |
+
https://7-zip.org/
|
| 164 |
+
|
| 165 |
+
LZMA Utils - LZMA adapted to POSIX-like systems
|
| 166 |
+
https://tukaani.org/lzma/
|
| 167 |
+
|
| 168 |
+
XZ Utils - The next generation of LZMA Utils
|
| 169 |
+
https://tukaani.org/xz/
|
| 170 |
+
|
| 171 |
+
The .xz file format - The successor of the .lzma format
|
| 172 |
+
https://tukaani.org/xz/xz-file-format.txt
|
| 173 |
+
|
llava_next/share/doc/xz/xz-file-format.txt
ADDED
|
@@ -0,0 +1,1174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
The .xz File Format
|
| 3 |
+
===================
|
| 4 |
+
|
| 5 |
+
Version 1.2.1 (2024-04-08)
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
0. Preface
|
| 9 |
+
0.1. Notices and Acknowledgements
|
| 10 |
+
0.2. Getting the Latest Version
|
| 11 |
+
0.3. Version History
|
| 12 |
+
1. Conventions
|
| 13 |
+
1.1. Byte and Its Representation
|
| 14 |
+
1.2. Multibyte Integers
|
| 15 |
+
2. Overall Structure of .xz File
|
| 16 |
+
2.1. Stream
|
| 17 |
+
2.1.1. Stream Header
|
| 18 |
+
2.1.1.1. Header Magic Bytes
|
| 19 |
+
2.1.1.2. Stream Flags
|
| 20 |
+
2.1.1.3. CRC32
|
| 21 |
+
2.1.2. Stream Footer
|
| 22 |
+
2.1.2.1. CRC32
|
| 23 |
+
2.1.2.2. Backward Size
|
| 24 |
+
2.1.2.3. Stream Flags
|
| 25 |
+
2.1.2.4. Footer Magic Bytes
|
| 26 |
+
2.2. Stream Padding
|
| 27 |
+
3. Block
|
| 28 |
+
3.1. Block Header
|
| 29 |
+
3.1.1. Block Header Size
|
| 30 |
+
3.1.2. Block Flags
|
| 31 |
+
3.1.3. Compressed Size
|
| 32 |
+
3.1.4. Uncompressed Size
|
| 33 |
+
3.1.5. List of Filter Flags
|
| 34 |
+
3.1.6. Header Padding
|
| 35 |
+
3.1.7. CRC32
|
| 36 |
+
3.2. Compressed Data
|
| 37 |
+
3.3. Block Padding
|
| 38 |
+
3.4. Check
|
| 39 |
+
4. Index
|
| 40 |
+
4.1. Index Indicator
|
| 41 |
+
4.2. Number of Records
|
| 42 |
+
4.3. List of Records
|
| 43 |
+
4.3.1. Unpadded Size
|
| 44 |
+
4.3.2. Uncompressed Size
|
| 45 |
+
4.4. Index Padding
|
| 46 |
+
4.5. CRC32
|
| 47 |
+
5. Filter Chains
|
| 48 |
+
5.1. Alignment
|
| 49 |
+
5.2. Security
|
| 50 |
+
5.3. Filters
|
| 51 |
+
5.3.1. LZMA2
|
| 52 |
+
5.3.2. Branch/Call/Jump Filters for Executables
|
| 53 |
+
5.3.3. Delta
|
| 54 |
+
5.3.3.1. Format of the Encoded Output
|
| 55 |
+
5.4. Custom Filter IDs
|
| 56 |
+
5.4.1. Reserved Custom Filter ID Ranges
|
| 57 |
+
6. Cyclic Redundancy Checks
|
| 58 |
+
7. References
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
0. Preface
|
| 62 |
+
|
| 63 |
+
This document describes the .xz file format (filename suffix
|
| 64 |
+
".xz", MIME type "application/x-xz"). It is intended that this
|
| 65 |
+
this format replace the old .lzma format used by LZMA SDK and
|
| 66 |
+
LZMA Utils.
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
0.1. Notices and Acknowledgements
|
| 70 |
+
|
| 71 |
+
This file format was designed by Lasse Collin
|
| 72 |
+
<lasse.collin@tukaani.org> and Igor Pavlov.
|
| 73 |
+
|
| 74 |
+
Special thanks for helping with this document goes to
|
| 75 |
+
Ville Koskinen. Thanks for helping with this document goes to
|
| 76 |
+
Mark Adler, H. Peter Anvin, Mikko Pouru, and Lars Wirzenius.
|
| 77 |
+
|
| 78 |
+
This document has been put into the public domain.
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
0.2. Getting the Latest Version
|
| 82 |
+
|
| 83 |
+
The latest official version of this document can be downloaded
|
| 84 |
+
from <https://tukaani.org/xz/xz-file-format.txt>.
|
| 85 |
+
|
| 86 |
+
Specific versions of this document have a filename
|
| 87 |
+
xz-file-format-X.Y.Z.txt where X.Y.Z is the version number.
|
| 88 |
+
For example, the version 1.0.0 of this document is available
|
| 89 |
+
at <https://tukaani.org/xz/xz-file-format-1.0.0.txt>.
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
0.3. Version History
|
| 93 |
+
|
| 94 |
+
Version Date Description
|
| 95 |
+
|
| 96 |
+
1.2.1 2024-04-08 The URLs of this specification and
|
| 97 |
+
XZ Utils were changed back to the
|
| 98 |
+
original ones in Sections 0.2 and 7.
|
| 99 |
+
|
| 100 |
+
1.2.0 2024-01-19 Added RISC-V filter and updated URLs in
|
| 101 |
+
Sections 0.2 and 7. The URL of this
|
| 102 |
+
specification was changed.
|
| 103 |
+
|
| 104 |
+
1.1.0 2022-12-11 Added ARM64 filter and clarified 32-bit
|
| 105 |
+
ARM endianness in Section 5.3.2,
|
| 106 |
+
language improvements in Section 5.4
|
| 107 |
+
|
| 108 |
+
1.0.4 2009-08-27 Language improvements in Sections 1.2,
|
| 109 |
+
2.1.1.2, 3.1.1, 3.1.2, and 5.3.1
|
| 110 |
+
|
| 111 |
+
1.0.3 2009-06-05 Spelling fixes in Sections 5.1 and 5.4
|
| 112 |
+
|
| 113 |
+
1.0.2 2009-06-04 Typo fixes in Sections 4 and 5.3.1
|
| 114 |
+
|
| 115 |
+
1.0.1 2009-06-01 Typo fix in Section 0.3 and minor
|
| 116 |
+
clarifications to Sections 2, 2.2,
|
| 117 |
+
3.3, 4.4, and 5.3.2
|
| 118 |
+
|
| 119 |
+
1.0.0 2009-01-14 The first official version
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
1. Conventions
|
| 123 |
+
|
| 124 |
+
The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD",
|
| 125 |
+
"SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
|
| 126 |
+
document are to be interpreted as described in [RFC-2119].
|
| 127 |
+
|
| 128 |
+
Indicating a warning means displaying a message, returning
|
| 129 |
+
appropriate exit status, or doing something else to let the
|
| 130 |
+
user know that something worth warning occurred. The operation
|
| 131 |
+
SHOULD still finish if a warning is indicated.
|
| 132 |
+
|
| 133 |
+
Indicating an error means displaying a message, returning
|
| 134 |
+
appropriate exit status, or doing something else to let the
|
| 135 |
+
user know that something prevented successfully finishing the
|
| 136 |
+
operation. The operation MUST be aborted once an error has
|
| 137 |
+
been indicated.
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
1.1. Byte and Its Representation
|
| 141 |
+
|
| 142 |
+
In this document, byte is always 8 bits.
|
| 143 |
+
|
| 144 |
+
A "null byte" has all bits unset. That is, the value of a null
|
| 145 |
+
byte is 0x00.
|
| 146 |
+
|
| 147 |
+
To represent byte blocks, this document uses notation that
|
| 148 |
+
is similar to the notation used in [RFC-1952]:
|
| 149 |
+
|
| 150 |
+
+-------+
|
| 151 |
+
| Foo | One byte.
|
| 152 |
+
+-------+
|
| 153 |
+
|
| 154 |
+
+---+---+
|
| 155 |
+
| Foo | Two bytes; that is, some of the vertical bars
|
| 156 |
+
+---+---+ can be missing.
|
| 157 |
+
|
| 158 |
+
+=======+
|
| 159 |
+
| Foo | Zero or more bytes.
|
| 160 |
+
+=======+
|
| 161 |
+
|
| 162 |
+
In this document, a boxed byte or a byte sequence declared
|
| 163 |
+
using this notation is called "a field". The example field
|
| 164 |
+
above would be called "the Foo field" or plain "Foo".
|
| 165 |
+
|
| 166 |
+
If there are many fields, they may be split to multiple lines.
|
| 167 |
+
This is indicated with an arrow ("--->"):
|
| 168 |
+
|
| 169 |
+
+=====+
|
| 170 |
+
| Foo |
|
| 171 |
+
+=====+
|
| 172 |
+
|
| 173 |
+
+=====+
|
| 174 |
+
---> | Bar |
|
| 175 |
+
+=====+
|
| 176 |
+
|
| 177 |
+
The above is equivalent to this:
|
| 178 |
+
|
| 179 |
+
+=====+=====+
|
| 180 |
+
| Foo | Bar |
|
| 181 |
+
+=====+=====+
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
1.2. Multibyte Integers
|
| 185 |
+
|
| 186 |
+
Multibyte integers of static length, such as CRC values,
|
| 187 |
+
are stored in little endian byte order (least significant
|
| 188 |
+
byte first).
|
| 189 |
+
|
| 190 |
+
When smaller values are more likely than bigger values (for
|
| 191 |
+
example file sizes), multibyte integers are encoded in a
|
| 192 |
+
variable-length representation:
|
| 193 |
+
- Numbers in the range [0, 127] are copied as is, and take
|
| 194 |
+
one byte of space.
|
| 195 |
+
- Bigger numbers will occupy two or more bytes. All but the
|
| 196 |
+
last byte of the multibyte representation have the highest
|
| 197 |
+
(eighth) bit set.
|
| 198 |
+
|
| 199 |
+
For now, the value of the variable-length integers is limited
|
| 200 |
+
to 63 bits, which limits the encoded size of the integer to
|
| 201 |
+
nine bytes. These limits may be increased in the future if
|
| 202 |
+
needed.
|
| 203 |
+
|
| 204 |
+
The following C code illustrates encoding and decoding of
|
| 205 |
+
variable-length integers. The functions return the number of
|
| 206 |
+
bytes occupied by the integer (1-9), or zero on error.
|
| 207 |
+
|
| 208 |
+
#include <stddef.h>
|
| 209 |
+
#include <inttypes.h>
|
| 210 |
+
|
| 211 |
+
size_t
|
| 212 |
+
encode(uint8_t buf[static 9], uint64_t num)
|
| 213 |
+
{
|
| 214 |
+
if (num > UINT64_MAX / 2)
|
| 215 |
+
return 0;
|
| 216 |
+
|
| 217 |
+
size_t i = 0;
|
| 218 |
+
|
| 219 |
+
while (num >= 0x80) {
|
| 220 |
+
buf[i++] = (uint8_t)(num) | 0x80;
|
| 221 |
+
num >>= 7;
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
buf[i++] = (uint8_t)(num);
|
| 225 |
+
|
| 226 |
+
return i;
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
size_t
|
| 230 |
+
decode(const uint8_t buf[], size_t size_max, uint64_t *num)
|
| 231 |
+
{
|
| 232 |
+
if (size_max == 0)
|
| 233 |
+
return 0;
|
| 234 |
+
|
| 235 |
+
if (size_max > 9)
|
| 236 |
+
size_max = 9;
|
| 237 |
+
|
| 238 |
+
*num = buf[0] & 0x7F;
|
| 239 |
+
size_t i = 0;
|
| 240 |
+
|
| 241 |
+
while (buf[i++] & 0x80) {
|
| 242 |
+
if (i >= size_max || buf[i] == 0x00)
|
| 243 |
+
return 0;
|
| 244 |
+
|
| 245 |
+
*num |= (uint64_t)(buf[i] & 0x7F) << (i * 7);
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
return i;
|
| 249 |
+
}
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
2. Overall Structure of .xz File
|
| 253 |
+
|
| 254 |
+
A standalone .xz files consist of one or more Streams which may
|
| 255 |
+
have Stream Padding between or after them:
|
| 256 |
+
|
| 257 |
+
+========+================+========+================+
|
| 258 |
+
| Stream | Stream Padding | Stream | Stream Padding | ...
|
| 259 |
+
+========+================+========+================+
|
| 260 |
+
|
| 261 |
+
The sizes of Stream and Stream Padding are always multiples
|
| 262 |
+
of four bytes, thus the size of every valid .xz file MUST be
|
| 263 |
+
a multiple of four bytes.
|
| 264 |
+
|
| 265 |
+
While a typical file contains only one Stream and no Stream
|
| 266 |
+
Padding, a decoder handling standalone .xz files SHOULD support
|
| 267 |
+
files that have more than one Stream or Stream Padding.
|
| 268 |
+
|
| 269 |
+
In contrast to standalone .xz files, when the .xz file format
|
| 270 |
+
is used as an internal part of some other file format or
|
| 271 |
+
communication protocol, it usually is expected that the decoder
|
| 272 |
+
stops after the first Stream, and doesn't look for Stream
|
| 273 |
+
Padding or possibly other Streams.
|
| 274 |
+
|
| 275 |
+
|
| 276 |
+
2.1. Stream
|
| 277 |
+
|
| 278 |
+
+-+-+-+-+-+-+-+-+-+-+-+-+=======+=======+ +=======+
|
| 279 |
+
| Stream Header | Block | Block | ... | Block |
|
| 280 |
+
+-+-+-+-+-+-+-+-+-+-+-+-+=======+=======+ +=======+
|
| 281 |
+
|
| 282 |
+
+=======+-+-+-+-+-+-+-+-+-+-+-+-+
|
| 283 |
+
---> | Index | Stream Footer |
|
| 284 |
+
+=======+-+-+-+-+-+-+-+-+-+-+-+-+
|
| 285 |
+
|
| 286 |
+
All the above fields have a size that is a multiple of four. If
|
| 287 |
+
Stream is used as an internal part of another file format, it
|
| 288 |
+
is RECOMMENDED to make the Stream start at an offset that is
|
| 289 |
+
a multiple of four bytes.
|
| 290 |
+
|
| 291 |
+
Stream Header, Index, and Stream Footer are always present in
|
| 292 |
+
a Stream. The maximum size of the Index field is 16 GiB (2^34).
|
| 293 |
+
|
| 294 |
+
There are zero or more Blocks. The maximum number of Blocks is
|
| 295 |
+
limited only by the maximum size of the Index field.
|
| 296 |
+
|
| 297 |
+
Total size of a Stream MUST be less than 8 EiB (2^63 bytes).
|
| 298 |
+
The same limit applies to the total amount of uncompressed
|
| 299 |
+
data stored in a Stream.
|
| 300 |
+
|
| 301 |
+
If an implementation supports handling .xz files with multiple
|
| 302 |
+
concatenated Streams, it MAY apply the above limits to the file
|
| 303 |
+
as a whole instead of limiting per Stream basis.
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
2.1.1. Stream Header
|
| 307 |
+
|
| 308 |
+
+---+---+---+---+---+---+-------+------+--+--+--+--+
|
| 309 |
+
| Header Magic Bytes | Stream Flags | CRC32 |
|
| 310 |
+
+---+---+---+---+---+---+-------+------+--+--+--+--+
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
2.1.1.1. Header Magic Bytes
|
| 314 |
+
|
| 315 |
+
The first six (6) bytes of the Stream are so called Header
|
| 316 |
+
Magic Bytes. They can be used to identify the file type.
|
| 317 |
+
|
| 318 |
+
Using a C array and ASCII:
|
| 319 |
+
const uint8_t HEADER_MAGIC[6]
|
| 320 |
+
= { 0xFD, '7', 'z', 'X', 'Z', 0x00 };
|
| 321 |
+
|
| 322 |
+
In plain hexadecimal:
|
| 323 |
+
FD 37 7A 58 5A 00
|
| 324 |
+
|
| 325 |
+
Notes:
|
| 326 |
+
- The first byte (0xFD) was chosen so that the files cannot
|
| 327 |
+
be erroneously detected as being in .lzma format, in which
|
| 328 |
+
the first byte is in the range [0x00, 0xE0].
|
| 329 |
+
- The sixth byte (0x00) was chosen to prevent applications
|
| 330 |
+
from misdetecting the file as a text file.
|
| 331 |
+
|
| 332 |
+
If the Header Magic Bytes don't match, the decoder MUST
|
| 333 |
+
indicate an error.
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
2.1.1.2. Stream Flags
|
| 337 |
+
|
| 338 |
+
The first byte of Stream Flags is always a null byte. In the
|
| 339 |
+
future, this byte may be used to indicate a new Stream version
|
| 340 |
+
or other Stream properties.
|
| 341 |
+
|
| 342 |
+
The second byte of Stream Flags is a bit field:
|
| 343 |
+
|
| 344 |
+
Bit(s) Mask Description
|
| 345 |
+
0-3 0x0F Type of Check (see Section 3.4):
|
| 346 |
+
ID Size Check name
|
| 347 |
+
0x00 0 bytes None
|
| 348 |
+
0x01 4 bytes CRC32
|
| 349 |
+
0x02 4 bytes (Reserved)
|
| 350 |
+
0x03 4 bytes (Reserved)
|
| 351 |
+
0x04 8 bytes CRC64
|
| 352 |
+
0x05 8 bytes (Reserved)
|
| 353 |
+
0x06 8 bytes (Reserved)
|
| 354 |
+
0x07 16 bytes (Reserved)
|
| 355 |
+
0x08 16 bytes (Reserved)
|
| 356 |
+
0x09 16 bytes (Reserved)
|
| 357 |
+
0x0A 32 bytes SHA-256
|
| 358 |
+
0x0B 32 bytes (Reserved)
|
| 359 |
+
0x0C 32 bytes (Reserved)
|
| 360 |
+
0x0D 64 bytes (Reserved)
|
| 361 |
+
0x0E 64 bytes (Reserved)
|
| 362 |
+
0x0F 64 bytes (Reserved)
|
| 363 |
+
4-7 0xF0 Reserved for future use; MUST be zero for now.
|
| 364 |
+
|
| 365 |
+
Implementations SHOULD support at least the Check IDs 0x00
|
| 366 |
+
(None) and 0x01 (CRC32). Supporting other Check IDs is
|
| 367 |
+
OPTIONAL. If an unsupported Check is used, the decoder SHOULD
|
| 368 |
+
indicate a warning or error.
|
| 369 |
+
|
| 370 |
+
If any reserved bit is set, the decoder MUST indicate an error.
|
| 371 |
+
It is possible that there is a new field present which the
|
| 372 |
+
decoder is not aware of, and can thus parse the Stream Header
|
| 373 |
+
incorrectly.
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
2.1.1.3. CRC32
|
| 377 |
+
|
| 378 |
+
The CRC32 is calculated from the Stream Flags field. It is
|
| 379 |
+
stored as an unsigned 32-bit little endian integer. If the
|
| 380 |
+
calculated value does not match the stored one, the decoder
|
| 381 |
+
MUST indicate an error.
|
| 382 |
+
|
| 383 |
+
The idea is that Stream Flags would always be two bytes, even
|
| 384 |
+
if new features are needed. This way old decoders will be able
|
| 385 |
+
to verify the CRC32 calculated from Stream Flags, and thus
|
| 386 |
+
distinguish between corrupt files (CRC32 doesn't match) and
|
| 387 |
+
files that the decoder doesn't support (CRC32 matches but
|
| 388 |
+
Stream Flags has reserved bits set).
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
2.1.2. Stream Footer
|
| 392 |
+
|
| 393 |
+
+-+-+-+-+---+---+---+---+-------+------+----------+---------+
|
| 394 |
+
| CRC32 | Backward Size | Stream Flags | Footer Magic Bytes |
|
| 395 |
+
+-+-+-+-+---+---+---+---+-------+------+----------+---------+
|
| 396 |
+
|
| 397 |
+
|
| 398 |
+
2.1.2.1. CRC32
|
| 399 |
+
|
| 400 |
+
The CRC32 is calculated from the Backward Size and Stream Flags
|
| 401 |
+
fields. It is stored as an unsigned 32-bit little endian
|
| 402 |
+
integer. If the calculated value does not match the stored one,
|
| 403 |
+
the decoder MUST indicate an error.
|
| 404 |
+
|
| 405 |
+
The reason to have the CRC32 field before the Backward Size and
|
| 406 |
+
Stream Flags fields is to keep the four-byte fields aligned to
|
| 407 |
+
a multiple of four bytes.
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
2.1.2.2. Backward Size
|
| 411 |
+
|
| 412 |
+
Backward Size is stored as a 32-bit little endian integer,
|
| 413 |
+
which indicates the size of the Index field as multiple of
|
| 414 |
+
four bytes, minimum value being four bytes:
|
| 415 |
+
|
| 416 |
+
real_backward_size = (stored_backward_size + 1) * 4;
|
| 417 |
+
|
| 418 |
+
If the stored value does not match the real size of the Index
|
| 419 |
+
field, the decoder MUST indicate an error.
|
| 420 |
+
|
| 421 |
+
Using a fixed-size integer to store Backward Size makes
|
| 422 |
+
it slightly simpler to parse the Stream Footer when the
|
| 423 |
+
application needs to parse the Stream backwards.
|
| 424 |
+
|
| 425 |
+
|
| 426 |
+
2.1.2.3. Stream Flags
|
| 427 |
+
|
| 428 |
+
This is a copy of the Stream Flags field from the Stream
|
| 429 |
+
Header. The information stored to Stream Flags is needed
|
| 430 |
+
when parsing the Stream backwards. The decoder MUST compare
|
| 431 |
+
the Stream Flags fields in both Stream Header and Stream
|
| 432 |
+
Footer, and indicate an error if they are not identical.
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
2.1.2.4. Footer Magic Bytes
|
| 436 |
+
|
| 437 |
+
As the last step of the decoding process, the decoder MUST
|
| 438 |
+
verify the existence of Footer Magic Bytes. If they don't
|
| 439 |
+
match, an error MUST be indicated.
|
| 440 |
+
|
| 441 |
+
Using a C array and ASCII:
|
| 442 |
+
const uint8_t FOOTER_MAGIC[2] = { 'Y', 'Z' };
|
| 443 |
+
|
| 444 |
+
In hexadecimal:
|
| 445 |
+
59 5A
|
| 446 |
+
|
| 447 |
+
The primary reason to have Footer Magic Bytes is to make
|
| 448 |
+
it easier to detect incomplete files quickly, without
|
| 449 |
+
uncompressing. If the file does not end with Footer Magic Bytes
|
| 450 |
+
(excluding Stream Padding described in Section 2.2), it cannot
|
| 451 |
+
be undamaged, unless someone has intentionally appended garbage
|
| 452 |
+
after the end of the Stream.
|
| 453 |
+
|
| 454 |
+
|
| 455 |
+
2.2. Stream Padding
|
| 456 |
+
|
| 457 |
+
Only the decoders that support decoding of concatenated Streams
|
| 458 |
+
MUST support Stream Padding.
|
| 459 |
+
|
| 460 |
+
Stream Padding MUST contain only null bytes. To preserve the
|
| 461 |
+
four-byte alignment of consecutive Streams, the size of Stream
|
| 462 |
+
Padding MUST be a multiple of four bytes. Empty Stream Padding
|
| 463 |
+
is allowed. If these requirements are not met, the decoder MUST
|
| 464 |
+
indicate an error.
|
| 465 |
+
|
| 466 |
+
Note that non-empty Stream Padding is allowed at the end of the
|
| 467 |
+
file; there doesn't need to be a new Stream after non-empty
|
| 468 |
+
Stream Padding. This can be convenient in certain situations
|
| 469 |
+
[GNU-tar].
|
| 470 |
+
|
| 471 |
+
The possibility of Stream Padding MUST be taken into account
|
| 472 |
+
when designing an application that parses Streams backwards,
|
| 473 |
+
and the application supports concatenated Streams.
|
| 474 |
+
|
| 475 |
+
|
| 476 |
+
3. Block
|
| 477 |
+
|
| 478 |
+
+==============+=================+===============+=======+
|
| 479 |
+
| Block Header | Compressed Data | Block Padding | Check |
|
| 480 |
+
+==============+=================+===============+=======+
|
| 481 |
+
|
| 482 |
+
|
| 483 |
+
3.1. Block Header
|
| 484 |
+
|
| 485 |
+
+-------------------+-------------+=================+
|
| 486 |
+
| Block Header Size | Block Flags | Compressed Size |
|
| 487 |
+
+-------------------+-------------+=================+
|
| 488 |
+
|
| 489 |
+
+===================+======================+
|
| 490 |
+
---> | Uncompressed Size | List of Filter Flags |
|
| 491 |
+
+===================+======================+
|
| 492 |
+
|
| 493 |
+
+================+--+--+--+--+
|
| 494 |
+
---> | Header Padding | CRC32 |
|
| 495 |
+
+================+--+--+--+--+
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
3.1.1. Block Header Size
|
| 499 |
+
|
| 500 |
+
This field overlaps with the Index Indicator field (see
|
| 501 |
+
Section 4.1).
|
| 502 |
+
|
| 503 |
+
This field contains the size of the Block Header field,
|
| 504 |
+
including the Block Header Size field itself. Valid values are
|
| 505 |
+
in the range [0x01, 0xFF], which indicate the size of the Block
|
| 506 |
+
Header as multiples of four bytes, minimum size being eight
|
| 507 |
+
bytes:
|
| 508 |
+
|
| 509 |
+
real_header_size = (encoded_header_size + 1) * 4;
|
| 510 |
+
|
| 511 |
+
If a Block Header bigger than 1024 bytes is needed in the
|
| 512 |
+
future, a new field can be added between the Block Header and
|
| 513 |
+
Compressed Data fields. The presence of this new field would
|
| 514 |
+
be indicated in the Block Header field.
|
| 515 |
+
|
| 516 |
+
|
| 517 |
+
3.1.2. Block Flags
|
| 518 |
+
|
| 519 |
+
The Block Flags field is a bit field:
|
| 520 |
+
|
| 521 |
+
Bit(s) Mask Description
|
| 522 |
+
0-1 0x03 Number of filters (1-4)
|
| 523 |
+
2-5 0x3C Reserved for future use; MUST be zero for now.
|
| 524 |
+
6 0x40 The Compressed Size field is present.
|
| 525 |
+
7 0x80 The Uncompressed Size field is present.
|
| 526 |
+
|
| 527 |
+
If any reserved bit is set, the decoder MUST indicate an error.
|
| 528 |
+
It is possible that there is a new field present which the
|
| 529 |
+
decoder is not aware of, and can thus parse the Block Header
|
| 530 |
+
incorrectly.
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
3.1.3. Compressed Size
|
| 534 |
+
|
| 535 |
+
This field is present only if the appropriate bit is set in
|
| 536 |
+
the Block Flags field (see Section 3.1.2).
|
| 537 |
+
|
| 538 |
+
The Compressed Size field contains the size of the Compressed
|
| 539 |
+
Data field, which MUST be non-zero. Compressed Size is stored
|
| 540 |
+
using the encoding described in Section 1.2. If the Compressed
|
| 541 |
+
Size doesn't match the size of the Compressed Data field, the
|
| 542 |
+
decoder MUST indicate an error.
|
| 543 |
+
|
| 544 |
+
|
| 545 |
+
3.1.4. Uncompressed Size
|
| 546 |
+
|
| 547 |
+
This field is present only if the appropriate bit is set in
|
| 548 |
+
the Block Flags field (see Section 3.1.2).
|
| 549 |
+
|
| 550 |
+
The Uncompressed Size field contains the size of the Block
|
| 551 |
+
after uncompressing. Uncompressed Size is stored using the
|
| 552 |
+
encoding described in Section 1.2. If the Uncompressed Size
|
| 553 |
+
does not match the real uncompressed size, the decoder MUST
|
| 554 |
+
indicate an error.
|
| 555 |
+
|
| 556 |
+
Storing the Compressed Size and Uncompressed Size fields serves
|
| 557 |
+
several purposes:
|
| 558 |
+
- The decoder knows how much memory it needs to allocate
|
| 559 |
+
for a temporary buffer in multithreaded mode.
|
| 560 |
+
- Simple error detection: wrong size indicates a broken file.
|
| 561 |
+
- Seeking forwards to a specific location in streamed mode.
|
| 562 |
+
|
| 563 |
+
It should be noted that the only reliable way to determine
|
| 564 |
+
the real uncompressed size is to uncompress the Block,
|
| 565 |
+
because the Block Header and Index fields may contain
|
| 566 |
+
(intentionally or unintentionally) invalid information.
|
| 567 |
+
|
| 568 |
+
|
| 569 |
+
3.1.5. List of Filter Flags
|
| 570 |
+
|
| 571 |
+
+================+================+ +================+
|
| 572 |
+
| Filter 0 Flags | Filter 1 Flags | ... | Filter n Flags |
|
| 573 |
+
+================+================+ +================+
|
| 574 |
+
|
| 575 |
+
The number of Filter Flags fields is stored in the Block Flags
|
| 576 |
+
field (see Section 3.1.2).
|
| 577 |
+
|
| 578 |
+
The format of each Filter Flags field is as follows:
|
| 579 |
+
|
| 580 |
+
+===========+====================+===================+
|
| 581 |
+
| Filter ID | Size of Properties | Filter Properties |
|
| 582 |
+
+===========+====================+===================+
|
| 583 |
+
|
| 584 |
+
Both Filter ID and Size of Properties are stored using the
|
| 585 |
+
encoding described in Section 1.2. Size of Properties indicates
|
| 586 |
+
the size of the Filter Properties field as bytes. The list of
|
| 587 |
+
officially defined Filter IDs and the formats of their Filter
|
| 588 |
+
Properties are described in Section 5.3.
|
| 589 |
+
|
| 590 |
+
Filter IDs greater than or equal to 0x4000_0000_0000_0000
|
| 591 |
+
(2^62) are reserved for implementation-specific internal use.
|
| 592 |
+
These Filter IDs MUST never be used in List of Filter Flags.
|
| 593 |
+
|
| 594 |
+
|
| 595 |
+
3.1.6. Header Padding
|
| 596 |
+
|
| 597 |
+
This field contains as many null byte as it is needed to make
|
| 598 |
+
the Block Header have the size specified in Block Header Size.
|
| 599 |
+
If any of the bytes are not null bytes, the decoder MUST
|
| 600 |
+
indicate an error. It is possible that there is a new field
|
| 601 |
+
present which the decoder is not aware of, and can thus parse
|
| 602 |
+
the Block Header incorrectly.
|
| 603 |
+
|
| 604 |
+
|
| 605 |
+
3.1.7. CRC32
|
| 606 |
+
|
| 607 |
+
The CRC32 is calculated over everything in the Block Header
|
| 608 |
+
field except the CRC32 field itself. It is stored as an
|
| 609 |
+
unsigned 32-bit little endian integer. If the calculated
|
| 610 |
+
value does not match the stored one, the decoder MUST indicate
|
| 611 |
+
an error.
|
| 612 |
+
|
| 613 |
+
By verifying the CRC32 of the Block Header before parsing the
|
| 614 |
+
actual contents allows the decoder to distinguish between
|
| 615 |
+
corrupt and unsupported files.
|
| 616 |
+
|
| 617 |
+
|
| 618 |
+
3.2. Compressed Data
|
| 619 |
+
|
| 620 |
+
The format of Compressed Data depends on Block Flags and List
|
| 621 |
+
of Filter Flags. Excluding the descriptions of the simplest
|
| 622 |
+
filters in Section 5.3, the format of the filter-specific
|
| 623 |
+
encoded data is out of scope of this document.
|
| 624 |
+
|
| 625 |
+
|
| 626 |
+
3.3. Block Padding
|
| 627 |
+
|
| 628 |
+
Block Padding MUST contain 0-3 null bytes to make the size of
|
| 629 |
+
the Block a multiple of four bytes. This can be needed when
|
| 630 |
+
the size of Compressed Data is not a multiple of four. If any
|
| 631 |
+
of the bytes in Block Padding are not null bytes, the decoder
|
| 632 |
+
MUST indicate an error.
|
| 633 |
+
|
| 634 |
+
|
| 635 |
+
3.4. Check
|
| 636 |
+
|
| 637 |
+
The type and size of the Check field depends on which bits
|
| 638 |
+
are set in the Stream Flags field (see Section 2.1.1.2).
|
| 639 |
+
|
| 640 |
+
The Check, when used, is calculated from the original
|
| 641 |
+
uncompressed data. If the calculated Check does not match the
|
| 642 |
+
stored one, the decoder MUST indicate an error. If the selected
|
| 643 |
+
type of Check is not supported by the decoder, it SHOULD
|
| 644 |
+
indicate a warning or error.
|
| 645 |
+
|
| 646 |
+
|
| 647 |
+
4. Index
|
| 648 |
+
|
| 649 |
+
+-----------------+===================+
|
| 650 |
+
| Index Indicator | Number of Records |
|
| 651 |
+
+-----------------+===================+
|
| 652 |
+
|
| 653 |
+
+=================+===============+-+-+-+-+
|
| 654 |
+
---> | List of Records | Index Padding | CRC32 |
|
| 655 |
+
+=================+===============+-+-+-+-+
|
| 656 |
+
|
| 657 |
+
Index serves several purposes. Using it, one can
|
| 658 |
+
- verify that all Blocks in a Stream have been processed;
|
| 659 |
+
- find out the uncompressed size of a Stream; and
|
| 660 |
+
- quickly access the beginning of any Block (random access).
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
4.1. Index Indicator
|
| 664 |
+
|
| 665 |
+
This field overlaps with the Block Header Size field (see
|
| 666 |
+
Section 3.1.1). The value of Index Indicator is always 0x00.
|
| 667 |
+
|
| 668 |
+
|
| 669 |
+
4.2. Number of Records
|
| 670 |
+
|
| 671 |
+
This field indicates how many Records there are in the List
|
| 672 |
+
of Records field, and thus how many Blocks there are in the
|
| 673 |
+
Stream. The value is stored using the encoding described in
|
| 674 |
+
Section 1.2. If the decoder has decoded all the Blocks of the
|
| 675 |
+
Stream, and then notices that the Number of Records doesn't
|
| 676 |
+
match the real number of Blocks, the decoder MUST indicate an
|
| 677 |
+
error.
|
| 678 |
+
|
| 679 |
+
|
| 680 |
+
4.3. List of Records
|
| 681 |
+
|
| 682 |
+
List of Records consists of as many Records as indicated by the
|
| 683 |
+
Number of Records field:
|
| 684 |
+
|
| 685 |
+
+========+========+
|
| 686 |
+
| Record | Record | ...
|
| 687 |
+
+========+========+
|
| 688 |
+
|
| 689 |
+
Each Record contains information about one Block:
|
| 690 |
+
|
| 691 |
+
+===============+===================+
|
| 692 |
+
| Unpadded Size | Uncompressed Size |
|
| 693 |
+
+===============+===================+
|
| 694 |
+
|
| 695 |
+
If the decoder has decoded all the Blocks of the Stream, it
|
| 696 |
+
MUST verify that the contents of the Records match the real
|
| 697 |
+
Unpadded Size and Uncompressed Size of the respective Blocks.
|
| 698 |
+
|
| 699 |
+
Implementation hint: It is possible to verify the Index with
|
| 700 |
+
constant memory usage by calculating for example SHA-256 of
|
| 701 |
+
both the real size values and the List of Records, then
|
| 702 |
+
comparing the hash values. Implementing this using
|
| 703 |
+
non-cryptographic hash like CRC32 SHOULD be avoided unless
|
| 704 |
+
small code size is important.
|
| 705 |
+
|
| 706 |
+
If the decoder supports random-access reading, it MUST verify
|
| 707 |
+
that Unpadded Size and Uncompressed Size of every completely
|
| 708 |
+
decoded Block match the sizes stored in the Index. If only
|
| 709 |
+
partial Block is decoded, the decoder MUST verify that the
|
| 710 |
+
processed sizes don't exceed the sizes stored in the Index.
|
| 711 |
+
|
| 712 |
+
|
| 713 |
+
4.3.1. Unpadded Size
|
| 714 |
+
|
| 715 |
+
This field indicates the size of the Block excluding the Block
|
| 716 |
+
Padding field. That is, Unpadded Size is the size of the Block
|
| 717 |
+
Header, Compressed Data, and Check fields. Unpadded Size is
|
| 718 |
+
stored using the encoding described in Section 1.2. The value
|
| 719 |
+
MUST never be zero; with the current structure of Blocks, the
|
| 720 |
+
actual minimum value for Unpadded Size is five.
|
| 721 |
+
|
| 722 |
+
Implementation note: Because the size of the Block Padding
|
| 723 |
+
field is not included in Unpadded Size, calculating the total
|
| 724 |
+
size of a Stream or doing random-access reading requires
|
| 725 |
+
calculating the actual size of the Blocks by rounding Unpadded
|
| 726 |
+
Sizes up to the next multiple of four.
|
| 727 |
+
|
| 728 |
+
The reason to exclude Block Padding from Unpadded Size is to
|
| 729 |
+
ease making a raw copy of Compressed Data without Block
|
| 730 |
+
Padding. This can be useful, for example, if someone wants
|
| 731 |
+
to convert Streams to some other file format quickly.
|
| 732 |
+
|
| 733 |
+
|
| 734 |
+
4.3.2. Uncompressed Size
|
| 735 |
+
|
| 736 |
+
This field indicates the Uncompressed Size of the respective
|
| 737 |
+
Block as bytes. The value is stored using the encoding
|
| 738 |
+
described in Section 1.2.
|
| 739 |
+
|
| 740 |
+
|
| 741 |
+
4.4. Index Padding
|
| 742 |
+
|
| 743 |
+
This field MUST contain 0-3 null bytes to pad the Index to
|
| 744 |
+
a multiple of four bytes. If any of the bytes are not null
|
| 745 |
+
bytes, the decoder MUST indicate an error.
|
| 746 |
+
|
| 747 |
+
|
| 748 |
+
4.5. CRC32
|
| 749 |
+
|
| 750 |
+
The CRC32 is calculated over everything in the Index field
|
| 751 |
+
except the CRC32 field itself. The CRC32 is stored as an
|
| 752 |
+
unsigned 32-bit little endian integer. If the calculated
|
| 753 |
+
value does not match the stored one, the decoder MUST indicate
|
| 754 |
+
an error.
|
| 755 |
+
|
| 756 |
+
|
| 757 |
+
5. Filter Chains
|
| 758 |
+
|
| 759 |
+
The Block Flags field defines how many filters are used. When
|
| 760 |
+
more than one filter is used, the filters are chained; that is,
|
| 761 |
+
the output of one filter is the input of another filter. The
|
| 762 |
+
following figure illustrates the direction of data flow.
|
| 763 |
+
|
| 764 |
+
v Uncompressed Data ^
|
| 765 |
+
| Filter 0 |
|
| 766 |
+
Encoder | Filter 1 | Decoder
|
| 767 |
+
| Filter n |
|
| 768 |
+
v Compressed Data ^
|
| 769 |
+
|
| 770 |
+
|
| 771 |
+
5.1. Alignment
|
| 772 |
+
|
| 773 |
+
Alignment of uncompressed input data is usually the job of
|
| 774 |
+
the application producing the data. For example, to get the
|
| 775 |
+
best results, an archiver tool should make sure that all
|
| 776 |
+
PowerPC executable files in the archive stream start at
|
| 777 |
+
offsets that are multiples of four bytes.
|
| 778 |
+
|
| 779 |
+
Some filters, for example LZMA2, can be configured to take
|
| 780 |
+
advantage of specified alignment of input data. Note that
|
| 781 |
+
taking advantage of aligned input can be beneficial also when
|
| 782 |
+
a filter is not the first filter in the chain. For example,
|
| 783 |
+
if you compress PowerPC executables, you may want to use the
|
| 784 |
+
PowerPC filter and chain that with the LZMA2 filter. Because
|
| 785 |
+
not only the input but also the output alignment of the PowerPC
|
| 786 |
+
filter is four bytes, it is now beneficial to set LZMA2
|
| 787 |
+
settings so that the LZMA2 encoder can take advantage of its
|
| 788 |
+
four-byte-aligned input data.
|
| 789 |
+
|
| 790 |
+
The output of the last filter in the chain is stored to the
|
| 791 |
+
Compressed Data field, which is is guaranteed to be aligned
|
| 792 |
+
to a multiple of four bytes relative to the beginning of the
|
| 793 |
+
Stream. This can increase
|
| 794 |
+
- speed, if the filtered data is handled multiple bytes at
|
| 795 |
+
a time by the filter-specific encoder and decoder,
|
| 796 |
+
because accessing aligned data in computer memory is
|
| 797 |
+
usually faster; and
|
| 798 |
+
- compression ratio, if the output data is later compressed
|
| 799 |
+
with an external compression tool.
|
| 800 |
+
|
| 801 |
+
|
| 802 |
+
5.2. Security
|
| 803 |
+
|
| 804 |
+
If filters would be allowed to be chained freely, it would be
|
| 805 |
+
possible to create malicious files, that would be very slow to
|
| 806 |
+
decode. Such files could be used to create denial of service
|
| 807 |
+
attacks.
|
| 808 |
+
|
| 809 |
+
Slow files could occur when multiple filters are chained:
|
| 810 |
+
|
| 811 |
+
v Compressed input data
|
| 812 |
+
| Filter 1 decoder (last filter)
|
| 813 |
+
| Filter 0 decoder (non-last filter)
|
| 814 |
+
v Uncompressed output data
|
| 815 |
+
|
| 816 |
+
The decoder of the last filter in the chain produces a lot of
|
| 817 |
+
output from little input. Another filter in the chain takes the
|
| 818 |
+
output of the last filter, and produces very little output
|
| 819 |
+
while consuming a lot of input. As a result, a lot of data is
|
| 820 |
+
moved inside the filter chain, but the filter chain as a whole
|
| 821 |
+
gets very little work done.
|
| 822 |
+
|
| 823 |
+
To prevent this kind of slow files, there are restrictions on
|
| 824 |
+
how the filters can be chained. These restrictions MUST be
|
| 825 |
+
taken into account when designing new filters.
|
| 826 |
+
|
| 827 |
+
The maximum number of filters in the chain has been limited to
|
| 828 |
+
four, thus there can be at maximum of three non-last filters.
|
| 829 |
+
Of these three non-last filters, only two are allowed to change
|
| 830 |
+
the size of the data.
|
| 831 |
+
|
| 832 |
+
The non-last filters, that change the size of the data, MUST
|
| 833 |
+
have a limit how much the decoder can compress the data: the
|
| 834 |
+
decoder SHOULD produce at least n bytes of output when the
|
| 835 |
+
filter is given 2n bytes of input. This limit is not
|
| 836 |
+
absolute, but significant deviations MUST be avoided.
|
| 837 |
+
|
| 838 |
+
The above limitations guarantee that if the last filter in the
|
| 839 |
+
chain produces 4n bytes of output, the chain as a whole will
|
| 840 |
+
produce at least n bytes of output.
|
| 841 |
+
|
| 842 |
+
|
| 843 |
+
5.3. Filters
|
| 844 |
+
|
| 845 |
+
5.3.1. LZMA2
|
| 846 |
+
|
| 847 |
+
LZMA (Lempel-Ziv-Markov chain-Algorithm) is a general-purpose
|
| 848 |
+
compression algorithm with high compression ratio and fast
|
| 849 |
+
decompression. LZMA is based on LZ77 and range coding
|
| 850 |
+
algorithms.
|
| 851 |
+
|
| 852 |
+
LZMA2 is an extension on top of the original LZMA. LZMA2 uses
|
| 853 |
+
LZMA internally, but adds support for flushing the encoder,
|
| 854 |
+
uncompressed chunks, eases stateful decoder implementations,
|
| 855 |
+
and improves support for multithreading. Thus, the plain LZMA
|
| 856 |
+
will not be supported in this file format.
|
| 857 |
+
|
| 858 |
+
Filter ID: 0x21
|
| 859 |
+
Size of Filter Properties: 1 byte
|
| 860 |
+
Changes size of data: Yes
|
| 861 |
+
Allow as a non-last filter: No
|
| 862 |
+
Allow as the last filter: Yes
|
| 863 |
+
|
| 864 |
+
Preferred alignment:
|
| 865 |
+
Input data: Adjustable to 1/2/4/8/16 byte(s)
|
| 866 |
+
Output data: 1 byte
|
| 867 |
+
|
| 868 |
+
The format of the one-byte Filter Properties field is as
|
| 869 |
+
follows:
|
| 870 |
+
|
| 871 |
+
Bits Mask Description
|
| 872 |
+
0-5 0x3F Dictionary Size
|
| 873 |
+
6-7 0xC0 Reserved for future use; MUST be zero for now.
|
| 874 |
+
|
| 875 |
+
Dictionary Size is encoded with one-bit mantissa and five-bit
|
| 876 |
+
exponent. The smallest dictionary size is 4 KiB and the biggest
|
| 877 |
+
is 4 GiB.
|
| 878 |
+
|
| 879 |
+
Raw value Mantissa Exponent Dictionary size
|
| 880 |
+
0 2 11 4 KiB
|
| 881 |
+
1 3 11 6 KiB
|
| 882 |
+
2 2 12 8 KiB
|
| 883 |
+
3 3 12 12 KiB
|
| 884 |
+
4 2 13 16 KiB
|
| 885 |
+
5 3 13 24 KiB
|
| 886 |
+
6 2 14 32 KiB
|
| 887 |
+
... ... ... ...
|
| 888 |
+
35 3 27 768 MiB
|
| 889 |
+
36 2 28 1024 MiB
|
| 890 |
+
37 3 29 1536 MiB
|
| 891 |
+
38 2 30 2048 MiB
|
| 892 |
+
39 3 30 3072 MiB
|
| 893 |
+
40 2 31 4096 MiB - 1 B
|
| 894 |
+
|
| 895 |
+
Instead of having a table in the decoder, the dictionary size
|
| 896 |
+
can be decoded using the following C code:
|
| 897 |
+
|
| 898 |
+
const uint8_t bits = get_dictionary_flags() & 0x3F;
|
| 899 |
+
if (bits > 40)
|
| 900 |
+
return DICTIONARY_TOO_BIG; // Bigger than 4 GiB
|
| 901 |
+
|
| 902 |
+
uint32_t dictionary_size;
|
| 903 |
+
if (bits == 40) {
|
| 904 |
+
dictionary_size = UINT32_MAX;
|
| 905 |
+
} else {
|
| 906 |
+
dictionary_size = 2 | (bits & 1);
|
| 907 |
+
dictionary_size <<= bits / 2 + 11;
|
| 908 |
+
}
|
| 909 |
+
|
| 910 |
+
|
| 911 |
+
5.3.2. Branch/Call/Jump Filters for Executables
|
| 912 |
+
|
| 913 |
+
These filters convert relative branch, call, and jump
|
| 914 |
+
instructions to their absolute counterparts in executable
|
| 915 |
+
files. This conversion increases redundancy and thus
|
| 916 |
+
compression ratio.
|
| 917 |
+
|
| 918 |
+
Size of Filter Properties: 0 or 4 bytes
|
| 919 |
+
Changes size of data: No
|
| 920 |
+
Allow as a non-last filter: Yes
|
| 921 |
+
Allow as the last filter: No
|
| 922 |
+
|
| 923 |
+
Below is the list of filters in this category. The alignment
|
| 924 |
+
is the same for both input and output data.
|
| 925 |
+
|
| 926 |
+
Filter ID Alignment Description
|
| 927 |
+
0x04 1 byte x86 filter (BCJ)
|
| 928 |
+
0x05 4 bytes PowerPC (big endian) filter
|
| 929 |
+
0x06 16 bytes IA64 filter
|
| 930 |
+
0x07 4 bytes ARM filter [1]
|
| 931 |
+
0x08 2 bytes ARM Thumb filter [1]
|
| 932 |
+
0x09 4 bytes SPARC filter
|
| 933 |
+
0x0A 4 bytes ARM64 filter [2]
|
| 934 |
+
0x0B 2 bytes RISC-V filter
|
| 935 |
+
|
| 936 |
+
[1] These are for little endian instruction encoding.
|
| 937 |
+
This must not be confused with data endianness.
|
| 938 |
+
A processor configured for big endian data access
|
| 939 |
+
may still use little endian instruction encoding.
|
| 940 |
+
The filters don't care about the data endianness.
|
| 941 |
+
|
| 942 |
+
[2] 4096-byte alignment gives the best results
|
| 943 |
+
because the address in the ADRP instruction
|
| 944 |
+
is a multiple of 4096 bytes.
|
| 945 |
+
|
| 946 |
+
If the size of Filter Properties is four bytes, the Filter
|
| 947 |
+
Properties field contains the start offset used for address
|
| 948 |
+
conversions. It is stored as an unsigned 32-bit little endian
|
| 949 |
+
integer. The start offset MUST be a multiple of the alignment
|
| 950 |
+
of the filter as listed in the table above; if it isn't, the
|
| 951 |
+
decoder MUST indicate an error. If the size of Filter
|
| 952 |
+
Properties is zero, the start offset is zero.
|
| 953 |
+
|
| 954 |
+
Setting the start offset may be useful if an executable has
|
| 955 |
+
multiple sections, and there are many cross-section calls.
|
| 956 |
+
Taking advantage of this feature usually requires usage of
|
| 957 |
+
the Subblock filter, whose design is not complete yet.
|
| 958 |
+
|
| 959 |
+
|
| 960 |
+
5.3.3. Delta
|
| 961 |
+
|
| 962 |
+
The Delta filter may increase compression ratio when the value
|
| 963 |
+
of the next byte correlates with the value of an earlier byte
|
| 964 |
+
at specified distance.
|
| 965 |
+
|
| 966 |
+
Filter ID: 0x03
|
| 967 |
+
Size of Filter Properties: 1 byte
|
| 968 |
+
Changes size of data: No
|
| 969 |
+
Allow as a non-last filter: Yes
|
| 970 |
+
Allow as the last filter: No
|
| 971 |
+
|
| 972 |
+
Preferred alignment:
|
| 973 |
+
Input data: 1 byte
|
| 974 |
+
Output data: Same as the original input data
|
| 975 |
+
|
| 976 |
+
The Properties byte indicates the delta distance, which can be
|
| 977 |
+
1-256 bytes backwards from the current byte: 0x00 indicates
|
| 978 |
+
distance of 1 byte and 0xFF distance of 256 bytes.
|
| 979 |
+
|
| 980 |
+
|
| 981 |
+
5.3.3.1. Format of the Encoded Output
|
| 982 |
+
|
| 983 |
+
The code below illustrates both encoding and decoding with
|
| 984 |
+
the Delta filter.
|
| 985 |
+
|
| 986 |
+
// Distance is in the range [1, 256].
|
| 987 |
+
const unsigned int distance = get_properties_byte() + 1;
|
| 988 |
+
uint8_t pos = 0;
|
| 989 |
+
uint8_t delta[256];
|
| 990 |
+
|
| 991 |
+
memset(delta, 0, sizeof(delta));
|
| 992 |
+
|
| 993 |
+
while (1) {
|
| 994 |
+
const int byte = read_byte();
|
| 995 |
+
if (byte == EOF)
|
| 996 |
+
break;
|
| 997 |
+
|
| 998 |
+
uint8_t tmp = delta[(uint8_t)(distance + pos)];
|
| 999 |
+
if (is_encoder) {
|
| 1000 |
+
tmp = (uint8_t)(byte) - tmp;
|
| 1001 |
+
delta[pos] = (uint8_t)(byte);
|
| 1002 |
+
} else {
|
| 1003 |
+
tmp = (uint8_t)(byte) + tmp;
|
| 1004 |
+
delta[pos] = tmp;
|
| 1005 |
+
}
|
| 1006 |
+
|
| 1007 |
+
write_byte(tmp);
|
| 1008 |
+
--pos;
|
| 1009 |
+
}
|
| 1010 |
+
|
| 1011 |
+
|
| 1012 |
+
5.4. Custom Filter IDs
|
| 1013 |
+
|
| 1014 |
+
If a developer wants to use custom Filter IDs, there are two
|
| 1015 |
+
choices. The first choice is to contact Lasse Collin and ask
|
| 1016 |
+
him to allocate a range of IDs for the developer.
|
| 1017 |
+
|
| 1018 |
+
The second choice is to generate a 40-bit random integer
|
| 1019 |
+
which the developer can use as a personal Developer ID.
|
| 1020 |
+
To minimize the risk of collisions, Developer ID has to be
|
| 1021 |
+
a randomly generated integer, not manually selected "hex word".
|
| 1022 |
+
The following command, which works on many free operating
|
| 1023 |
+
systems, can be used to generate Developer ID:
|
| 1024 |
+
|
| 1025 |
+
dd if=/dev/urandom bs=5 count=1 | hexdump
|
| 1026 |
+
|
| 1027 |
+
The developer can then use the Developer ID to create unique
|
| 1028 |
+
(well, hopefully unique) Filter IDs.
|
| 1029 |
+
|
| 1030 |
+
Bits Mask Description
|
| 1031 |
+
0-15 0x0000_0000_0000_FFFF Filter ID
|
| 1032 |
+
16-55 0x00FF_FFFF_FFFF_0000 Developer ID
|
| 1033 |
+
56-62 0x3F00_0000_0000_0000 Static prefix: 0x3F
|
| 1034 |
+
|
| 1035 |
+
The resulting 63-bit integer will use 9 bytes of space when
|
| 1036 |
+
stored using the encoding described in Section 1.2. To get
|
| 1037 |
+
a shorter ID, see the beginning of this Section how to
|
| 1038 |
+
request a custom ID range.
|
| 1039 |
+
|
| 1040 |
+
|
| 1041 |
+
5.4.1. Reserved Custom Filter ID Ranges
|
| 1042 |
+
|
| 1043 |
+
Range Description
|
| 1044 |
+
0x0000_0300 - 0x0000_04FF Reserved to ease .7z compatibility
|
| 1045 |
+
0x0002_0000 - 0x0007_FFFF Reserved to ease .7z compatibility
|
| 1046 |
+
0x0200_0000 - 0x07FF_FFFF Reserved to ease .7z compatibility
|
| 1047 |
+
|
| 1048 |
+
|
| 1049 |
+
6. Cyclic Redundancy Checks
|
| 1050 |
+
|
| 1051 |
+
There are several incompatible variations to calculate CRC32
|
| 1052 |
+
and CRC64. For simplicity and clarity, complete examples are
|
| 1053 |
+
provided to calculate the checks as they are used in this file
|
| 1054 |
+
format. Implementations MAY use different code as long as it
|
| 1055 |
+
gives identical results.
|
| 1056 |
+
|
| 1057 |
+
The program below reads data from standard input, calculates
|
| 1058 |
+
the CRC32 and CRC64 values, and prints the calculated values
|
| 1059 |
+
as big endian hexadecimal strings to standard output.
|
| 1060 |
+
|
| 1061 |
+
#include <stddef.h>
|
| 1062 |
+
#include <inttypes.h>
|
| 1063 |
+
#include <stdio.h>
|
| 1064 |
+
|
| 1065 |
+
uint32_t crc32_table[256];
|
| 1066 |
+
uint64_t crc64_table[256];
|
| 1067 |
+
|
| 1068 |
+
void
|
| 1069 |
+
init(void)
|
| 1070 |
+
{
|
| 1071 |
+
static const uint32_t poly32 = UINT32_C(0xEDB88320);
|
| 1072 |
+
static const uint64_t poly64
|
| 1073 |
+
= UINT64_C(0xC96C5795D7870F42);
|
| 1074 |
+
|
| 1075 |
+
for (size_t i = 0; i < 256; ++i) {
|
| 1076 |
+
uint32_t crc32 = i;
|
| 1077 |
+
uint64_t crc64 = i;
|
| 1078 |
+
|
| 1079 |
+
for (size_t j = 0; j < 8; ++j) {
|
| 1080 |
+
if (crc32 & 1)
|
| 1081 |
+
crc32 = (crc32 >> 1) ^ poly32;
|
| 1082 |
+
else
|
| 1083 |
+
crc32 >>= 1;
|
| 1084 |
+
|
| 1085 |
+
if (crc64 & 1)
|
| 1086 |
+
crc64 = (crc64 >> 1) ^ poly64;
|
| 1087 |
+
else
|
| 1088 |
+
crc64 >>= 1;
|
| 1089 |
+
}
|
| 1090 |
+
|
| 1091 |
+
crc32_table[i] = crc32;
|
| 1092 |
+
crc64_table[i] = crc64;
|
| 1093 |
+
}
|
| 1094 |
+
}
|
| 1095 |
+
|
| 1096 |
+
uint32_t
|
| 1097 |
+
crc32(const uint8_t *buf, size_t size, uint32_t crc)
|
| 1098 |
+
{
|
| 1099 |
+
crc = ~crc;
|
| 1100 |
+
for (size_t i = 0; i < size; ++i)
|
| 1101 |
+
crc = crc32_table[buf[i] ^ (crc & 0xFF)]
|
| 1102 |
+
^ (crc >> 8);
|
| 1103 |
+
return ~crc;
|
| 1104 |
+
}
|
| 1105 |
+
|
| 1106 |
+
uint64_t
|
| 1107 |
+
crc64(const uint8_t *buf, size_t size, uint64_t crc)
|
| 1108 |
+
{
|
| 1109 |
+
crc = ~crc;
|
| 1110 |
+
for (size_t i = 0; i < size; ++i)
|
| 1111 |
+
crc = crc64_table[buf[i] ^ (crc & 0xFF)]
|
| 1112 |
+
^ (crc >> 8);
|
| 1113 |
+
return ~crc;
|
| 1114 |
+
}
|
| 1115 |
+
|
| 1116 |
+
int
|
| 1117 |
+
main()
|
| 1118 |
+
{
|
| 1119 |
+
init();
|
| 1120 |
+
|
| 1121 |
+
uint32_t value32 = 0;
|
| 1122 |
+
uint64_t value64 = 0;
|
| 1123 |
+
uint64_t total_size = 0;
|
| 1124 |
+
uint8_t buf[8192];
|
| 1125 |
+
|
| 1126 |
+
while (1) {
|
| 1127 |
+
const size_t buf_size
|
| 1128 |
+
= fread(buf, 1, sizeof(buf), stdin);
|
| 1129 |
+
if (buf_size == 0)
|
| 1130 |
+
break;
|
| 1131 |
+
|
| 1132 |
+
total_size += buf_size;
|
| 1133 |
+
value32 = crc32(buf, buf_size, value32);
|
| 1134 |
+
value64 = crc64(buf, buf_size, value64);
|
| 1135 |
+
}
|
| 1136 |
+
|
| 1137 |
+
printf("Bytes: %" PRIu64 "\n", total_size);
|
| 1138 |
+
printf("CRC-32: 0x%08" PRIX32 "\n", value32);
|
| 1139 |
+
printf("CRC-64: 0x%016" PRIX64 "\n", value64);
|
| 1140 |
+
|
| 1141 |
+
return 0;
|
| 1142 |
+
}
|
| 1143 |
+
|
| 1144 |
+
|
| 1145 |
+
7. References
|
| 1146 |
+
|
| 1147 |
+
LZMA SDK - The original LZMA implementation
|
| 1148 |
+
https://7-zip.org/sdk.html
|
| 1149 |
+
|
| 1150 |
+
LZMA Utils - LZMA adapted to POSIX-like systems
|
| 1151 |
+
https://tukaani.org/lzma/
|
| 1152 |
+
|
| 1153 |
+
XZ Utils - The next generation of LZMA Utils
|
| 1154 |
+
https://tukaani.org/xz/
|
| 1155 |
+
|
| 1156 |
+
[RFC-1952]
|
| 1157 |
+
GZIP file format specification version 4.3
|
| 1158 |
+
https://www.ietf.org/rfc/rfc1952.txt
|
| 1159 |
+
- Notation of byte boxes in section "2.1. Overall conventions"
|
| 1160 |
+
|
| 1161 |
+
[RFC-2119]
|
| 1162 |
+
Key words for use in RFCs to Indicate Requirement Levels
|
| 1163 |
+
https://www.ietf.org/rfc/rfc2119.txt
|
| 1164 |
+
|
| 1165 |
+
[GNU-tar]
|
| 1166 |
+
GNU tar 1.35 manual
|
| 1167 |
+
https://www.gnu.org/software/tar/manual/html_node/Blocking-Factor.html
|
| 1168 |
+
- Node 9.4.2 "Blocking Factor", paragraph that begins
|
| 1169 |
+
"gzip will complain about trailing garbage"
|
| 1170 |
+
- Note that this URL points to the latest version of the
|
| 1171 |
+
manual, and may some day not contain the note which is in
|
| 1172 |
+
1.35. For the exact version of the manual, download GNU
|
| 1173 |
+
tar 1.35: ftp://ftp.gnu.org/pub/gnu/tar/tar-1.35.tar.gz
|
| 1174 |
+
|
llava_next/share/info/libffi.info
ADDED
|
@@ -0,0 +1,1060 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This is libffi.info, produced by makeinfo version 6.8 from libffi.texi.
|
| 2 |
+
|
| 3 |
+
This manual is for libffi, a portable foreign function interface
|
| 4 |
+
library.
|
| 5 |
+
|
| 6 |
+
Copyright (C) 2008-2019, 2021, 2022 Anthony Green and Red Hat, Inc.
|
| 7 |
+
|
| 8 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 9 |
+
a copy of this software and associated documentation files (the
|
| 10 |
+
"Software"), to deal in the Software without restriction, including
|
| 11 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 12 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 13 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 14 |
+
the following conditions:
|
| 15 |
+
|
| 16 |
+
The above copyright notice and this permission notice shall be
|
| 17 |
+
included in all copies or substantial portions of the Software.
|
| 18 |
+
|
| 19 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 20 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 21 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 22 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 23 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 24 |
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 25 |
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 26 |
+
|
| 27 |
+
INFO-DIR-SECTION Development
|
| 28 |
+
START-INFO-DIR-ENTRY
|
| 29 |
+
* libffi: (libffi). Portable foreign function interface library.
|
| 30 |
+
END-INFO-DIR-ENTRY
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
File: libffi.info, Node: Top, Next: Introduction, Up: (dir)
|
| 34 |
+
|
| 35 |
+
libffi
|
| 36 |
+
******
|
| 37 |
+
|
| 38 |
+
This manual is for libffi, a portable foreign function interface
|
| 39 |
+
library.
|
| 40 |
+
|
| 41 |
+
Copyright (C) 2008-2019, 2021, 2022 Anthony Green and Red Hat, Inc.
|
| 42 |
+
|
| 43 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 44 |
+
a copy of this software and associated documentation files (the
|
| 45 |
+
"Software"), to deal in the Software without restriction, including
|
| 46 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 47 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 48 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 49 |
+
the following conditions:
|
| 50 |
+
|
| 51 |
+
The above copyright notice and this permission notice shall be
|
| 52 |
+
included in all copies or substantial portions of the Software.
|
| 53 |
+
|
| 54 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 55 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 56 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 57 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 58 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 59 |
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 60 |
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 61 |
+
|
| 62 |
+
* Menu:
|
| 63 |
+
|
| 64 |
+
* Introduction:: What is libffi?
|
| 65 |
+
* Using libffi:: How to use libffi.
|
| 66 |
+
* Memory Usage:: Where memory for closures comes from.
|
| 67 |
+
* Missing Features:: Things libffi can't do.
|
| 68 |
+
* Index:: Index.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
File: libffi.info, Node: Introduction, Next: Using libffi, Prev: Top, Up: Top
|
| 72 |
+
|
| 73 |
+
1 What is libffi?
|
| 74 |
+
*****************
|
| 75 |
+
|
| 76 |
+
Compilers for high level languages generate code that follow certain
|
| 77 |
+
conventions. These conventions are necessary, in part, for separate
|
| 78 |
+
compilation to work. One such convention is the "calling convention".
|
| 79 |
+
The calling convention is a set of assumptions made by the compiler
|
| 80 |
+
about where function arguments will be found on entry to a function. A
|
| 81 |
+
calling convention also specifies where the return value for a function
|
| 82 |
+
is found. The calling convention is also sometimes called the "ABI" or
|
| 83 |
+
"Application Binary Interface".
|
| 84 |
+
|
| 85 |
+
Some programs may not know at the time of compilation what arguments
|
| 86 |
+
are to be passed to a function. For instance, an interpreter may be
|
| 87 |
+
told at run-time about the number and types of arguments used to call a
|
| 88 |
+
given function. 'libffi' can be used in such programs to provide a
|
| 89 |
+
bridge from the interpreter program to compiled code.
|
| 90 |
+
|
| 91 |
+
The 'libffi' library provides a portable, high level programming
|
| 92 |
+
interface to various calling conventions. This allows a programmer to
|
| 93 |
+
call any function specified by a call interface description at run time.
|
| 94 |
+
|
| 95 |
+
FFI stands for Foreign Function Interface. A foreign function
|
| 96 |
+
interface is the popular name for the interface that allows code written
|
| 97 |
+
in one language to call code written in another language. The 'libffi'
|
| 98 |
+
library really only provides the lowest, machine dependent layer of a
|
| 99 |
+
fully featured foreign function interface. A layer must exist above
|
| 100 |
+
'libffi' that handles type conversions for values passed between the two
|
| 101 |
+
languages.
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
File: libffi.info, Node: Using libffi, Next: Memory Usage, Prev: Introduction, Up: Top
|
| 105 |
+
|
| 106 |
+
2 Using libffi
|
| 107 |
+
**************
|
| 108 |
+
|
| 109 |
+
* Menu:
|
| 110 |
+
|
| 111 |
+
* The Basics:: The basic libffi API.
|
| 112 |
+
* Simple Example:: A simple example.
|
| 113 |
+
* Types:: libffi type descriptions.
|
| 114 |
+
* Multiple ABIs:: Different passing styles on one platform.
|
| 115 |
+
* The Closure API:: Writing a generic function.
|
| 116 |
+
* Closure Example:: A closure example.
|
| 117 |
+
* Thread Safety:: Thread safety.
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
File: libffi.info, Node: The Basics, Next: Simple Example, Up: Using libffi
|
| 121 |
+
|
| 122 |
+
2.1 The Basics
|
| 123 |
+
==============
|
| 124 |
+
|
| 125 |
+
'libffi' assumes that you have a pointer to the function you wish to
|
| 126 |
+
call and that you know the number and types of arguments to pass it, as
|
| 127 |
+
well as the return type of the function.
|
| 128 |
+
|
| 129 |
+
The first thing you must do is create an 'ffi_cif' object that
|
| 130 |
+
matches the signature of the function you wish to call. This is a
|
| 131 |
+
separate step because it is common to make multiple calls using a single
|
| 132 |
+
'ffi_cif'. The "cif" in 'ffi_cif' stands for Call InterFace. To
|
| 133 |
+
prepare a call interface object, use the function 'ffi_prep_cif'.
|
| 134 |
+
|
| 135 |
+
-- Function: ffi_status ffi_prep_cif (ffi_cif *CIF, ffi_abi ABI,
|
| 136 |
+
unsigned int NARGS, ffi_type *RTYPE, ffi_type **ARGTYPES)
|
| 137 |
+
This initializes CIF according to the given parameters.
|
| 138 |
+
|
| 139 |
+
ABI is the ABI to use; normally 'FFI_DEFAULT_ABI' is what you want.
|
| 140 |
+
*note Multiple ABIs:: for more information.
|
| 141 |
+
|
| 142 |
+
NARGS is the number of arguments that this function accepts.
|
| 143 |
+
|
| 144 |
+
RTYPE is a pointer to an 'ffi_type' structure that describes the
|
| 145 |
+
return type of the function. *Note Types::.
|
| 146 |
+
|
| 147 |
+
ARGTYPES is a vector of 'ffi_type' pointers. ARGTYPES must have
|
| 148 |
+
NARGS elements. If NARGS is 0, this argument is ignored.
|
| 149 |
+
|
| 150 |
+
'ffi_prep_cif' returns a 'libffi' status code, of type
|
| 151 |
+
'ffi_status'. This will be either 'FFI_OK' if everything worked
|
| 152 |
+
properly; 'FFI_BAD_TYPEDEF' if one of the 'ffi_type' objects is
|
| 153 |
+
incorrect; or 'FFI_BAD_ABI' if the ABI parameter is invalid.
|
| 154 |
+
|
| 155 |
+
If the function being called is variadic (varargs) then
|
| 156 |
+
'ffi_prep_cif_var' must be used instead of 'ffi_prep_cif'.
|
| 157 |
+
|
| 158 |
+
-- Function: ffi_status ffi_prep_cif_var (ffi_cif *CIF, ffi_abi ABI,
|
| 159 |
+
unsigned int NFIXEDARGS, unsigned int NTOTALARGS, ffi_type
|
| 160 |
+
*RTYPE, ffi_type **ARGTYPES)
|
| 161 |
+
This initializes CIF according to the given parameters for a call
|
| 162 |
+
to a variadic function. In general its operation is the same as
|
| 163 |
+
for 'ffi_prep_cif' except that:
|
| 164 |
+
|
| 165 |
+
NFIXEDARGS is the number of fixed arguments, prior to any variadic
|
| 166 |
+
arguments. It must be greater than zero.
|
| 167 |
+
|
| 168 |
+
NTOTALARGS the total number of arguments, including variadic and
|
| 169 |
+
fixed arguments. ARGTYPES must have this many elements.
|
| 170 |
+
|
| 171 |
+
'ffi_prep_cif_var' will return 'FFI_BAD_ARGTYPE' if any of the
|
| 172 |
+
variable argument types are 'ffi_type_float' (promote to
|
| 173 |
+
'ffi_type_double' first), or any integer type small than an int
|
| 174 |
+
(promote to an int-sized type first).
|
| 175 |
+
|
| 176 |
+
Note that, different cif's must be prepped for calls to the same
|
| 177 |
+
function when different numbers of arguments are passed.
|
| 178 |
+
|
| 179 |
+
Also note that a call to 'ffi_prep_cif_var' with
|
| 180 |
+
NFIXEDARGS=NOTOTALARGS is NOT equivalent to a call to
|
| 181 |
+
'ffi_prep_cif'.
|
| 182 |
+
|
| 183 |
+
Note that the resulting 'ffi_cif' holds pointers to all the
|
| 184 |
+
'ffi_type' objects that were used during initialization. You must
|
| 185 |
+
ensure that these type objects have a lifetime at least as long as that
|
| 186 |
+
of the 'ffi_cif'.
|
| 187 |
+
|
| 188 |
+
To call a function using an initialized 'ffi_cif', use the 'ffi_call'
|
| 189 |
+
function:
|
| 190 |
+
|
| 191 |
+
-- Function: void ffi_call (ffi_cif *CIF, void *FN, void *RVALUE, void
|
| 192 |
+
**AVALUES)
|
| 193 |
+
This calls the function FN according to the description given in
|
| 194 |
+
CIF. CIF must have already been prepared using 'ffi_prep_cif'.
|
| 195 |
+
|
| 196 |
+
RVALUE is a pointer to a chunk of memory that will hold the result
|
| 197 |
+
of the function call. This must be large enough to hold the
|
| 198 |
+
result, no smaller than the system register size (generally 32 or
|
| 199 |
+
64 bits), and must be suitably aligned; it is the caller's
|
| 200 |
+
responsibility to ensure this. If CIF declares that the function
|
| 201 |
+
returns 'void' (using 'ffi_type_void'), then RVALUE is ignored.
|
| 202 |
+
|
| 203 |
+
In most situations, 'libffi' will handle promotion according to the
|
| 204 |
+
ABI. However, for historical reasons, there is a special case with
|
| 205 |
+
return values that must be handled by your code. In particular,
|
| 206 |
+
for integral (not 'struct') types that are narrower than the system
|
| 207 |
+
register size, the return value will be widened by 'libffi'.
|
| 208 |
+
'libffi' provides a type, 'ffi_arg', that can be used as the return
|
| 209 |
+
type. For example, if the CIF was defined with a return type of
|
| 210 |
+
'char', 'libffi' will try to store a full 'ffi_arg' into the return
|
| 211 |
+
value.
|
| 212 |
+
|
| 213 |
+
AVALUES is a vector of 'void *' pointers that point to the memory
|
| 214 |
+
locations holding the argument values for a call. If CIF declares
|
| 215 |
+
that the function has no arguments (i.e., NARGS was 0), then
|
| 216 |
+
AVALUES is ignored.
|
| 217 |
+
|
| 218 |
+
Note that while the return value must be register-sized, arguments
|
| 219 |
+
should exactly match their declared type. For example, if an
|
| 220 |
+
argument is a 'short', then the entry in AVALUES should point to an
|
| 221 |
+
object declared as 'short'; but if the return type is 'short', then
|
| 222 |
+
RVALUE should point to an object declared as a larger type -
|
| 223 |
+
usually 'ffi_arg'.
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
File: libffi.info, Node: Simple Example, Next: Types, Prev: The Basics, Up: Using libffi
|
| 227 |
+
|
| 228 |
+
2.2 Simple Example
|
| 229 |
+
==================
|
| 230 |
+
|
| 231 |
+
Here is a trivial example that calls 'puts' a few times.
|
| 232 |
+
|
| 233 |
+
#include <stdio.h>
|
| 234 |
+
#include <ffi.h>
|
| 235 |
+
|
| 236 |
+
int main()
|
| 237 |
+
{
|
| 238 |
+
ffi_cif cif;
|
| 239 |
+
ffi_type *args[1];
|
| 240 |
+
void *values[1];
|
| 241 |
+
char *s;
|
| 242 |
+
ffi_arg rc;
|
| 243 |
+
|
| 244 |
+
/* Initialize the argument info vectors */
|
| 245 |
+
args[0] = &ffi_type_pointer;
|
| 246 |
+
values[0] = &s;
|
| 247 |
+
|
| 248 |
+
/* Initialize the cif */
|
| 249 |
+
if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1,
|
| 250 |
+
&ffi_type_sint, args) == FFI_OK)
|
| 251 |
+
{
|
| 252 |
+
s = "Hello World!";
|
| 253 |
+
ffi_call(&cif, puts, &rc, values);
|
| 254 |
+
/* rc now holds the result of the call to puts */
|
| 255 |
+
|
| 256 |
+
/* values holds a pointer to the function's arg, so to
|
| 257 |
+
call puts() again all we need to do is change the
|
| 258 |
+
value of s */
|
| 259 |
+
s = "This is cool!";
|
| 260 |
+
ffi_call(&cif, puts, &rc, values);
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
return 0;
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
File: libffi.info, Node: Types, Next: Multiple ABIs, Prev: Simple Example, Up: Using libffi
|
| 268 |
+
|
| 269 |
+
2.3 Types
|
| 270 |
+
=========
|
| 271 |
+
|
| 272 |
+
* Menu:
|
| 273 |
+
|
| 274 |
+
* Primitive Types:: Built-in types.
|
| 275 |
+
* Structures:: Structure types.
|
| 276 |
+
* Size and Alignment:: Size and alignment of types.
|
| 277 |
+
* Arrays Unions Enums:: Arrays, unions, and enumerations.
|
| 278 |
+
* Type Example:: Structure type example.
|
| 279 |
+
* Complex:: Complex types.
|
| 280 |
+
* Complex Type Example:: Complex type example.
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
File: libffi.info, Node: Primitive Types, Next: Structures, Up: Types
|
| 284 |
+
|
| 285 |
+
2.3.1 Primitive Types
|
| 286 |
+
---------------------
|
| 287 |
+
|
| 288 |
+
'Libffi' provides a number of built-in type descriptors that can be used
|
| 289 |
+
to describe argument and return types:
|
| 290 |
+
|
| 291 |
+
'ffi_type_void'
|
| 292 |
+
The type 'void'. This cannot be used for argument types, only for
|
| 293 |
+
return values.
|
| 294 |
+
|
| 295 |
+
'ffi_type_uint8'
|
| 296 |
+
An unsigned, 8-bit integer type.
|
| 297 |
+
|
| 298 |
+
'ffi_type_sint8'
|
| 299 |
+
A signed, 8-bit integer type.
|
| 300 |
+
|
| 301 |
+
'ffi_type_uint16'
|
| 302 |
+
An unsigned, 16-bit integer type.
|
| 303 |
+
|
| 304 |
+
'ffi_type_sint16'
|
| 305 |
+
A signed, 16-bit integer type.
|
| 306 |
+
|
| 307 |
+
'ffi_type_uint32'
|
| 308 |
+
An unsigned, 32-bit integer type.
|
| 309 |
+
|
| 310 |
+
'ffi_type_sint32'
|
| 311 |
+
A signed, 32-bit integer type.
|
| 312 |
+
|
| 313 |
+
'ffi_type_uint64'
|
| 314 |
+
An unsigned, 64-bit integer type.
|
| 315 |
+
|
| 316 |
+
'ffi_type_sint64'
|
| 317 |
+
A signed, 64-bit integer type.
|
| 318 |
+
|
| 319 |
+
'ffi_type_float'
|
| 320 |
+
The C 'float' type.
|
| 321 |
+
|
| 322 |
+
'ffi_type_double'
|
| 323 |
+
The C 'double' type.
|
| 324 |
+
|
| 325 |
+
'ffi_type_uchar'
|
| 326 |
+
The C 'unsigned char' type.
|
| 327 |
+
|
| 328 |
+
'ffi_type_schar'
|
| 329 |
+
The C 'signed char' type. (Note that there is not an exact
|
| 330 |
+
equivalent to the C 'char' type in 'libffi'; ordinarily you should
|
| 331 |
+
either use 'ffi_type_schar' or 'ffi_type_uchar' depending on
|
| 332 |
+
whether 'char' is signed.)
|
| 333 |
+
|
| 334 |
+
'ffi_type_ushort'
|
| 335 |
+
The C 'unsigned short' type.
|
| 336 |
+
|
| 337 |
+
'ffi_type_sshort'
|
| 338 |
+
The C 'short' type.
|
| 339 |
+
|
| 340 |
+
'ffi_type_uint'
|
| 341 |
+
The C 'unsigned int' type.
|
| 342 |
+
|
| 343 |
+
'ffi_type_sint'
|
| 344 |
+
The C 'int' type.
|
| 345 |
+
|
| 346 |
+
'ffi_type_ulong'
|
| 347 |
+
The C 'unsigned long' type.
|
| 348 |
+
|
| 349 |
+
'ffi_type_slong'
|
| 350 |
+
The C 'long' type.
|
| 351 |
+
|
| 352 |
+
'ffi_type_longdouble'
|
| 353 |
+
On platforms that have a C 'long double' type, this is defined. On
|
| 354 |
+
other platforms, it is not.
|
| 355 |
+
|
| 356 |
+
'ffi_type_pointer'
|
| 357 |
+
A generic 'void *' pointer. You should use this for all pointers,
|
| 358 |
+
regardless of their real type.
|
| 359 |
+
|
| 360 |
+
'ffi_type_complex_float'
|
| 361 |
+
The C '_Complex float' type.
|
| 362 |
+
|
| 363 |
+
'ffi_type_complex_double'
|
| 364 |
+
The C '_Complex double' type.
|
| 365 |
+
|
| 366 |
+
'ffi_type_complex_longdouble'
|
| 367 |
+
The C '_Complex long double' type. On platforms that have a C
|
| 368 |
+
'long double' type, this is defined. On other platforms, it is
|
| 369 |
+
not.
|
| 370 |
+
|
| 371 |
+
Each of these is of type 'ffi_type', so you must take the address
|
| 372 |
+
when passing to 'ffi_prep_cif'.
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
File: libffi.info, Node: Structures, Next: Size and Alignment, Prev: Primitive Types, Up: Types
|
| 376 |
+
|
| 377 |
+
2.3.2 Structures
|
| 378 |
+
----------------
|
| 379 |
+
|
| 380 |
+
'libffi' is perfectly happy passing structures back and forth. You must
|
| 381 |
+
first describe the structure to 'libffi' by creating a new 'ffi_type'
|
| 382 |
+
object for it.
|
| 383 |
+
|
| 384 |
+
-- Data type: ffi_type
|
| 385 |
+
The 'ffi_type' has the following members:
|
| 386 |
+
'size_t size'
|
| 387 |
+
This is set by 'libffi'; you should initialize it to zero.
|
| 388 |
+
|
| 389 |
+
'unsigned short alignment'
|
| 390 |
+
This is set by 'libffi'; you should initialize it to zero.
|
| 391 |
+
|
| 392 |
+
'unsigned short type'
|
| 393 |
+
For a structure, this should be set to 'FFI_TYPE_STRUCT'.
|
| 394 |
+
|
| 395 |
+
'ffi_type **elements'
|
| 396 |
+
This is a 'NULL'-terminated array of pointers to 'ffi_type'
|
| 397 |
+
objects. There is one element per field of the struct.
|
| 398 |
+
|
| 399 |
+
Note that 'libffi' has no special support for bit-fields. You
|
| 400 |
+
must manage these manually.
|
| 401 |
+
|
| 402 |
+
The 'size' and 'alignment' fields will be filled in by 'ffi_prep_cif'
|
| 403 |
+
or 'ffi_prep_cif_var', as needed.
|
| 404 |
+
|
| 405 |
+
|
| 406 |
+
File: libffi.info, Node: Size and Alignment, Next: Arrays Unions Enums, Prev: Structures, Up: Types
|
| 407 |
+
|
| 408 |
+
2.3.3 Size and Alignment
|
| 409 |
+
------------------------
|
| 410 |
+
|
| 411 |
+
'libffi' will set the 'size' and 'alignment' fields of an 'ffi_type'
|
| 412 |
+
object for you. It does so using its knowledge of the ABI.
|
| 413 |
+
|
| 414 |
+
You might expect that you can simply read these fields for a type
|
| 415 |
+
that has been laid out by 'libffi'. However, there are some caveats.
|
| 416 |
+
|
| 417 |
+
* The size or alignment of some of the built-in types may vary
|
| 418 |
+
depending on the chosen ABI.
|
| 419 |
+
|
| 420 |
+
* The size and alignment of a new structure type will not be set by
|
| 421 |
+
'libffi' until it has been passed to 'ffi_prep_cif' or
|
| 422 |
+
'ffi_get_struct_offsets'.
|
| 423 |
+
|
| 424 |
+
* A structure type cannot be shared across ABIs. Instead each ABI
|
| 425 |
+
needs its own copy of the structure type.
|
| 426 |
+
|
| 427 |
+
So, before examining these fields, it is safest to pass the
|
| 428 |
+
'ffi_type' object to 'ffi_prep_cif' or 'ffi_get_struct_offsets' first.
|
| 429 |
+
This function will do all the needed setup.
|
| 430 |
+
|
| 431 |
+
ffi_type *desired_type;
|
| 432 |
+
ffi_abi desired_abi;
|
| 433 |
+
...
|
| 434 |
+
ffi_cif cif;
|
| 435 |
+
if (ffi_prep_cif (&cif, desired_abi, 0, desired_type, NULL) == FFI_OK)
|
| 436 |
+
{
|
| 437 |
+
size_t size = desired_type->size;
|
| 438 |
+
unsigned short alignment = desired_type->alignment;
|
| 439 |
+
}
|
| 440 |
+
|
| 441 |
+
'libffi' also provides a way to get the offsets of the members of a
|
| 442 |
+
structure.
|
| 443 |
+
|
| 444 |
+
-- Function: ffi_status ffi_get_struct_offsets (ffi_abi abi, ffi_type
|
| 445 |
+
*struct_type, size_t *offsets)
|
| 446 |
+
Compute the offset of each element of the given structure type.
|
| 447 |
+
ABI is the ABI to use; this is needed because in some cases the
|
| 448 |
+
layout depends on the ABI.
|
| 449 |
+
|
| 450 |
+
OFFSETS is an out parameter. The caller is responsible for
|
| 451 |
+
providing enough space for all the results to be written - one
|
| 452 |
+
element per element type in STRUCT_TYPE. If OFFSETS is 'NULL',
|
| 453 |
+
then the type will be laid out but not otherwise modified. This
|
| 454 |
+
can be useful for accessing the type's size or layout, as mentioned
|
| 455 |
+
above.
|
| 456 |
+
|
| 457 |
+
This function returns 'FFI_OK' on success; 'FFI_BAD_ABI' if ABI is
|
| 458 |
+
invalid; or 'FFI_BAD_TYPEDEF' if STRUCT_TYPE is invalid in some
|
| 459 |
+
way. Note that only 'FFI_STRUCT' types are valid here.
|
| 460 |
+
|
| 461 |
+
|
| 462 |
+
File: libffi.info, Node: Arrays Unions Enums, Next: Type Example, Prev: Size and Alignment, Up: Types
|
| 463 |
+
|
| 464 |
+
2.3.4 Arrays, Unions, and Enumerations
|
| 465 |
+
--------------------------------------
|
| 466 |
+
|
| 467 |
+
2.3.4.1 Arrays
|
| 468 |
+
..............
|
| 469 |
+
|
| 470 |
+
'libffi' does not have direct support for arrays or unions. However,
|
| 471 |
+
they can be emulated using structures.
|
| 472 |
+
|
| 473 |
+
To emulate an array, simply create an 'ffi_type' using
|
| 474 |
+
'FFI_TYPE_STRUCT' with as many members as there are elements in the
|
| 475 |
+
array.
|
| 476 |
+
|
| 477 |
+
ffi_type array_type;
|
| 478 |
+
ffi_type **elements
|
| 479 |
+
int i;
|
| 480 |
+
|
| 481 |
+
elements = malloc ((n + 1) * sizeof (ffi_type *));
|
| 482 |
+
for (i = 0; i < n; ++i)
|
| 483 |
+
elements[i] = array_element_type;
|
| 484 |
+
elements[n] = NULL;
|
| 485 |
+
|
| 486 |
+
array_type.size = array_type.alignment = 0;
|
| 487 |
+
array_type.type = FFI_TYPE_STRUCT;
|
| 488 |
+
array_type.elements = elements;
|
| 489 |
+
|
| 490 |
+
Note that arrays cannot be passed or returned by value in C -
|
| 491 |
+
structure types created like this should only be used to refer to
|
| 492 |
+
members of real 'FFI_TYPE_STRUCT' objects.
|
| 493 |
+
|
| 494 |
+
However, a phony array type like this will not cause any errors from
|
| 495 |
+
'libffi' if you use it as an argument or return type. This may be
|
| 496 |
+
confusing.
|
| 497 |
+
|
| 498 |
+
2.3.4.2 Unions
|
| 499 |
+
..............
|
| 500 |
+
|
| 501 |
+
A union can also be emulated using 'FFI_TYPE_STRUCT'. In this case,
|
| 502 |
+
however, you must make sure that the size and alignment match the real
|
| 503 |
+
requirements of the union.
|
| 504 |
+
|
| 505 |
+
One simple way to do this is to ensue that each element type is laid
|
| 506 |
+
out. Then, give the new structure type a single element; the size of
|
| 507 |
+
the largest element; and the largest alignment seen as well.
|
| 508 |
+
|
| 509 |
+
This example uses the 'ffi_prep_cif' trick to ensure that each
|
| 510 |
+
element type is laid out.
|
| 511 |
+
|
| 512 |
+
ffi_abi desired_abi;
|
| 513 |
+
ffi_type union_type;
|
| 514 |
+
ffi_type **union_elements;
|
| 515 |
+
|
| 516 |
+
int i;
|
| 517 |
+
ffi_type element_types[2];
|
| 518 |
+
|
| 519 |
+
element_types[1] = NULL;
|
| 520 |
+
|
| 521 |
+
union_type.size = union_type.alignment = 0;
|
| 522 |
+
union_type.type = FFI_TYPE_STRUCT;
|
| 523 |
+
union_type.elements = element_types;
|
| 524 |
+
|
| 525 |
+
for (i = 0; union_elements[i]; ++i)
|
| 526 |
+
{
|
| 527 |
+
ffi_cif cif;
|
| 528 |
+
if (ffi_prep_cif (&cif, desired_abi, 0, union_elements[i], NULL) == FFI_OK)
|
| 529 |
+
{
|
| 530 |
+
if (union_elements[i]->size > union_type.size)
|
| 531 |
+
{
|
| 532 |
+
union_type.size = union_elements[i];
|
| 533 |
+
size = union_elements[i]->size;
|
| 534 |
+
}
|
| 535 |
+
if (union_elements[i]->alignment > union_type.alignment)
|
| 536 |
+
union_type.alignment = union_elements[i]->alignment;
|
| 537 |
+
}
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
2.3.4.3 Enumerations
|
| 541 |
+
....................
|
| 542 |
+
|
| 543 |
+
'libffi' does not have any special support for C 'enum's. Although any
|
| 544 |
+
given 'enum' is implemented using a specific underlying integral type,
|
| 545 |
+
exactly which type will be used cannot be determined by 'libffi' - it
|
| 546 |
+
may depend on the values in the enumeration or on compiler flags such as
|
| 547 |
+
'-fshort-enums'. *Note (gcc)Structures unions enumerations and
|
| 548 |
+
bit-fields implementation::, for more information about how GCC handles
|
| 549 |
+
enumerations.
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
File: libffi.info, Node: Type Example, Next: Complex, Prev: Arrays Unions Enums, Up: Types
|
| 553 |
+
|
| 554 |
+
2.3.5 Type Example
|
| 555 |
+
------------------
|
| 556 |
+
|
| 557 |
+
The following example initializes a 'ffi_type' object representing the
|
| 558 |
+
'tm' struct from Linux's 'time.h'.
|
| 559 |
+
|
| 560 |
+
Here is how the struct is defined:
|
| 561 |
+
|
| 562 |
+
struct tm {
|
| 563 |
+
int tm_sec;
|
| 564 |
+
int tm_min;
|
| 565 |
+
int tm_hour;
|
| 566 |
+
int tm_mday;
|
| 567 |
+
int tm_mon;
|
| 568 |
+
int tm_year;
|
| 569 |
+
int tm_wday;
|
| 570 |
+
int tm_yday;
|
| 571 |
+
int tm_isdst;
|
| 572 |
+
/* Those are for future use. */
|
| 573 |
+
long int __tm_gmtoff__;
|
| 574 |
+
__const char *__tm_zone__;
|
| 575 |
+
};
|
| 576 |
+
|
| 577 |
+
Here is the corresponding code to describe this struct to 'libffi':
|
| 578 |
+
|
| 579 |
+
{
|
| 580 |
+
ffi_type tm_type;
|
| 581 |
+
ffi_type *tm_type_elements[12];
|
| 582 |
+
int i;
|
| 583 |
+
|
| 584 |
+
tm_type.size = tm_type.alignment = 0;
|
| 585 |
+
tm_type.type = FFI_TYPE_STRUCT;
|
| 586 |
+
tm_type.elements = &tm_type_elements;
|
| 587 |
+
|
| 588 |
+
for (i = 0; i < 9; i++)
|
| 589 |
+
tm_type_elements[i] = &ffi_type_sint;
|
| 590 |
+
|
| 591 |
+
tm_type_elements[9] = &ffi_type_slong;
|
| 592 |
+
tm_type_elements[10] = &ffi_type_pointer;
|
| 593 |
+
tm_type_elements[11] = NULL;
|
| 594 |
+
|
| 595 |
+
/* tm_type can now be used to represent tm argument types and
|
| 596 |
+
return types for ffi_prep_cif() */
|
| 597 |
+
}
|
| 598 |
+
|
| 599 |
+
|
| 600 |
+
File: libffi.info, Node: Complex, Next: Complex Type Example, Prev: Type Example, Up: Types
|
| 601 |
+
|
| 602 |
+
2.3.6 Complex Types
|
| 603 |
+
-------------------
|
| 604 |
+
|
| 605 |
+
'libffi' supports the complex types defined by the C99 standard
|
| 606 |
+
('_Complex float', '_Complex double' and '_Complex long double' with the
|
| 607 |
+
built-in type descriptors 'ffi_type_complex_float',
|
| 608 |
+
'ffi_type_complex_double' and 'ffi_type_complex_longdouble'.
|
| 609 |
+
|
| 610 |
+
Custom complex types like '_Complex int' can also be used. An
|
| 611 |
+
'ffi_type' object has to be defined to describe the complex type to
|
| 612 |
+
'libffi'.
|
| 613 |
+
|
| 614 |
+
-- Data type: ffi_type
|
| 615 |
+
'size_t size'
|
| 616 |
+
This must be manually set to the size of the complex type.
|
| 617 |
+
|
| 618 |
+
'unsigned short alignment'
|
| 619 |
+
This must be manually set to the alignment of the complex
|
| 620 |
+
type.
|
| 621 |
+
|
| 622 |
+
'unsigned short type'
|
| 623 |
+
For a complex type, this must be set to 'FFI_TYPE_COMPLEX'.
|
| 624 |
+
|
| 625 |
+
'ffi_type **elements'
|
| 626 |
+
|
| 627 |
+
This is a 'NULL'-terminated array of pointers to 'ffi_type'
|
| 628 |
+
objects. The first element is set to the 'ffi_type' of the
|
| 629 |
+
complex's base type. The second element must be set to
|
| 630 |
+
'NULL'.
|
| 631 |
+
|
| 632 |
+
The section *note Complex Type Example:: shows a way to determine the
|
| 633 |
+
'size' and 'alignment' members in a platform independent way.
|
| 634 |
+
|
| 635 |
+
For platforms that have no complex support in 'libffi' yet, the
|
| 636 |
+
functions 'ffi_prep_cif' and 'ffi_prep_args' abort the program if they
|
| 637 |
+
encounter a complex type.
|
| 638 |
+
|
| 639 |
+
|
| 640 |
+
File: libffi.info, Node: Complex Type Example, Prev: Complex, Up: Types
|
| 641 |
+
|
| 642 |
+
2.3.7 Complex Type Example
|
| 643 |
+
--------------------------
|
| 644 |
+
|
| 645 |
+
This example demonstrates how to use complex types:
|
| 646 |
+
|
| 647 |
+
#include <stdio.h>
|
| 648 |
+
#include <ffi.h>
|
| 649 |
+
#include <complex.h>
|
| 650 |
+
|
| 651 |
+
void complex_fn(_Complex float cf,
|
| 652 |
+
_Complex double cd,
|
| 653 |
+
_Complex long double cld)
|
| 654 |
+
{
|
| 655 |
+
printf("cf=%f+%fi\ncd=%f+%fi\ncld=%f+%fi\n",
|
| 656 |
+
(float)creal (cf), (float)cimag (cf),
|
| 657 |
+
(float)creal (cd), (float)cimag (cd),
|
| 658 |
+
(float)creal (cld), (float)cimag (cld));
|
| 659 |
+
}
|
| 660 |
+
|
| 661 |
+
int main()
|
| 662 |
+
{
|
| 663 |
+
ffi_cif cif;
|
| 664 |
+
ffi_type *args[3];
|
| 665 |
+
void *values[3];
|
| 666 |
+
_Complex float cf;
|
| 667 |
+
_Complex double cd;
|
| 668 |
+
_Complex long double cld;
|
| 669 |
+
|
| 670 |
+
/* Initialize the argument info vectors */
|
| 671 |
+
args[0] = &ffi_type_complex_float;
|
| 672 |
+
args[1] = &ffi_type_complex_double;
|
| 673 |
+
args[2] = &ffi_type_complex_longdouble;
|
| 674 |
+
values[0] = &cf;
|
| 675 |
+
values[1] = &cd;
|
| 676 |
+
values[2] = &cld;
|
| 677 |
+
|
| 678 |
+
/* Initialize the cif */
|
| 679 |
+
if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 3,
|
| 680 |
+
&ffi_type_void, args) == FFI_OK)
|
| 681 |
+
{
|
| 682 |
+
cf = 1.0 + 20.0 * I;
|
| 683 |
+
cd = 300.0 + 4000.0 * I;
|
| 684 |
+
cld = 50000.0 + 600000.0 * I;
|
| 685 |
+
/* Call the function */
|
| 686 |
+
ffi_call(&cif, (void (*)(void))complex_fn, 0, values);
|
| 687 |
+
}
|
| 688 |
+
|
| 689 |
+
return 0;
|
| 690 |
+
}
|
| 691 |
+
|
| 692 |
+
This is an example for defining a custom complex type descriptor for
|
| 693 |
+
compilers that support them:
|
| 694 |
+
|
| 695 |
+
/*
|
| 696 |
+
* This macro can be used to define new complex type descriptors
|
| 697 |
+
* in a platform independent way.
|
| 698 |
+
*
|
| 699 |
+
* name: Name of the new descriptor is ffi_type_complex_<name>.
|
| 700 |
+
* type: The C base type of the complex type.
|
| 701 |
+
*/
|
| 702 |
+
#define FFI_COMPLEX_TYPEDEF(name, type, ffitype) \
|
| 703 |
+
static ffi_type *ffi_elements_complex_##name [2] = { \
|
| 704 |
+
(ffi_type *)(&ffitype), NULL \
|
| 705 |
+
}; \
|
| 706 |
+
struct struct_align_complex_##name { \
|
| 707 |
+
char c; \
|
| 708 |
+
_Complex type x; \
|
| 709 |
+
}; \
|
| 710 |
+
ffi_type ffi_type_complex_##name = { \
|
| 711 |
+
sizeof(_Complex type), \
|
| 712 |
+
offsetof(struct struct_align_complex_##name, x), \
|
| 713 |
+
FFI_TYPE_COMPLEX, \
|
| 714 |
+
(ffi_type **)ffi_elements_complex_##name \
|
| 715 |
+
}
|
| 716 |
+
|
| 717 |
+
/* Define new complex type descriptors using the macro: */
|
| 718 |
+
/* ffi_type_complex_sint */
|
| 719 |
+
FFI_COMPLEX_TYPEDEF(sint, int, ffi_type_sint);
|
| 720 |
+
/* ffi_type_complex_uchar */
|
| 721 |
+
FFI_COMPLEX_TYPEDEF(uchar, unsigned char, ffi_type_uint8);
|
| 722 |
+
|
| 723 |
+
The new type descriptors can then be used like one of the built-in
|
| 724 |
+
type descriptors in the previous example.
|
| 725 |
+
|
| 726 |
+
|
| 727 |
+
File: libffi.info, Node: Multiple ABIs, Next: The Closure API, Prev: Types, Up: Using libffi
|
| 728 |
+
|
| 729 |
+
2.4 Multiple ABIs
|
| 730 |
+
=================
|
| 731 |
+
|
| 732 |
+
A given platform may provide multiple different ABIs at once. For
|
| 733 |
+
instance, the x86 platform has both 'stdcall' and 'fastcall' functions.
|
| 734 |
+
|
| 735 |
+
'libffi' provides some support for this. However, this is
|
| 736 |
+
necessarily platform-specific.
|
| 737 |
+
|
| 738 |
+
|
| 739 |
+
File: libffi.info, Node: The Closure API, Next: Closure Example, Prev: Multiple ABIs, Up: Using libffi
|
| 740 |
+
|
| 741 |
+
2.5 The Closure API
|
| 742 |
+
===================
|
| 743 |
+
|
| 744 |
+
'libffi' also provides a way to write a generic function - a function
|
| 745 |
+
that can accept and decode any combination of arguments. This can be
|
| 746 |
+
useful when writing an interpreter, or to provide wrappers for arbitrary
|
| 747 |
+
functions.
|
| 748 |
+
|
| 749 |
+
This facility is called the "closure API". Closures are not supported
|
| 750 |
+
on all platforms; you can check the 'FFI_CLOSURES' define to determine
|
| 751 |
+
whether they are supported on the current platform.
|
| 752 |
+
|
| 753 |
+
Because closures work by assembling a tiny function at runtime, they
|
| 754 |
+
require special allocation on platforms that have a non-executable heap.
|
| 755 |
+
Memory management for closures is handled by a pair of functions:
|
| 756 |
+
|
| 757 |
+
-- Function: void *ffi_closure_alloc (size_t SIZE, void **CODE)
|
| 758 |
+
Allocate a chunk of memory holding SIZE bytes. This returns a
|
| 759 |
+
pointer to the writable address, and sets *CODE to the
|
| 760 |
+
corresponding executable address.
|
| 761 |
+
|
| 762 |
+
SIZE should be sufficient to hold a 'ffi_closure' object.
|
| 763 |
+
|
| 764 |
+
-- Function: void ffi_closure_free (void *WRITABLE)
|
| 765 |
+
Free memory allocated using 'ffi_closure_alloc'. The argument is
|
| 766 |
+
the writable address that was returned.
|
| 767 |
+
|
| 768 |
+
Once you have allocated the memory for a closure, you must construct
|
| 769 |
+
a 'ffi_cif' describing the function call. Finally you can prepare the
|
| 770 |
+
closure function:
|
| 771 |
+
|
| 772 |
+
-- Function: ffi_status ffi_prep_closure_loc (ffi_closure *CLOSURE,
|
| 773 |
+
ffi_cif *CIF, void (*FUN) (ffi_cif *CIF, void *RET, void
|
| 774 |
+
**ARGS, void *USER_DATA), void *USER_DATA, void *CODELOC)
|
| 775 |
+
Prepare a closure function. The arguments to
|
| 776 |
+
'ffi_prep_closure_loc' are:
|
| 777 |
+
|
| 778 |
+
CLOSURE
|
| 779 |
+
The address of a 'ffi_closure' object; this is the writable
|
| 780 |
+
address returned by 'ffi_closure_alloc'.
|
| 781 |
+
|
| 782 |
+
CIF
|
| 783 |
+
The 'ffi_cif' describing the function parameters. Note that
|
| 784 |
+
this object, and the types to which it refers, must be kept
|
| 785 |
+
alive until the closure itself is freed.
|
| 786 |
+
|
| 787 |
+
USER_DATA
|
| 788 |
+
An arbitrary datum that is passed, uninterpreted, to your
|
| 789 |
+
closure function.
|
| 790 |
+
|
| 791 |
+
CODELOC
|
| 792 |
+
The executable address returned by 'ffi_closure_alloc'.
|
| 793 |
+
|
| 794 |
+
FUN
|
| 795 |
+
The function which will be called when the closure is invoked.
|
| 796 |
+
It is called with the arguments:
|
| 797 |
+
|
| 798 |
+
CIF
|
| 799 |
+
The 'ffi_cif' passed to 'ffi_prep_closure_loc'.
|
| 800 |
+
|
| 801 |
+
RET
|
| 802 |
+
A pointer to the memory used for the function's return
|
| 803 |
+
value.
|
| 804 |
+
|
| 805 |
+
If the function is declared as returning 'void', then
|
| 806 |
+
this value is garbage and should not be used.
|
| 807 |
+
|
| 808 |
+
Otherwise, FUN must fill the object to which this points,
|
| 809 |
+
following the same special promotion behavior as
|
| 810 |
+
'ffi_call'. That is, in most cases, RET points to an
|
| 811 |
+
object of exactly the size of the type specified when CIF
|
| 812 |
+
was constructed. However, integral types narrower than
|
| 813 |
+
the system register size are widened. In these cases
|
| 814 |
+
your program may assume that RET points to an 'ffi_arg'
|
| 815 |
+
object.
|
| 816 |
+
|
| 817 |
+
ARGS
|
| 818 |
+
A vector of pointers to memory holding the arguments to
|
| 819 |
+
the function.
|
| 820 |
+
|
| 821 |
+
USER_DATA
|
| 822 |
+
The same USER_DATA that was passed to
|
| 823 |
+
'ffi_prep_closure_loc'.
|
| 824 |
+
|
| 825 |
+
'ffi_prep_closure_loc' will return 'FFI_OK' if everything went ok,
|
| 826 |
+
and one of the other 'ffi_status' values on error.
|
| 827 |
+
|
| 828 |
+
After calling 'ffi_prep_closure_loc', you can cast CODELOC to the
|
| 829 |
+
appropriate pointer-to-function type.
|
| 830 |
+
|
| 831 |
+
You may see old code referring to 'ffi_prep_closure'. This function
|
| 832 |
+
is deprecated, as it cannot handle the need for separate writable and
|
| 833 |
+
executable addresses.
|
| 834 |
+
|
| 835 |
+
|
| 836 |
+
File: libffi.info, Node: Closure Example, Next: Thread Safety, Prev: The Closure API, Up: Using libffi
|
| 837 |
+
|
| 838 |
+
2.6 Closure Example
|
| 839 |
+
===================
|
| 840 |
+
|
| 841 |
+
A trivial example that creates a new 'puts' by binding 'fputs' with
|
| 842 |
+
'stdout'.
|
| 843 |
+
|
| 844 |
+
#include <stdio.h>
|
| 845 |
+
#include <ffi.h>
|
| 846 |
+
|
| 847 |
+
/* Acts like puts with the file given at time of enclosure. */
|
| 848 |
+
void puts_binding(ffi_cif *cif, void *ret, void* args[],
|
| 849 |
+
void *stream)
|
| 850 |
+
{
|
| 851 |
+
*(ffi_arg *)ret = fputs(*(char **)args[0], (FILE *)stream);
|
| 852 |
+
}
|
| 853 |
+
|
| 854 |
+
typedef int (*puts_t)(char *);
|
| 855 |
+
|
| 856 |
+
int main()
|
| 857 |
+
{
|
| 858 |
+
ffi_cif cif;
|
| 859 |
+
ffi_type *args[1];
|
| 860 |
+
ffi_closure *closure;
|
| 861 |
+
|
| 862 |
+
void *bound_puts;
|
| 863 |
+
int rc;
|
| 864 |
+
|
| 865 |
+
/* Allocate closure and bound_puts */
|
| 866 |
+
closure = ffi_closure_alloc(sizeof(ffi_closure), &bound_puts);
|
| 867 |
+
|
| 868 |
+
if (closure)
|
| 869 |
+
{
|
| 870 |
+
/* Initialize the argument info vectors */
|
| 871 |
+
args[0] = &ffi_type_pointer;
|
| 872 |
+
|
| 873 |
+
/* Initialize the cif */
|
| 874 |
+
if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1,
|
| 875 |
+
&ffi_type_sint, args) == FFI_OK)
|
| 876 |
+
{
|
| 877 |
+
/* Initialize the closure, setting stream to stdout */
|
| 878 |
+
if (ffi_prep_closure_loc(closure, &cif, puts_binding,
|
| 879 |
+
stdout, bound_puts) == FFI_OK)
|
| 880 |
+
{
|
| 881 |
+
rc = ((puts_t)bound_puts)("Hello World!");
|
| 882 |
+
/* rc now holds the result of the call to fputs */
|
| 883 |
+
}
|
| 884 |
+
}
|
| 885 |
+
}
|
| 886 |
+
|
| 887 |
+
/* Deallocate both closure, and bound_puts */
|
| 888 |
+
ffi_closure_free(closure);
|
| 889 |
+
|
| 890 |
+
return 0;
|
| 891 |
+
}
|
| 892 |
+
|
| 893 |
+
|
| 894 |
+
|
| 895 |
+
File: libffi.info, Node: Thread Safety, Prev: Closure Example, Up: Using libffi
|
| 896 |
+
|
| 897 |
+
2.7 Thread Safety
|
| 898 |
+
=================
|
| 899 |
+
|
| 900 |
+
'libffi' is not completely thread-safe. However, many parts are, and if
|
| 901 |
+
you follow some simple rules, you can use it safely in a multi-threaded
|
| 902 |
+
program.
|
| 903 |
+
|
| 904 |
+
* 'ffi_prep_cif' may modify the 'ffi_type' objects passed to it. It
|
| 905 |
+
is best to ensure that only a single thread prepares a given
|
| 906 |
+
'ffi_cif' at a time.
|
| 907 |
+
|
| 908 |
+
* On some platforms, 'ffi_prep_cif' may modify the size and alignment
|
| 909 |
+
of some types, depending on the chosen ABI. On these platforms, if
|
| 910 |
+
you switch between ABIs, you must ensure that there is only one
|
| 911 |
+
call to 'ffi_prep_cif' at a time.
|
| 912 |
+
|
| 913 |
+
Currently the only affected platform is PowerPC and the only
|
| 914 |
+
affected type is 'long double'.
|
| 915 |
+
|
| 916 |
+
|
| 917 |
+
File: libffi.info, Node: Memory Usage, Next: Missing Features, Prev: Using libffi, Up: Top
|
| 918 |
+
|
| 919 |
+
3 Memory Usage
|
| 920 |
+
**************
|
| 921 |
+
|
| 922 |
+
Note that memory allocated by 'ffi_closure_alloc' and freed by
|
| 923 |
+
'ffi_closure_free' does not come from the same general pool of memory
|
| 924 |
+
that 'malloc' and 'free' use. To accomodate security settings, 'libffi'
|
| 925 |
+
may aquire memory, for example, by mapping temporary files into multiple
|
| 926 |
+
places in the address space (once to write out the closure, a second to
|
| 927 |
+
execute it). The search follows this list, using the first that works:
|
| 928 |
+
|
| 929 |
+
* A anonymous mapping (i.e. not file-backed)
|
| 930 |
+
|
| 931 |
+
* 'memfd_create()', if the kernel supports it.
|
| 932 |
+
|
| 933 |
+
* A file created in the directory referenced by the environment
|
| 934 |
+
variable 'LIBFFI_TMPDIR'.
|
| 935 |
+
|
| 936 |
+
* Likewise for the environment variable 'TMPDIR'.
|
| 937 |
+
|
| 938 |
+
* A file created in '/tmp'.
|
| 939 |
+
|
| 940 |
+
* A file created in '/var/tmp'.
|
| 941 |
+
|
| 942 |
+
* A file created in '/dev/shm'.
|
| 943 |
+
|
| 944 |
+
* A file created in the user's home directory ('$HOME').
|
| 945 |
+
|
| 946 |
+
* A file created in any directory listed in '/etc/mtab'.
|
| 947 |
+
|
| 948 |
+
* A file created in any directory listed in '/proc/mounts'.
|
| 949 |
+
|
| 950 |
+
If security settings prohibit using any of these for closures,
|
| 951 |
+
'ffi_closure_alloc' will fail.
|
| 952 |
+
|
| 953 |
+
|
| 954 |
+
File: libffi.info, Node: Missing Features, Next: Index, Prev: Memory Usage, Up: Top
|
| 955 |
+
|
| 956 |
+
4 Missing Features
|
| 957 |
+
******************
|
| 958 |
+
|
| 959 |
+
'libffi' is missing a few features. We welcome patches to add support
|
| 960 |
+
for these.
|
| 961 |
+
|
| 962 |
+
* Variadic closures.
|
| 963 |
+
|
| 964 |
+
* There is no support for bit fields in structures.
|
| 965 |
+
|
| 966 |
+
* The "raw" API is undocumented.
|
| 967 |
+
|
| 968 |
+
* The Go API is undocumented.
|
| 969 |
+
|
| 970 |
+
|
| 971 |
+
File: libffi.info, Node: Index, Prev: Missing Features, Up: Top
|
| 972 |
+
|
| 973 |
+
Index
|
| 974 |
+
*****
|
| 975 |
+
|
| 976 |
+
|