summaryrefslogtreecommitdiff
path: root/fitz/filt_flate.c
AgeCommit message (Collapse)Author
2011-12-17More memsqueezing fixes; stream creation.Robin Watts
2011-12-17Change stream 'close' functions to facilitate error cleanup.Robin Watts
Rather than passing a stream to a close function, just pass context and state - that's all that is required. This enables us to call close to cleanup neatly if the stream fails to allocate.
2011-12-16Add fz_malloc_struct, and make code use it.Robin Watts
The new fz_malloc_struct(A,B) macro allocates sizeof(B) bytes using fz_malloc, and then passes the resultant pointer to Memento_label to label it with "B". This costs nothing in non-memento builds, but gives much nicer listings of leaked blocks when memento is enabled.
2011-12-15More Memsqueezing fixes.Robin Watts
2011-12-08Throw exceptions for read errors.Tor Andersson
2011-09-21Add warning context.Tor Andersson
2011-09-21Rename malloc functions for arrays (fz_calloc and fz_realloc).Tor Andersson
2011-09-15Add context to mupdf.Robin Watts
Huge pervasive change to lots of files, adding a context for exception handling and allocation. In time we'll move more statics into there. Also fix some for(i = 0; i < function(...); i++) calls.
2011-09-14Initial import of exception handling codeRobin Watts
Import exception handling code from WSS, modified to fit into the fitz world. With this code we have 'real' fz_try/fz_catch/fz_rethrow functions, handling a fz_except type. We therefore rename the existing fz_throw/ fz_catch/fz_rethrow to be fz_error_make/fz_error_handle/fz_error_note. We don't actually use fz_try/fz_catch/fz_rethrow yet...
2011-04-04Le Roi est mort, vive le Roi!Tor Andersson
The run-together words are dead! Long live the underscores! The postscript inspired naming convention of using all run-together words has served us well, but it is now time for more readable code. In this commit I have also added the sed script, rename.sed, that I used to convert the source. Use it on your patches and application code.
2011-03-02Comply with the stream read protocol in flate decoder: always fill the ↵Tor Andersson
output buffer with all available data.
2011-02-03Various patches from SumatraPDF.Tor Andersson
2011-01-06Remove unnecessary whitespace.Sebastian Rasmussen
2010-08-02Ignore premature end of data in zlib filter.Tor Andersson
2010-08-02Use 'while (rp < wp)' idiom for filter output buffering state.Tor Andersson
2010-08-02Check the update number of encoded bytes remaining after flate decoding.Sebastian Rasmussen
2010-07-29Use chained reader like interface for filters instead of process interface.Tor Andersson
2010-07-23Remove XPS parser legacy flate decode parameter parsing.Sebastian Rasmussen
2010-07-23Have zlib always flush as much output as possible when decoding.Sebastian Rasmussen
2010-07-17Remove all trailing whitespace.Tor Andersson
2010-06-23Allow flate streams to have data check errors at the end.Tor Andersson
2009-12-03Consolidate include lines to a single fitz.h.Tor Andersson
2009-11-20Malloc cannot return null. Clean up streams and filters.Tor Andersson
2009-11-19Remove unused and largely untested encoding filters.Tor Andersson
2009-07-18Always call inflate() with Z_FINISH when we run out of input data.Tor Andersson
2009-03-11Remove fz_outofmem constant.Tor Andersson
2009-03-11Rename and prune some files and functions.Tor Andersson
2009-03-11Change fz_error* struct into an integer error type fz_error.Tor Andersson
2009-02-28Merge and move header files into the source directories.Tor Andersson
2009-02-28Moved Fitz files into one directory.Tor Andersson