Commit c81131b5 authored by Robert Sprowson's avatar Robert Sprowson

Add some more exports to the header

Define the stream structure and the return values from SWIs for use from objasm.

Version 0.03. Tagged as 'ZLib-0_03'
parent ac2b7142
/* (0.02)
/* (0.03)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.02
#define Module_MajorVersion_CMHG 0.03
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 30 Mar 2012
#define Module_Date_CMHG 08 Jan 2014
#define Module_MajorVersion "0.02"
#define Module_Version 2
#define Module_MajorVersion "0.03"
#define Module_Version 3
#define Module_MinorVersion ""
#define Module_Date "30 Mar 2012"
#define Module_Date "08 Jan 2014"
#define Module_ApplicationDate "30-Mar-12"
#define Module_ApplicationDate "08-Jan-14"
#define Module_ComponentName "ZLib"
#define Module_ComponentPath "bsd/RiscOS/Sources/Programmer/ZLib"
#define Module_FullVersion "0.02"
#define Module_HelpVersion "0.02 (30 Mar 2012)"
#define Module_LibraryVersionInfo "0:2"
#define Module_FullVersion "0.03"
#define Module_HelpVersion "0.03 (08 Jan 2014)"
#define Module_LibraryVersionInfo "0:3"
......@@ -316,7 +316,7 @@ _kernel_oserror *module_swis(int swi_offset, _kernel_swi_regs *r, void *pw)
stream->avail_in = (uInt) r->r[3];
stream->next_out = (Bytef *) r->r[4];
stream->avail_out = (uInt) r->r[5];
ret = inflate(stream,(flags & DECOMPRESS_FLAG_MOREREMAINING)?0:Z_FINISH);
ret = inflate(stream,(flags & DECOMPRESS_FLAG_MOREREMAINING)?Z_NO_FLUSH:Z_FINISH);
r->r[2] = (int) stream->next_in;
r->r[3] = (int) stream->avail_in;
r->r[4] = (int) stream->next_out;
......
......@@ -66,6 +66,68 @@ SWIClass SETS ZLibSWI_Name
AddSWI GZEOF
AddSWI TaskAssociate
; The stream structure
^ 0
ZLib_Stream_Next_In # 4
ZLib_Stream_Avail_In # 4
ZLib_Stream_Total_In # 4
ZLib_Stream_Next_Out # 4
ZLib_Stream_Avail_Out # 4
ZLib_Stream_Total_Out # 4
ZLib_Stream_Msg # 4
ZLib_Stream_State # 4
ZLib_Stream_ZAlloc # 4
ZLib_Stream_ZFree # 4
ZLib_Stream_Opaque # 4
ZLib_Stream_Data_Type # 4
ZLib_Data_Type_Binary * 0
ZLib_Data_Type_Text * 1
ZLib_Data_Type_Unknown * 2
ZLib_Stream_Adler # 4
ZLib_Stream_Reserved # 4
ZLib_Stream_Size # 0
; Flush types for deflate and inflate
^ 0
ZLIB_TYPE_NO_FLUSH # 1
ZLIB_TYPE_PARTIAL_FLUSH # 1
ZLIB_TYPE_SYNC_FLUSH # 1
ZLIB_TYPE_FULL_FLUSH # 1
ZLIB_TYPE_FINISH # 1
ZLIB_TYPE_BLOCK # 1
ZLIB_TYPE_TREES # 1
; Return code from compression/decompression functions
^ 2
ZLIB_RETURN_NEED_DICT # -1
ZLIB_RETURN_STREAM_END # -1
ZLIB_RETURN_OK # -1
ZLIB_RETURN_ERRNO # -1
ZLIB_RETURN_STREAM_ERROR # -1
ZLIB_RETURN_DATA_ERROR # -1
ZLIB_RETURN_MEM_ERROR # -1
ZLIB_RETURN_BUF_ERROR # -1
ZLIB_RETURN_VERSION_ERROR # -1
; Compression levels
ZLIB_LEVEL_NO_COMPRESSION * 0
ZLIB_LEVEL_BEST_SPEED * 1
ZLIB_LEVEL_BEST_COMPRESSION * 9
ZLIB_LEVEL_DEFAULT_COMPRESSION * -1
; Compression strategy
^ 0
ZLIB_STRATEGY_DEFAULT # 1
ZLIB_STRATEGY_FILTERED # 1
ZLIB_STRATEGY_HUFFMAN_ONLY # 1
ZLIB_STRATEGY_RLE # 1
ZLIB_STRATEGY_FIXED # 1
; Compression methods
ZLIB_METHOD_DEFLATED * 8
; Error numbers
^ ErrorBase_ZLib
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment