~peter-pearse/ubuntu/natty/xz-utils/prop001

« back to all changes in this revision

Viewing changes to src/xz/main.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Nieder
  • Date: 2009-11-01 00:22:04 UTC
  • mfrom: (1.1.1 upstream) (0.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091101002204-5buej0pj86dyz053
Tags: 4.999.9beta+20091016-1
* New upstream snapshot, taken from upstream commit 78e92c1.
* Drop xzmore.1 patch, applied upstream.
* debian/rules: Disable assembler optimizations on hurd. (Closes: #553331)
* debian/control: Clarify binary package descriptions.  Thanks to
  Justin B Rye and Ben Finney for the text.
* debian/rules get-orig-source: Use commit date (instead of last patch
  date) to name snapshots.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
/// \file       main.h
4
4
/// \brief      Miscellanous declarations
5
5
//
6
 
//  Copyright (C) 2008 Lasse Collin
7
 
//
8
 
//  This program is free software; you can redistribute it and/or
9
 
//  modify it under the terms of the GNU Lesser General Public
10
 
//  License as published by the Free Software Foundation; either
11
 
//  version 2.1 of the License, or (at your option) any later version.
12
 
//
13
 
//  This program is distributed in the hope that it will be useful,
14
 
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 
//  Lesser General Public License for more details.
 
6
//  Author:     Lasse Collin
 
7
//
 
8
//  This file has been put into the public domain.
 
9
//  You can do whatever you want with this file.
17
10
//
18
11
///////////////////////////////////////////////////////////////////////////////
19
12
 
26
19
 
27
20
 
28
21
/// Sets the exit status after a warning or error has occurred. If new_status
29
 
/// is EX_WARNING and the old exit status was already EX_ERROR, the exit
 
22
/// is E_WARNING and the old exit status was already E_ERROR, the exit
30
23
/// status is not changed.
31
24
extern void set_exit_status(enum exit_status_type new_status);
32
25
 
33
26
 
34
 
/// Exits the program using the given status. This takes care of closing
35
 
/// stdin, stdout, and stderr and catches possible errors. If we had got
36
 
/// a signal, this function will raise it so that to the parent process it
37
 
/// appears that we were killed by the signal sent by the user.
38
 
extern void my_exit(enum exit_status_type status) lzma_attribute((noreturn));
 
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
 
29
/// is specified.
 
30
extern void set_exit_no_warn(void);