Logo Search packages:      
Sourcecode: cbmconvert version File versions  Download package

unarc.c File Reference


Detailed Description

ARC/SDA (C64/C128) archive extractor
Author:
Chris Smeets

Marko Mäkelä (marko.makela@nic.funet.fi)

Definition in file unarc.c.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <setjmp.h>
#include "input.h"

Go to the source code of this file.

Classes

struct  entry
struct  lz

Enumerations

enum  LZStackErrorType { PushError = 1, PopError }

Functions

static bool GetBit (void)
static byte_t GetByte (void)
static int getcode (void)
static bool GetHeader (void)
static long GetStartPos (void)
static tbyte_t GetThree (void)
static word_t GetWord (void)
static byte_t Huffin (void)
static byte_t pop (void)
static void push (byte_t c)
enum RdStatus ReadARC (FILE *file, const char *filename, write_file_t writeCallback, log_t log)
static void ssort (void)
static byte_t unc (void)
static byte_t UnPack (void)
static void UpdateChecksum (int c)

Variables

static unsigned int BitBuf
static int cdlen
static int code
static unsigned int crc
static unsigned char crc2
static unsigned int ctrl
struct entry entry
static long FilePos
static FILE * fp
static unsigned long hc [256]
static unsigned int hcount
static unsigned char hl [256]
static unsigned char hv [256]
static int lzstack = 0
static jmp_buf LZStackError
struct lz lztab [4096]
static byte_t stack [512]
static int State = 0
static int Status
static int wtcl
static int wttcl


Generated by  Doxygen 1.6.0   Back to index