$treeview $search $mathjax $extrastylesheet
librsync
2.0.2
$projectbrief
|
$projectbrief
|
$searchbox |
00001 /*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- 00002 * 00003 * librsync -- library for network deltas 00004 * 00005 * Copyright 2000, 2001, 2014, 2015 by Martin Pool <mbp@sourcefrog.net> 00006 * Copyright (C) 2003 by Donovan Baarda <abo@minkirri.apana.org.au> 00007 * 00008 * This program is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License as published by 00010 * the Free Software Foundation; either version 2.1 of the License, or 00011 * (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 */ 00022 00023 /*= 00024 | I think if you've ordered 00025 | somebody to do something you 00026 | should probably resist the urge 00027 | to thank them. 00028 | -- http://abc.net.au/thegames/ 00029 */ 00030 00031 /** \file prototab.h Delta file commands. */ 00032 00033 typedef struct rs_prototab_ent { 00034 enum rs_op_kind kind; 00035 int immediate; 00036 size_t len_1, len_2; 00037 } rs_prototab_ent_t; 00038 00039 extern const rs_prototab_ent_t rs_prototab[]; 00040 00041 enum { 00042 RS_OP_END = 0, 00043 RS_OP_LITERAL_1 = 0x1, 00044 RS_OP_LITERAL_2 = 0x2, 00045 RS_OP_LITERAL_3 = 0x3, 00046 RS_OP_LITERAL_4 = 0x4, 00047 RS_OP_LITERAL_5 = 0x5, 00048 RS_OP_LITERAL_6 = 0x6, 00049 RS_OP_LITERAL_7 = 0x7, 00050 RS_OP_LITERAL_8 = 0x8, 00051 RS_OP_LITERAL_9 = 0x9, 00052 RS_OP_LITERAL_10 = 0xa, 00053 RS_OP_LITERAL_11 = 0xb, 00054 RS_OP_LITERAL_12 = 0xc, 00055 RS_OP_LITERAL_13 = 0xd, 00056 RS_OP_LITERAL_14 = 0xe, 00057 RS_OP_LITERAL_15 = 0xf, 00058 RS_OP_LITERAL_16 = 0x10, 00059 RS_OP_LITERAL_17 = 0x11, 00060 RS_OP_LITERAL_18 = 0x12, 00061 RS_OP_LITERAL_19 = 0x13, 00062 RS_OP_LITERAL_20 = 0x14, 00063 RS_OP_LITERAL_21 = 0x15, 00064 RS_OP_LITERAL_22 = 0x16, 00065 RS_OP_LITERAL_23 = 0x17, 00066 RS_OP_LITERAL_24 = 0x18, 00067 RS_OP_LITERAL_25 = 0x19, 00068 RS_OP_LITERAL_26 = 0x1a, 00069 RS_OP_LITERAL_27 = 0x1b, 00070 RS_OP_LITERAL_28 = 0x1c, 00071 RS_OP_LITERAL_29 = 0x1d, 00072 RS_OP_LITERAL_30 = 0x1e, 00073 RS_OP_LITERAL_31 = 0x1f, 00074 RS_OP_LITERAL_32 = 0x20, 00075 RS_OP_LITERAL_33 = 0x21, 00076 RS_OP_LITERAL_34 = 0x22, 00077 RS_OP_LITERAL_35 = 0x23, 00078 RS_OP_LITERAL_36 = 0x24, 00079 RS_OP_LITERAL_37 = 0x25, 00080 RS_OP_LITERAL_38 = 0x26, 00081 RS_OP_LITERAL_39 = 0x27, 00082 RS_OP_LITERAL_40 = 0x28, 00083 RS_OP_LITERAL_41 = 0x29, 00084 RS_OP_LITERAL_42 = 0x2a, 00085 RS_OP_LITERAL_43 = 0x2b, 00086 RS_OP_LITERAL_44 = 0x2c, 00087 RS_OP_LITERAL_45 = 0x2d, 00088 RS_OP_LITERAL_46 = 0x2e, 00089 RS_OP_LITERAL_47 = 0x2f, 00090 RS_OP_LITERAL_48 = 0x30, 00091 RS_OP_LITERAL_49 = 0x31, 00092 RS_OP_LITERAL_50 = 0x32, 00093 RS_OP_LITERAL_51 = 0x33, 00094 RS_OP_LITERAL_52 = 0x34, 00095 RS_OP_LITERAL_53 = 0x35, 00096 RS_OP_LITERAL_54 = 0x36, 00097 RS_OP_LITERAL_55 = 0x37, 00098 RS_OP_LITERAL_56 = 0x38, 00099 RS_OP_LITERAL_57 = 0x39, 00100 RS_OP_LITERAL_58 = 0x3a, 00101 RS_OP_LITERAL_59 = 0x3b, 00102 RS_OP_LITERAL_60 = 0x3c, 00103 RS_OP_LITERAL_61 = 0x3d, 00104 RS_OP_LITERAL_62 = 0x3e, 00105 RS_OP_LITERAL_63 = 0x3f, 00106 RS_OP_LITERAL_64 = 0x40, 00107 RS_OP_LITERAL_N1 = 0x41, 00108 RS_OP_LITERAL_N2 = 0x42, 00109 RS_OP_LITERAL_N4 = 0x43, 00110 RS_OP_LITERAL_N8 = 0x44, 00111 RS_OP_COPY_N1_N1 = 0x45, 00112 RS_OP_COPY_N1_N2 = 0x46, 00113 RS_OP_COPY_N1_N4 = 0x47, 00114 RS_OP_COPY_N1_N8 = 0x48, 00115 RS_OP_COPY_N2_N1 = 0x49, 00116 RS_OP_COPY_N2_N2 = 0x4a, 00117 RS_OP_COPY_N2_N4 = 0x4b, 00118 RS_OP_COPY_N2_N8 = 0x4c, 00119 RS_OP_COPY_N4_N1 = 0x4d, 00120 RS_OP_COPY_N4_N2 = 0x4e, 00121 RS_OP_COPY_N4_N4 = 0x4f, 00122 RS_OP_COPY_N4_N8 = 0x50, 00123 RS_OP_COPY_N8_N1 = 0x51, 00124 RS_OP_COPY_N8_N2 = 0x52, 00125 RS_OP_COPY_N8_N4 = 0x53, 00126 RS_OP_COPY_N8_N8 = 0x54, 00127 RS_OP_RESERVED_85 = 0x55, 00128 RS_OP_RESERVED_86 = 0x56, 00129 RS_OP_RESERVED_87 = 0x57, 00130 RS_OP_RESERVED_88 = 0x58, 00131 RS_OP_RESERVED_89 = 0x59, 00132 RS_OP_RESERVED_90 = 0x5a, 00133 RS_OP_RESERVED_91 = 0x5b, 00134 RS_OP_RESERVED_92 = 0x5c, 00135 RS_OP_RESERVED_93 = 0x5d, 00136 RS_OP_RESERVED_94 = 0x5e, 00137 RS_OP_RESERVED_95 = 0x5f, 00138 RS_OP_RESERVED_96 = 0x60, 00139 RS_OP_RESERVED_97 = 0x61, 00140 RS_OP_RESERVED_98 = 0x62, 00141 RS_OP_RESERVED_99 = 0x63, 00142 RS_OP_RESERVED_100 = 0x64, 00143 RS_OP_RESERVED_101 = 0x65, 00144 RS_OP_RESERVED_102 = 0x66, 00145 RS_OP_RESERVED_103 = 0x67, 00146 RS_OP_RESERVED_104 = 0x68, 00147 RS_OP_RESERVED_105 = 0x69, 00148 RS_OP_RESERVED_106 = 0x6a, 00149 RS_OP_RESERVED_107 = 0x6b, 00150 RS_OP_RESERVED_108 = 0x6c, 00151 RS_OP_RESERVED_109 = 0x6d, 00152 RS_OP_RESERVED_110 = 0x6e, 00153 RS_OP_RESERVED_111 = 0x6f, 00154 RS_OP_RESERVED_112 = 0x70, 00155 RS_OP_RESERVED_113 = 0x71, 00156 RS_OP_RESERVED_114 = 0x72, 00157 RS_OP_RESERVED_115 = 0x73, 00158 RS_OP_RESERVED_116 = 0x74, 00159 RS_OP_RESERVED_117 = 0x75, 00160 RS_OP_RESERVED_118 = 0x76, 00161 RS_OP_RESERVED_119 = 0x77, 00162 RS_OP_RESERVED_120 = 0x78, 00163 RS_OP_RESERVED_121 = 0x79, 00164 RS_OP_RESERVED_122 = 0x7a, 00165 RS_OP_RESERVED_123 = 0x7b, 00166 RS_OP_RESERVED_124 = 0x7c, 00167 RS_OP_RESERVED_125 = 0x7d, 00168 RS_OP_RESERVED_126 = 0x7e, 00169 RS_OP_RESERVED_127 = 0x7f, 00170 RS_OP_RESERVED_128 = 0x80, 00171 RS_OP_RESERVED_129 = 0x81, 00172 RS_OP_RESERVED_130 = 0x82, 00173 RS_OP_RESERVED_131 = 0x83, 00174 RS_OP_RESERVED_132 = 0x84, 00175 RS_OP_RESERVED_133 = 0x85, 00176 RS_OP_RESERVED_134 = 0x86, 00177 RS_OP_RESERVED_135 = 0x87, 00178 RS_OP_RESERVED_136 = 0x88, 00179 RS_OP_RESERVED_137 = 0x89, 00180 RS_OP_RESERVED_138 = 0x8a, 00181 RS_OP_RESERVED_139 = 0x8b, 00182 RS_OP_RESERVED_140 = 0x8c, 00183 RS_OP_RESERVED_141 = 0x8d, 00184 RS_OP_RESERVED_142 = 0x8e, 00185 RS_OP_RESERVED_143 = 0x8f, 00186 RS_OP_RESERVED_144 = 0x90, 00187 RS_OP_RESERVED_145 = 0x91, 00188 RS_OP_RESERVED_146 = 0x92, 00189 RS_OP_RESERVED_147 = 0x93, 00190 RS_OP_RESERVED_148 = 0x94, 00191 RS_OP_RESERVED_149 = 0x95, 00192 RS_OP_RESERVED_150 = 0x96, 00193 RS_OP_RESERVED_151 = 0x97, 00194 RS_OP_RESERVED_152 = 0x98, 00195 RS_OP_RESERVED_153 = 0x99, 00196 RS_OP_RESERVED_154 = 0x9a, 00197 RS_OP_RESERVED_155 = 0x9b, 00198 RS_OP_RESERVED_156 = 0x9c, 00199 RS_OP_RESERVED_157 = 0x9d, 00200 RS_OP_RESERVED_158 = 0x9e, 00201 RS_OP_RESERVED_159 = 0x9f, 00202 RS_OP_RESERVED_160 = 0xa0, 00203 RS_OP_RESERVED_161 = 0xa1, 00204 RS_OP_RESERVED_162 = 0xa2, 00205 RS_OP_RESERVED_163 = 0xa3, 00206 RS_OP_RESERVED_164 = 0xa4, 00207 RS_OP_RESERVED_165 = 0xa5, 00208 RS_OP_RESERVED_166 = 0xa6, 00209 RS_OP_RESERVED_167 = 0xa7, 00210 RS_OP_RESERVED_168 = 0xa8, 00211 RS_OP_RESERVED_169 = 0xa9, 00212 RS_OP_RESERVED_170 = 0xaa, 00213 RS_OP_RESERVED_171 = 0xab, 00214 RS_OP_RESERVED_172 = 0xac, 00215 RS_OP_RESERVED_173 = 0xad, 00216 RS_OP_RESERVED_174 = 0xae, 00217 RS_OP_RESERVED_175 = 0xaf, 00218 RS_OP_RESERVED_176 = 0xb0, 00219 RS_OP_RESERVED_177 = 0xb1, 00220 RS_OP_RESERVED_178 = 0xb2, 00221 RS_OP_RESERVED_179 = 0xb3, 00222 RS_OP_RESERVED_180 = 0xb4, 00223 RS_OP_RESERVED_181 = 0xb5, 00224 RS_OP_RESERVED_182 = 0xb6, 00225 RS_OP_RESERVED_183 = 0xb7, 00226 RS_OP_RESERVED_184 = 0xb8, 00227 RS_OP_RESERVED_185 = 0xb9, 00228 RS_OP_RESERVED_186 = 0xba, 00229 RS_OP_RESERVED_187 = 0xbb, 00230 RS_OP_RESERVED_188 = 0xbc, 00231 RS_OP_RESERVED_189 = 0xbd, 00232 RS_OP_RESERVED_190 = 0xbe, 00233 RS_OP_RESERVED_191 = 0xbf, 00234 RS_OP_RESERVED_192 = 0xc0, 00235 RS_OP_RESERVED_193 = 0xc1, 00236 RS_OP_RESERVED_194 = 0xc2, 00237 RS_OP_RESERVED_195 = 0xc3, 00238 RS_OP_RESERVED_196 = 0xc4, 00239 RS_OP_RESERVED_197 = 0xc5, 00240 RS_OP_RESERVED_198 = 0xc6, 00241 RS_OP_RESERVED_199 = 0xc7, 00242 RS_OP_RESERVED_200 = 0xc8, 00243 RS_OP_RESERVED_201 = 0xc9, 00244 RS_OP_RESERVED_202 = 0xca, 00245 RS_OP_RESERVED_203 = 0xcb, 00246 RS_OP_RESERVED_204 = 0xcc, 00247 RS_OP_RESERVED_205 = 0xcd, 00248 RS_OP_RESERVED_206 = 0xce, 00249 RS_OP_RESERVED_207 = 0xcf, 00250 RS_OP_RESERVED_208 = 0xd0, 00251 RS_OP_RESERVED_209 = 0xd1, 00252 RS_OP_RESERVED_210 = 0xd2, 00253 RS_OP_RESERVED_211 = 0xd3, 00254 RS_OP_RESERVED_212 = 0xd4, 00255 RS_OP_RESERVED_213 = 0xd5, 00256 RS_OP_RESERVED_214 = 0xd6, 00257 RS_OP_RESERVED_215 = 0xd7, 00258 RS_OP_RESERVED_216 = 0xd8, 00259 RS_OP_RESERVED_217 = 0xd9, 00260 RS_OP_RESERVED_218 = 0xda, 00261 RS_OP_RESERVED_219 = 0xdb, 00262 RS_OP_RESERVED_220 = 0xdc, 00263 RS_OP_RESERVED_221 = 0xdd, 00264 RS_OP_RESERVED_222 = 0xde, 00265 RS_OP_RESERVED_223 = 0xdf, 00266 RS_OP_RESERVED_224 = 0xe0, 00267 RS_OP_RESERVED_225 = 0xe1, 00268 RS_OP_RESERVED_226 = 0xe2, 00269 RS_OP_RESERVED_227 = 0xe3, 00270 RS_OP_RESERVED_228 = 0xe4, 00271 RS_OP_RESERVED_229 = 0xe5, 00272 RS_OP_RESERVED_230 = 0xe6, 00273 RS_OP_RESERVED_231 = 0xe7, 00274 RS_OP_RESERVED_232 = 0xe8, 00275 RS_OP_RESERVED_233 = 0xe9, 00276 RS_OP_RESERVED_234 = 0xea, 00277 RS_OP_RESERVED_235 = 0xeb, 00278 RS_OP_RESERVED_236 = 0xec, 00279 RS_OP_RESERVED_237 = 0xed, 00280 RS_OP_RESERVED_238 = 0xee, 00281 RS_OP_RESERVED_239 = 0xef, 00282 RS_OP_RESERVED_240 = 0xf0, 00283 RS_OP_RESERVED_241 = 0xf1, 00284 RS_OP_RESERVED_242 = 0xf2, 00285 RS_OP_RESERVED_243 = 0xf3, 00286 RS_OP_RESERVED_244 = 0xf4, 00287 RS_OP_RESERVED_245 = 0xf5, 00288 RS_OP_RESERVED_246 = 0xf6, 00289 RS_OP_RESERVED_247 = 0xf7, 00290 RS_OP_RESERVED_248 = 0xf8, 00291 RS_OP_RESERVED_249 = 0xf9, 00292 RS_OP_RESERVED_250 = 0xfa, 00293 RS_OP_RESERVED_251 = 0xfb, 00294 RS_OP_RESERVED_252 = 0xfc, 00295 RS_OP_RESERVED_253 = 0xfd, 00296 RS_OP_RESERVED_254 = 0xfe, 00297 RS_OP_RESERVED_255 = 0xff 00298 };