Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
compress42_thread_1.c File Reference
#include <windows.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <ctype.h>
#include <math.h>
#include <wctype.h>
#include <wchar.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <locale.h>
#include <signal.h>
#include <limits.h>
#include <float.h>
#include <iso646.h>
#include <assert.h>
#include <stdbool.h>
#include "stdio_v2.h"
#include "stdio_v3.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "patchlevel.h"
#include "decompress_for_all_z.c"

Data Structures

struct  utimbuf
 
union  bytes
 

Macros

#define HAS_UNCOMPRESS_Z   /*if defined the decompress function is also available */
 
#define THE_COMPRESSOR_FUNCION_NAME_Z   compress_thread_1 /* the name of the compressor function */
 
#define THE_DECOMPRESSOR_FUNCION_NAME_Z   decompress_thread_1
 
#define ARGS(a)
 
#define SIG_TYPE   void (*)()
 
#define lstat   stat
 
#define min(a, b)
 
#define IBUFSIZ   BUFSIZ /* Defailt input buffer size */
 
#define OBUFSIZ   BUFSIZ /* Default output buffer size */
 
#define MAGIC_1   (char_type)'\037' /* First byte of compressed file */
 
#define MAGIC_2   (char_type)'\235' /* Second byte of compressed file */
 
#define BIT_MASK   0x1f /* Mask for 'number of compresssion bits' */
 
#define BLOCK_MODE   0x80 /* Block compresssion if table is full and */
 
#define FIRST   257 /* first free entry */
 
#define CLEAR   256 /* table clear output code */
 
#define INIT_BITS   9 /* initial number of bits/code */
 
#define SACREDMEM   0
 
#define USERMEM   450000 /* default user memory */
 
#define BYTEORDER   0000
 
#define NOALLIGN   0
 
#define O_BINARY   0 /* System has no binary mode */
 
#define BITS   16
 
#define HSIZE   69001 /* 95% occupancy */
 
#define CHECK_GAP   10000
 
#define ARGVAL()
 
#define MAXCODE(n)
 
#define REGISTERS   2
 
#define REG1
 
#define REG2
 
#define REG3
 
#define REG4
 
#define REG5
 
#define REG6
 
#define REG7
 
#define REG8
 
#define REG9
 
#define REG10
 
#define REG11
 
#define REG12
 
#define REG13
 
#define REG14
 
#define REG15
 
#define REG16
 
#define REG1   register
 
#define REG2   register
 
#define output(b, o, c, n)
 
#define input(b, o, c, n, m)
 
#define htabof(i)
 
#define codetabof(i)
 
#define tab_prefixof(i)
 
#define tab_suffixof(i)
 
#define de_stack   ((char_type *)&(amanda->htab[HSIZE - 1]))
 
#define clear_htab()
 
#define clear_tab_prefixof()
 
#define fc   fcode.code
 

Functions

int THE_COMPRESSOR_FUNCION_NAME_Z ARGS ((FILE *, FILE *, my_thread_struct_z *))
 
void Usage (int status)
 
void init_vars_ric (my_thread_struct_z *amanda)
 
int THE_COMPRESSOR_FUNCION_NAME_Z (FILE *fdin, FILE *fdout, my_thread_struct_z *amanda)
 
void read_error ()
 
void write_error ()
 
void abort_compress ()
 
void prratio (FILE *stream, long int num, long int den)
 
void about ()
 

Macro Definition Documentation

◆ ARGS

#define ARGS ( a)
Value:
()

◆ ARGVAL

#define ARGVAL ( )
Value:
(*++(*argv) || (--argc && *++argv))

◆ BIT_MASK

#define BIT_MASK   0x1f /* Mask for 'number of compresssion bits' */

◆ BITS

#define BITS   16

◆ BLOCK_MODE

#define BLOCK_MODE   0x80 /* Block compresssion if table is full and */

◆ BYTEORDER

#define BYTEORDER   0000

◆ CHECK_GAP

#define CHECK_GAP   10000

◆ CLEAR

#define CLEAR   256 /* table clear output code */

◆ clear_htab

#define clear_htab ( )
Value:
memset(amanda->htab, -1, sizeof(amanda->htab))

◆ clear_tab_prefixof

#define clear_tab_prefixof ( )
Value:
memset(amanda->codetab, 0, 256);

◆ codetabof

#define codetabof ( i)
Value:
amanda->codetab[i]
lzma_index ** i
Definition index.h:629

◆ de_stack

#define de_stack   ((char_type *)&(amanda->htab[HSIZE - 1]))

