mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
e599bba421
Separate a few reusable components from XZ Utils specific code. The reusable code is now in "tuklib" modules. A few more could be separated still, e.g. bswap.h. Fix some bugs in lzmainfo. Fix physmem and cpucores code on OS/2. Thanks to Elbert Pol for help. Add OpenVMS support into physmem. Add a few #ifdefs to ease building XZ Utils on OpenVMS. Thanks to Jouk Jansen for the original patch.
30 lines
971 B
C
30 lines
971 B
C
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
/// \file main.h
|
|
/// \brief Miscellanous declarations
|
|
//
|
|
// Author: Lasse Collin
|
|
//
|
|
// This file has been put into the public domain.
|
|
// You can do whatever you want with this file.
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
/// Possible exit status values. These are the same as used by gzip and bzip2.
|
|
enum exit_status_type {
|
|
E_SUCCESS = 0,
|
|
E_ERROR = 1,
|
|
E_WARNING = 2,
|
|
};
|
|
|
|
|
|
/// Sets the exit status after a warning or error has occurred. If new_status
|
|
/// is E_WARNING and the old exit status was already E_ERROR, the exit
|
|
/// status is not changed.
|
|
extern void set_exit_status(enum exit_status_type new_status);
|
|
|
|
|
|
/// Use E_SUCCESS instead of E_WARNING if something worth a warning occurs
|
|
/// but nothing worth an error has occurred. This is called when --no-warn
|
|
/// is specified.
|
|
extern void set_exit_no_warn(void);
|