Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: courgette/courgette.h

Issue 115435: Store 'diff' bytes by run-length encoding zeros.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | courgette/third_party/bsdiff.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COURGETTE_COURGETTE_H_ 5 #ifndef COURGETTE_COURGETTE_H_
6 #define COURGETTE_COURGETTE_H_ 6 #define COURGETTE_COURGETTE_H_
7 7
8 namespace courgette { 8 namespace courgette {
9 9
10 // Status codes for Courgette APIs. 10 // Status codes for Courgette APIs.
11 // 11 //
12 // Client code should only rely on the distintion between C_OK and the other 12 // Client code should only rely on the distintion between C_OK and the other
13 // status codes. 13 // status codes.
14 // 14 //
15 enum Status { 15 enum Status {
16 C_OK = 1, // Successful operation. 16 C_OK = 1, // Successful operation.
17 17
18 C_GENERAL_ERROR = 2, // Error other than listed below. 18 C_GENERAL_ERROR = 2, // Error other than listed below.
19 19
20 C_READ_OPEN_ERROR = 3, // Could not open input file for reading. 20 C_READ_OPEN_ERROR = 3, // Could not open input file for reading.
21 C_READ_ERROR = 4, // Could not read from opened input file. 21 C_READ_ERROR = 4, // Could not read from opened input file.
22 22
23 C_WRITE_OPEN_ERROR = 3, // Could not open output file for writing. 23 C_WRITE_OPEN_ERROR = 3, // Could not open output file for writing.
24 C_WRITE_ERROR = 4, // Could not write to opened output file. 24 C_WRITE_ERROR = 4, // Could not write to opened output file.
25 25
26 C_BAD_ENSEMBLE_MAGIC = 5, // Ensemble patch has bad magic. 26 C_BAD_ENSEMBLE_MAGIC = 5, // Ensemble patch has bad magic.
27 C_BAD_ENSEMBLE_VERSION = 6, // Ensemble patch has wrong version. 27 C_BAD_ENSEMBLE_VERSION = 6, // Ensemble patch has wrong version.
28 C_BAD_ENSEMBLE_HEADER = 7, // Ensemble patch has corrupt header. 28 C_BAD_ENSEMBLE_HEADER = 7, // Ensemble patch has corrupt header.
29 C_BAD_ENSEMBLE_CRC = 8, // Ensemble patch has corrupt header. 29 C_BAD_ENSEMBLE_CRC = 8, // Ensemble patch has corrupt data.
30 30
31 C_BAD_TRANSFORM = 12, // Transform mis-specified. 31 C_BAD_TRANSFORM = 12, // Transform mis-specified.
32 C_BAD_BASE = 13, // Base for transform malformed. 32 C_BAD_BASE = 13, // Base for transform malformed.
33 33
34 C_BINARY_DIFF_CRC_ERROR = 14, // Internal diff input doesn't have expected 34 C_BINARY_DIFF_CRC_ERROR = 14, // Internal diff input doesn't have expected
35 // CRC. 35 // CRC.
36 36
37 // Internal errors. 37 // Internal errors.
38 C_STREAM_ERROR = 20, // Unexpected error from streams.h. 38 C_STREAM_ERROR = 20, // Unexpected error from streams.h.
39 C_STREAM_NOT_CONSUMED = 21, // Stream has extra data, is expected to be 39 C_STREAM_NOT_CONSUMED = 21, // Stream has extra data, is expected to be
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Used to free an EncodedProgram returned by other APIs. 110 // Used to free an EncodedProgram returned by other APIs.
111 void DeleteEncodedProgram(EncodedProgram* encoded); 111 void DeleteEncodedProgram(EncodedProgram* encoded);
112 112
113 // Adjusts |program| to look more like |model|. 113 // Adjusts |program| to look more like |model|.
114 // 114 //
115 Status Adjust(const AssemblyProgram& model, AssemblyProgram *program); 115 Status Adjust(const AssemblyProgram& model, AssemblyProgram *program);
116 116
117 } // namespace courgette 117 } // namespace courgette
118 #endif // COURGETTE_COURGETTE_H_ 118 #endif // COURGETTE_COURGETTE_H_
OLDNEW
« no previous file with comments | « no previous file | courgette/third_party/bsdiff.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698