◆ fc

#define fc   fcode.code

◆ FIRST

#define FIRST   257 /* first free entry */

◆ HAS_UNCOMPRESS_Z

#define HAS_UNCOMPRESS_Z   /*if defined the decompress function is also available */

◆ HSIZE

#define HSIZE   69001 /* 95% occupancy */

◆ htabof

#define htabof ( i)
Value:
amanda->htab[i]

◆ IBUFSIZ

#define IBUFSIZ   BUFSIZ /* Defailt input buffer size */

◆ INIT_BITS

#define INIT_BITS   9 /* initial number of bits/code */

◆ input

#define input ( b,
o,
c,
n,
m )
Value:
{ \
REG1 char_type *p = &(b)[(o) >> 3]; \
(c) = ((((long)(p[0])) | ((long)(p[1]) << 8) | \
((long)(p[2]) << 16)) >> \
((o)&0x7)) & \
(m); \
(o) += (n); \
}
#define REG1
Definition compress42_thread_1.c:422
unsigned char char_type
Definition compress42.c:460
#define b(i)
Definition sha256.c:42
#define c(i)
Definition sha256.c:43

◆ lstat

#define lstat   stat

◆ MAGIC_1

#define MAGIC_1   (char_type)'\037' /* First byte of compressed file */

◆ MAGIC_2

#define MAGIC_2   (char_type)'\235' /* Second byte of compressed file */

◆ MAXCODE

#define MAXCODE ( n)
Value:
(1L << (n))

◆ min

#define min ( a,
b )
Value:
((a > b) ? b : a)
#define a(i)
Definition sha256.c:41

◆ NOALLIGN

#define NOALLIGN   0

◆ O_BINARY

#define O_BINARY   0 /* System has no binary mode */

◆ OBUFSIZ

#define OBUFSIZ   BUFSIZ /* Default output buffer size */

◆ output

#define output ( b,
o,
c,
n )
Value:
{ \
REG1 char_type *p = &(b)[(o) >> 3]; \
REG2 long i = ((long)(c)) << ((o)&0x7); \
p[0] |= (char_type)(i); \
p[1] |= (char_type)(i >> 8); \
p[2] |= (char_type)(i >> 16); \
(o) += (n); \
}
#define REG2
Definition compress42_thread_1.c:423

◆ REG1 [1/2]

#define REG1

◆ REG1 [2/2]

#define REG1   register

◆ REG10

#define REG10

◆ REG11

#define REG11

◆ REG12

#define REG12

◆ REG13

#define REG13

◆ REG14

#define REG14

◆ REG15

#define REG15

◆ REG16

#define REG16

◆ REG2 [1/2]

#define REG2

◆ REG2 [2/2]

#define REG2   register

◆ REG3

#define REG3

◆ REG4

#define REG4

◆ REG5

#define REG5

◆ REG6

#define REG6

◆ REG7

#define REG7

◆ REG8

#define REG8

◆ REG9

#define REG9

◆ REGISTERS

#define REGISTERS   2

◆ SACREDMEM

#define SACREDMEM   0

◆ SIG_TYPE

#define SIG_TYPE   void (*)()

◆ tab_prefixof

#define tab_prefixof ( i)
Value:
#define codetabof(i)
Definition compress42_thread_1.c:617

◆ tab_suffixof

#define tab_suffixof ( i)
Value:
((char_type *)(amanda->htab))[i]

◆ THE_COMPRESSOR_FUNCION_NAME_Z

#define THE_COMPRESSOR_FUNCION_NAME_Z   compress_thread_1 /* the name of the compressor function */

◆ THE_DECOMPRESSOR_FUNCION_NAME_Z

#define THE_DECOMPRESSOR_FUNCION_NAME_Z   decompress_thread_1

◆ USERMEM

#define USERMEM   450000 /* default user memory */

Function Documentation

◆ abort_compress()

void abort_compress ( )

◆ about()

void about ( )

◆ ARGS()

◆ init_vars_ric()

void init_vars_ric ( my_thread_struct_z * amanda)

◆ prratio()

void prratio ( FILE * stream,
long int num,
long int den )

◆ read_error()

void read_error ( )

◆ THE_COMPRESSOR_FUNCION_NAME_Z()

int THE_COMPRESSOR_FUNCION_NAME_Z ( FILE * fdin,
FILE * fdout,
my_thread_struct_z * amanda )

◆ Usage()

void Usage ( int status)

◆ write_error()

void write_error ( )