ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

bzip2recover.c File Reference
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  BitStream

Defines

#define MaybeUInt64_FMT   "%u"
#define True   ((Bool)1)
#define False   ((Bool)0)
#define BZ_MAX_FILENAME   2000
#define BZ_HDR_B   0x42 /* 'B' */
#define BZ_HDR_Z   0x5a /* 'Z' */
#define BZ_HDR_h   0x68 /* 'h' */
#define BZ_HDR_0   0x30 /* '0' */
#define BZ_SPLIT_SYM   '/' /* path splitter on Unix platform */
#define BLOCK_HEADER_HI   0x00003141UL
#define BLOCK_HEADER_LO   0x59265359UL
#define BLOCK_ENDMARK_HI   0x00001772UL
#define BLOCK_ENDMARK_LO   0x45385090UL
#define BZ_MAX_HANDLED_BLOCKS   50000

Typedefs

typedef unsigned int MaybeUInt64
typedef unsigned int UInt32
typedef int Int32
typedef unsigned char UChar
typedef char Char
typedef unsigned char Bool

Functions

static void readError (void)
static void writeError (void)
static void mallocFail (Int32 n)
static void tooManyBlocks (Int32 max_handled_blocks)
static BitStreambsOpenReadStream (FILE *stream)
static BitStreambsOpenWriteStream (FILE *stream)
static void bsPutBit (BitStream *bs, Int32 bit)
static Int32 bsGetBit (BitStream *bs)
static void bsClose (BitStream *bs)
static void bsPutUChar (BitStream *bs, UChar c)
static void bsPutUInt32 (BitStream *bs, UInt32 c)
static Bool endsInBz2 (Char *name)
Int32 main (Int32 argc, Char **argv)

Variables

Char inFileName [BZ_MAX_FILENAME]
Char outFileName [BZ_MAX_FILENAME]
Char progName [BZ_MAX_FILENAME]
MaybeUInt64 bytesOut = 0
MaybeUInt64 bytesIn = 0
MaybeUInt64 bStart [BZ_MAX_HANDLED_BLOCKS]
MaybeUInt64 bEnd [BZ_MAX_HANDLED_BLOCKS]
MaybeUInt64 rbStart [BZ_MAX_HANDLED_BLOCKS]
MaybeUInt64 rbEnd [BZ_MAX_HANDLED_BLOCKS]

Generated on Sat May 26 2012 05:58:05 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.