Revert "Merge pull request #1177 from Kelimion/new_clone"

This reverts commit efa513262e, reversing
changes made to daccfca11d.
This commit is contained in:
Jeroen van Rijn
2021-09-19 22:16:02 +02:00
parent efa513262e
commit bf15e63130
5 changed files with 8 additions and 451 deletions
+2 -23
View File
@@ -56,11 +56,9 @@ Error :: union {
as it may involve an I/O error, a Deflate error, etc.
*/
image.Error,
io.Error,
}
General_Error :: enum {
None = 0,
File_Not_Found,
Cannot_Open_File,
File_Too_Short,
@@ -71,6 +69,7 @@ General_Error :: enum {
Incompatible_Options,
Unimplemented,
/*
Memory errors
*/
@@ -99,28 +98,7 @@ GZIP_Error :: enum {
You can tweak this setting using `-define:COMPRESS_OUTPUT_ALLOCATE_MAX=size_in_bytes`
*/
Output_Exceeds_COMPRESS_OUTPUT_ALLOCATE_MAX,
}
LZ4_Error :: enum {
Generic,
Max_Block_Size_Invalid,
Block_Mode_Invalid,
Content_Checksum_Invalid,
Compression_Level_Invalid,
Header_Version_Wrong,
Block_Checksum_Invalid,
Reserved_Flag_Set,
Allocation_Failed,
Source_Size_Too_Large,
Output_Buffer_Too_Small,
Frame_Header_Incomplete,
Frame_Type_Unknown,
Frame_Type_Wrong,
Frame_Size_Wrong,
Source_Input_Wrong,
Decompression_Failed,
Header_Checksum_Invalid,
Frame_Decoding_Already_Started,
}
ZIP_Error :: enum {
@@ -147,6 +125,7 @@ Deflate_Error :: enum {
BType_3,
}
// General I/O context for ZLIB, LZW, etc.
Context_Memory_Input :: struct #packed {
input_data: []u8,