1 ///////////////////////////////////////////////////////////////////////////////
4 /// \brief Miscellanous declarations
6 // Author: Lasse Collin
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
11 ///////////////////////////////////////////////////////////////////////////////
13 /// Possible exit status values. These are the same as used by gzip and bzip2.
14 enum exit_status_type {
21 /// Sets the exit status after a warning or error has occurred. If new_status
22 /// is E_WARNING and the old exit status was already E_ERROR, the exit
23 /// status is not changed.
24 extern void set_exit_status(enum exit_status_type new_status);
27 /// Use E_SUCCESS instead of E_WARNING if something worth a warning occurs
28 /// but nothing worth an error has occurred. This is called when --no-warn
30 extern void set_exit_no_warn(void);