| OLD | NEW |
| (Empty) |
| 1 /////////////////////////////////////////////////////////////////////////////// | |
| 2 // | |
| 3 /// \file test_block.c | |
| 4 /// \brief Tests Block coders | |
| 5 // | |
| 6 // Author: Lasse Collin | |
| 7 // | |
| 8 // This file has been put into the public domain. | |
| 9 // You can do whatever you want with this file. | |
| 10 // | |
| 11 /////////////////////////////////////////////////////////////////////////////// | |
| 12 | |
| 13 #include "tests.h" | |
| 14 | |
| 15 | |
| 16 static uint8_t text[] = "Hello world!"; | |
| 17 static uint8_t buffer[4096]; | |
| 18 static lzma_options_block block_options; | |
| 19 static lzma_stream strm = LZMA_STREAM_INIT; | |
| 20 | |
| 21 | |
| 22 static void | |
| 23 test1(void) | |
| 24 { | |
| 25 | |
| 26 } | |
| 27 | |
| 28 | |
| 29 int | |
| 30 main() | |
| 31 { | |
| 32 lzma_init(); | |
| 33 | |
| 34 block_options = (lzma_options_block){ | |
| 35 .check_type = LZMA_CHECK_NONE, | |
| 36 .has_eopm = true, | |
| 37 .has_uncompressed_size_in_footer = false, | |
| 38 .has_backward_size = false, | |
| 39 .handle_padding = false, | |
| 40 .total_size = LZMA_VLI_UNKNOWN, | |
| 41 .compressed_size = LZMA_VLI_UNKNOWN, | |
| 42 .uncompressed_size = LZMA_VLI_UNKNOWN, | |
| 43 .header_size = 5, | |
| 44 }; | |
| 45 block_options.filters[0].id = LZMA_VLI_UNKNOWN; | |
| 46 block_options.filters[0].options = NULL; | |
| 47 | |
| 48 | |
| 49 lzma_end(&strm); | |
| 50 | |
| 51 return 0; | |
| 52 } | |
| OLD | NEW |