Lhaz
マクロ定義 | 関数 | 変数
lzh.cpp ファイル

LZH member in archive. [詳解]

#include "altstr.hpp"
#include <windows.h>
#include <io.h>
#include <sys/utime.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "chuf.h"
#include "mybuf.h"
#include "mystr.h"
#include "mymisc.h"
#include "myfile.h"
#include "mytime.h"
#include "mydebug.h"
#include "lzh.h"
#include "slide.h"
#include "resource.h"
#include "fileptr.h"
#include "lhazerr.h"
#include "lhazif.h"
#include "lhazregs.h"

マクロ定義

#define UNIX_FILE_TYPEMASK   0170000
 
#define UNIX_FILE_DIRECTORY   0040000
 
#define UNIX_FILE_SYMLINK   0120000
 
#define setup_get(PTR)   (get_ptr = (PTR))
 
#define get_byte()   (*get_ptr++ & 0xFF)
 
#define put_ptr   get_ptr
 
#define setup_put(PTR)   (put_ptr = (PTR))
 
#define put_byte(c)   (*put_ptr++ = (char)(c))
 
#define is_regularfile(statp)   (((statp)->st_mode & S_IFMT) == S_IFREG)
 

関数

ushort calc_header_crc (uchar *p, uint n)
 
unsigned int calc_sum (unsigned char *, int)
 
void convdelim (uchar *, uchar)
 
LONGLONG copyfile (MYFILE &f1, MYFILE &f2, LONGLONG size, int crc_flg, bool prg_flg, int stop_flg, bool test_flg)
 

変数

ushort lzh_crc
 

詳解

LZH member in archive.

著者
chito.nosp@m.ra48.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

マクロ定義詳解

#define get_byte ( )    (*get_ptr++ & 0xFF)
#define is_regularfile (   statp)    (((statp)->st_mode & S_IFMT) == S_IFREG)
#define put_byte (   c)    (*put_ptr++ = (char)(c))
#define put_ptr   get_ptr
#define setup_get (   PTR)    (get_ptr = (PTR))
#define setup_put (   PTR)    (put_ptr = (PTR))
#define UNIX_FILE_DIRECTORY   0040000
#define UNIX_FILE_SYMLINK   0120000
#define UNIX_FILE_TYPEMASK   0170000

関数詳解

ushort calc_header_crc ( uchar p,
uint  n 
)
unsigned int calc_sum ( unsigned char *  ,
int   
)
void convdelim ( uchar ,
uchar   
)
LONGLONG copyfile ( MYFILE &  f1,
MYFILE &  f2,
LONGLONG  size,
int  crc_flg,
bool  prg_flg,
int  stop_flg,
bool  test_flg 
)

変数詳解

ushort lzh_crc