Index: third_party/android_crazy_linker/src/src/crazy_linker_zip.h |
diff --git a/third_party/android_crazy_linker/src/src/crazy_linker_zip.h b/third_party/android_crazy_linker/src/src/crazy_linker_zip.h |
index 6e289c064892e199b1ef2844c2aa9871c4d089c5..75adcf8aac8df76445b68135a642f9898b299e5e 100644 |
--- a/third_party/android_crazy_linker/src/src/crazy_linker_zip.h |
+++ b/third_party/android_crazy_linker/src/src/crazy_linker_zip.h |
@@ -7,12 +7,16 @@ |
// Definitions related to supporting loading libraries from zip files. |
+// Offset in a file indicating a failure. |
+#define CRAZY_OFFSET_FAILED (-1) |
+ |
namespace crazy { |
// Find "filename" in the specified "zip_file" and return the offset |
-// in the file of the start of the data for the file. Return -1 on error. |
-// This routine replaces code which used the minizip library, but is about |
-// 150 times faster, locating the offset in less than 0.5ms on a Nexus 4. |
+// in the file of the start of the data for the file. Return |
+// CRAZY_OFFSET_FAILED on error. This routine replaces code which used the |
+// minizip library, but is about 150 times faster, locating the offset in less |
+// than 0.5ms on a Nexus 4. |
int FindStartOffsetOfFileInZipFile(const char* zip_file, const char* filename); |
} |