Check-in [a6954b6512]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Corrected typo
Timelines: family | ancestors | descendants | both | new-driver
Files: files | file ages | folders
SHA1: a6954b6512ffdaf7a2e6ac7bc23250d7bcc127ab
User & Date: rkeene 2013-03-11 20:27:33
Context
2013-03-11
20:29
Corrected documentation related to CRCs check-in: 65a27ff666 user: rkeene tags: new-driver
20:27
Corrected typo check-in: a6954b6512 user: rkeene tags: new-driver
19:49
Renamed module symbols from DC_* to DACT_MOD_* check-in: 5f198ba93f user: rkeene tags: new-driver
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to cipher_chaos.c.

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "ui.h"
#include "cipher_chaos.h"


#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=0;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_chaos;
char *DACT_MOD_NAME="chaos (MOD)";
#endif


int cipher_chaos(const char *inblock, char *outblock, const int blksize, char *key, const int mode) {
	switch (mode) {







|







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "ui.h"
#include "cipher_chaos.h"


#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=0;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_chaos;
char *DACT_MOD_NAME="chaos (MOD)";
#endif


int cipher_chaos(const char *inblock, char *outblock, const int blksize, char *key, const int mode) {
	switch (mode) {

Changes to cipher_psub.c.

42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "cipher_psub.h"
#include "parse.h"
#include "ui.h"

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=3;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_psub;
char *DACT_MOD_NAME="psubst (MOD)";
#endif


int cipher_psub(const unsigned char *inblock, unsigned char *outblock, const int blksize, unsigned char *key, const int mode) {
	switch (mode) {







|







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "cipher_psub.h"
#include "parse.h"
#include "ui.h"

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=3;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_psub;
char *DACT_MOD_NAME="psubst (MOD)";
#endif


int cipher_psub(const unsigned char *inblock, unsigned char *outblock, const int blksize, unsigned char *key, const int mode) {
	switch (mode) {

Changes to cipher_serpent.c.

33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#endif
#include "parse.h"
#include "ui.h"

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=2;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_serpent;
char *DACT_MOD_NAME="serpent (MOD)";
#endif

MCRYPT mcrypt_tdid;

int cipher_serpent(const char *inblock, char *outblock, const int blksize, char *key, const int mode) {







|







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#endif
#include "parse.h"
#include "ui.h"

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=2;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_serpent;
char *DACT_MOD_NAME="serpent (MOD)";
#endif

MCRYPT mcrypt_tdid;

int cipher_serpent(const char *inblock, char *outblock, const int blksize, char *key, const int mode) {

Changes to cipher_sub.c.

53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#endif
#endif
#endif

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=1;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_sub;
char *DACT_MOD_NAME="subst (MOD)";
#endif


int cipher_sub(const unsigned char *inblock, unsigned char *outblock, const int blksize, unsigned char *key, const int mode) {
	switch (mode) {







|







53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#endif
#endif
#endif

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=1;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_ENC;
void *DACT_MOD_ALGO=cipher_sub;
char *DACT_MOD_NAME="subst (MOD)";
#endif


int cipher_sub(const unsigned char *inblock, unsigned char *outblock, const int blksize, unsigned char *key, const int mode) {
	switch (mode) {

Changes to comp_bitsums.c.

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
	blk_size	- Size of prev_block and curr_block.
*/


#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=11;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_bitsums_algo;
char *DACT_MOD_NAME="Bitsums Compression (MOD)";

#endif

int comp_bitsums_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {







|







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
	blk_size	- Size of prev_block and curr_block.
*/


#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=11;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_bitsums_algo;
char *DACT_MOD_NAME="Bitsums Compression (MOD)";

#endif

int comp_bitsums_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {

Changes to comp_bzlib.c.

45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=9;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_bzlib_algo;
char *DACT_MOD_NAME="Bzip2 Compression (MOD)";
#endif

int comp_bzlib_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, unsigned char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:







|







45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=9;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_bzlib_algo;
char *DACT_MOD_NAME="Bzip2 Compression (MOD)";
#endif

int comp_bzlib_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, unsigned char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:

Changes to comp_delta.c.

39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=2;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_delta_algo;
char *DACT_MOD_NAME="Delta Compression (MOD)";
#endif


int comp_delta_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {







|







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=2;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_delta_algo;
char *DACT_MOD_NAME="Delta Compression (MOD)";
#endif


int comp_delta_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {

Changes to comp_factor.c.

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
	curr_block	- The data to be compressed.
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/
#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=10;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_factor_algo;
char *DACT_MOD_NAME="Factor Compression (MOD)";
#endif
int comp_factor_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:
			return(comp_factor_compress(prev_block, curr_block, out_block, blk_size, bufsize));







|







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
	curr_block	- The data to be compressed.
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/
#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=10;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_factor_algo;
char *DACT_MOD_NAME="Factor Compression (MOD)";
#endif
int comp_factor_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:
			return(comp_factor_compress(prev_block, curr_block, out_block, blk_size, bufsize));

Changes to comp_lzoox.c.

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=13;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_lzoox_algo;
char *DACT_MOD_NAME="LZO-1x Compression (MOD)";
/*
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;







|







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=13;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_lzoox_algo;
char *DACT_MOD_NAME="LZO-1x Compression (MOD)";
/*
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;

Changes to comp_lzooy.c.

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=14;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_lzooy_algo;
char *DACT_MOD_NAME="LZO-1y Compression (MOD)";
/*
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;







|







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=14;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_lzooy_algo;
char *DACT_MOD_NAME="LZO-1y Compression (MOD)";
/*
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;

Changes to comp_lzota.c.

40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=15;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_lzota_algo;
char *DACT_MOD_NAME="LZO-2a Compression (MOD)";
/*
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;







|







40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=15;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_lzota_algo;
char *DACT_MOD_NAME="LZO-2a Compression (MOD)";
/*
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;

Changes to comp_mzlib.c.

45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=5;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_mzlib_algo;
char *DACT_MOD_NAME="Modifed Zlib Compression (MOD)";
#endif

int comp_mzlib_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, unsigned char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:







|







45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=5;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_mzlib_algo;
char *DACT_MOD_NAME="Modifed Zlib Compression (MOD)";
#endif

int comp_mzlib_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, unsigned char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:

Changes to comp_mzlib2.c.

55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
	curr_block	- The data to be compressed.
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=8;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_mzlib2_algo;
char *DACT_MOD_NAME="Second Modified Zlib Compression (MOD)";
#endif

#ifdef DEBUG
#if DEBUG>=2
#define MAKE_MZLIB2 1







|







55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
	curr_block	- The data to be compressed.
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/
#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=8;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_mzlib2_algo;
char *DACT_MOD_NAME="Second Modified Zlib Compression (MOD)";
#endif

#ifdef DEBUG
#if DEBUG>=2
#define MAKE_MZLIB2 1

Changes to comp_rle.c.

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=1;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_rle_algo;
char *DACT_MOD_NAME="RLE Compression (MOD)";
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;
uint32_t DACT_MOD_REQUIRE=DACT_MOD_REQ_ATLEAST|(0x00080d);







|







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=1;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_rle_algo;
char *DACT_MOD_NAME="RLE Compression (MOD)";
char *DACT_MOD_SIGN="RGlnaXRhbFNpZ25hdHVyZQ==";
char *DACT_MOD_URL_GET="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.dll";
char *DACT_MOD_URL_VER="http://www.rkeene.org/projects/compression/dact/@@OSNM@@-@@ARCH@@/comp_rle.ver";
uint32_t DACT_MOD_VER=0x00080d;
uint32_t DACT_MOD_REQUIRE=DACT_MOD_REQ_ATLEAST|(0x00080d);

Changes to comp_snibble.c.

51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=6;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_snibble_algo;
char *DACT_MOD_NAME="Seminibble Encoding (MOD)";
#endif

int comp_snibble_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:







|







51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=6;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_snibble_algo;
char *DACT_MOD_NAME="Seminibble Encoding (MOD)";
#endif

int comp_snibble_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:

Changes to comp_text.c.

41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=3;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_text_algo;
char *DACT_MOD_NAME="Text Compression (MOD)";
#endif

int comp_text_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:







|







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=3;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_text_algo;
char *DACT_MOD_NAME="Text Compression (MOD)";
#endif

int comp_text_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:

Changes to comp_textrle.c.

37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=12;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_textrle_algo;
char *DACT_MOD_NAME="Text RLE Compression (MOD)";
#endif

int comp_textrle_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:







|







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(AS_MODULE) && defined(USE_MODULES)
#include "module.h"
uint32_t DACT_MOD_NUM=12;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_textrle_algo;
char *DACT_MOD_NAME="Text RLE Compression (MOD)";
#endif

int comp_textrle_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:

Changes to comp_zlib.c.

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=4;
uint32_t DACCT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_zlib_algo;
char *DACT_MOD_NAME="Zlib Compression (MOD)";
#endif

int comp_zlib_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, unsigned char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR:







|







52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
	out_block	- Where to put data after compression.
	blk_size	- Size of prev_block and curr_block.
*/

#if defined(USE_MODULES) && defined(AS_MODULE)
#include "module.h"
uint32_t DACT_MOD_NUM=4;
uint32_t DACT_MOD_TYPE=DACT_MOD_TYPE_COMP;
void *DACT_MOD_ALGO=comp_zlib_algo;
char *DACT_MOD_NAME="Zlib Compression (MOD)";
#endif

int comp_zlib_algo(int mode, unsigned char *prev_block, unsigned char *curr_block, unsigned char *out_block, int blk_size, int bufsize) {
	switch(mode) {
		case DACT_MODE_COMPR: