📄 defines.h
字号:
#define BS_NONE 0 /* No respect to backup files */#define BS_SELECT 1 /* Select backup files */#define BS_ONLY 2 /* Select ONLY backup files *//* Timestamp override modes */#define ATO_NONE 0 /* Default */#define ATO_NEWEST 1 /* Set to newest (-s) */#define ATO_SAVE_ORIGINAL 2 /* Save original timestamp (-s1) */#define ATO_SAVE_ARCHIVE 3 /* Save archive timestamp (-s2) */#define ATO_SAVE_BOTH 4 /* Save both timestamps (-s3) *//* Hollow mode settings */#define HM_NONE 0 /* Standard mode */#define HM_CRC 1 /* Store only the CRC */#define HM_NO_CRC 2 /* Store only date/size/attributes */#define HM_RESTORE_ATTRS 3 /* Restore attributes */#define HM_RESTORE_DATES 4 /* Restore dates */#define HM_RESTORE_ALL 5 /* Restore both attributes and dates *//* CRC testing (-jt) options */#define TC_NONE 0 /* No testing, default */#define TC_ARCHIVE 1 /* Test entire archive (-jt) */#define TC_CRC_AND_CONTENTS 2 /* Test CRC and contents (-jt1) */#define TC_ADDED_FILES 3 /* Test only added files (-jt2) */#define TC_ATTRIBUTES 4 /* Test only fdate/fsize (-jt3) *//* -2d (compatible Host OS) settings */#define CHO_NATIVE 0 /* Use native OS */#define CHO_USE_DOS 1 /* Always set host OS to DOS */#define CHO_COMMENT 2 /* Fix comments only *//* Recovery options */#define RB_NONE 0 /* Default, exit on broken files */#define RB_NORMAL 1 /* Normal mode, skip CRC errors (-jr) */#define RB_TIGHT 2 /* Tight mode, skip header errors (-jr1) *//* Path exclusion options */#define EP_NONE 0 /* Default, store the full path */#define EP_PATH 1 /* Exclude path */#define EP_BASEDIR 2 /* Exclude base directory *//* Century handling options */#define CENT_DEFAULT 0 /* Default century handling */#define CENT_SKIP 1 /* Skip century in dates (-2k) */#define CENT_SMART 2 /* Smart handling (-2k1) *//* Owner storage options */#define OWNSTG_NONE 0 /* No owner storage */#define OWNSTG_CHAR 1 /* Store in character format */#define OWNSTG_ID 2 /* Store in UID/GID format */#define OWNSTG_CHAR_GID 3 /* Character format + GID *//* OS codes */#define OS_DOS 0 /* MS-DOS */#define OS_PRIMOS 1 /* PRIMOS */#define OS_UNIX 2 /* UNIX-like operating systems */#define OS_AMIGA 3 /* AMIGA */#define OS_MACOS 4 /* Macintosh */#define OS_OS2 5 /* OS/2, WSoD, Warp Server, eCS */#define OS_APPLE 6 /* Apple GS */#define OS_ATARI 7 /* ATARI ST */#define OS_NEXT 8 /* NeXT */#define OS_VAX 9 /* VAX/VMS */#define OS_WIN95 10 /* Windows 95/98 */#define OS_WINNT 11 /* Windows NT/2000 */#define OS_WIN32 OS_WINNT /* Since ARJ v 2.62c */#define OS_SPECIAL 0xFFFF /* Reserved for special handling *//* Implementation-independent path separators */#define PATHSEP_UNIX '/'#define PATHSEP_DOS '\\'/* List character */#define LISTCHAR_DEFAULT '!'/* Time filtering capabilities */#define TCHECK_NOTHING 0 /* Time is not checked */#define TCHECK_FTIME 1 /* Last write time */#define TCHECK_NDAYS 2 /* No older than N days */#define TCHECK_CTIME 3 /* Creation time */#define TCHECK_ATIME 4 /* Last access time */#define NULL_TIME 0L /* Non-existent timestamp *//* Attributes for tagging */#define TAG_FILES 0x0000 /* All files (-hbf -> -hbndhrs) */#define TAG_ARCH 0x0001 /* Files with FA_ARCH set (-hba) */#define TAG_NOT_ARCH 0x0002 /* Files with FA_ARCH clear (-hbb) */#define TAG_RDONLY 0x0004 /* Read-only files (-hbr) */#define TAG_SYSTEM 0x0008 /* System files (-hbs) */#define TAG_HIDDEN 0x0010 /* Hidden files (-hbf) */#define TAG_DIREC 0x0020 /* Directories (-hbd) */#define TAG_LABEL 0x0040 /* Volume labels (-hbl) */#define TAG_CHAPTER 0x0080 /* Internal chapter labels (-hbc) */#define TAG_NORMAL 0x0100 /* Normal files (-hbn) */#define TAG_WINLFN 0x0200 /* Windows 95 long filenames (-hbw) */#define TAG_UXSPECIAL 0x0400 /* UNIX special files (-hbu) */#define TAG_LIST "FABRSHDLCNWU" /* Used in command prompt *//* Archive attribute filtering */#define FAA_NONE 0 /* Ignore archive bit (default) */#define FAA_BACKUP 1 /* Backup changed files */#define FAA_BACKUP_CLEAR 2 /* Backup changed, reset archive bits */#define FAA_CLEAR 3 /* only reset archive bits */#define FAA_RESTORE_CLEAR 4 /* reset archive bit during restore */#define FAA_EXCL_CLEAR 5 /* do not restore bits, reset arc */#define FAA_SKIP_ATTRS 6 /* do not restore any file attributes *//* LFN support state */#define LFN_NOT_SUPPORTED 0 /* Running in pure DOS */#define LFN_SUPPORTED 1 /* Default for '95s */#define LFN_COMP 2 /* Compatibility mode *//* validate_path actions */#define VALIDATE_ALL 0 /* Remove all relative specs */#define VALIDATE_NOTHING 1 /* Do nothing */#define VALIDATE_DRIVESPEC 2 /* Remove leading drive specs *//* File flags in filelist table. Two different mappings existed in ARJSFXV and ARJ as of v 2.72 (eliminated 17/01/2001 -- ASR) */#define FLFLAG_TO_PROCESS 0 /* To be processed */#define FLFLAG_PROCESSED 1 /* Already processed */#define FLFLAG_SKIPPED 2 /* Forced to skip */#define FLFLAG_DELETED 3 /* Already deleted *//* Special processing actions */#define CFA_NONE 0 /* No special processing */#define CFA_REMPATH 1 /* Remove paths from filenames */#define CFA_GARBLE 2 /* Garble files */#define CFA_MARK_INCREMENT 3 /* Marking for chapter archives... */#define CFA_UNMARK 4#define CFA_MARK 5#define CFA_MARK_EXT 6#define CFA_UNMARK_EXT 7#define CFA_UNGARBLE 8 /* Decrypt files *//* File list generation options */#define FETCH_DEFAULT 0 /* Standard files */#define FETCH_FILES 1 /* Hidden files, etc. */#define FETCH_DIRS 2 /* Same + directories *//* Extension serialization types */#define EXT_NO_SERIALIZE 0 /* Do not serialize extensions */#define EXT_SUBSTITUTE 1 /* Substitute extension */#define EXT_INSERT 2 /* Insert number before extension *//* Operations on final pass */#define FP_GARBLE 0x02 /* Encryption stamping */#define FP_SECURITY 0x15 /* Security envelope creation */#define FP_VOLUME 0x16 /* Multivolume processing */#define FP_CHAPTER 0x17 /* Chapter operations */#define FP_PROT 0x18 /* ARJ-PROTECT recovery record *//* Encryption id states */#define ENCID_NONE 0 /* Default */#define ENCID_GARBLE 1 /* Garble operation */#define ENCID_UNGARBLE 2 /* Ungarble operation *//* Message section validation flag */#define CHKMSG_NOSKIP 0 /* Process CRC32 accumulation */#define CHKMSG_SFX_HELP 1 /* Display ARJSFX help */#define CHKMSG_SKIP -1 /* Skip CRC32 accumulation *//* Hardlink suppression */#define SHL_NONE 0 /* Normal processing */#define SHL_DROP 1 /* Ignore (do not add/extract) */#define SHL_SOFT 2 /* Ignore on addition, replace w/symlinks upon extraction *//* Directory recursion order */#define RO_LAST 0 /* Contents, then direntry */#define RO_FIRST 1 /* Direntry, then contents *//* Multivolume processing definitions */#define MULTIVOLUME_RESERVE 604 /* Number of bytes to subtract */#define MULTIVOLUME_INCREMENT 500 /* Criteria of switching to next vol. */#define MIN_VOLUME_SIZE 10000L /* Minimal allowed volume size */#define MAX_VOLUME_TRIES 9 /* Number of times to check if we can switch to the next volume */#define MAX_VOLUME_FT_CHECKS 3 /* Number of times to check the file timestamp *//* SFX definitions */#define SFX_COMMAND_SIZE 80 /* Length of SFX options in comment (must be less than CHAR_MAX) *//* Color highlighting */#ifdef COLOR_OUTPUTstruct color_hl{ char color; char arg;};#endif#define H_STD 0 /* Standard text */#define H_OPER 1 /* Operation/progress counters */#define H_HL 2 /* Highlight */#define H_SIG 3 /* Signal */#define H_ALERT 4 /* Alert */#define H_PROMPT 5 /* Prompt */#define H_COLORMASK 0x0F /* Color index *//* Flags */#define H_WEAK 0x10 /* After answering "NO" to the pause request, the user will be brought back to main processing loop */#define H_NFMT 0x20 /* Revert to H_STD for formatting areas (e.g. "%d files") */#define H_FORCE 0x40 /* Does not go off with "-*", needs "-*1" to be silenced */#define H_ERR (H_ALERT|H_FORCE) /* Make error msgs visible *//* Line feed is used many times so we prefer to declare is as public in ENVIRON.C and use far references to it: */extern char simple_lf[];#define lf simple_lfextern char simple_cr[];#define cr simple_cr/* An extended file information structure */struct disk_file_info{ struct file_properties file_properties; char name[1]; /* Allocated dynamically */};/* Memory packing */struct mempack{ char FAR *comp; char FAR *orig; unsigned int compsize; unsigned int origsize; int method;};#define MEMPACK_OVERHEAD 4 /* CRC32 (for now) */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -