|
Packit Bot |
06c835 |
/* Use of program name in error-reporting functions.
|
|
Packit Bot |
06c835 |
Copyright (C) 2001-2003, 2015 Free Software Foundation, Inc.
|
|
Packit Bot |
06c835 |
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
This program is free software: you can redistribute it and/or modify
|
|
Packit Bot |
06c835 |
it under the terms of the GNU General Public License as published by
|
|
Packit Bot |
06c835 |
the Free Software Foundation; either version 3 of the License, or
|
|
Packit Bot |
06c835 |
(at your option) any later version.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
This program is distributed in the hope that it will be useful,
|
|
Packit Bot |
06c835 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Bot |
06c835 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Bot |
06c835 |
GNU General Public License for more details.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
You should have received a copy of the GNU General Public License
|
|
Packit Bot |
06c835 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#ifndef _ERROR_PROGNAME_H
|
|
Packit Bot |
06c835 |
#define _ERROR_PROGNAME_H
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#include <stdbool.h>
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
/* This file supports selectively prefixing or nor prefixing error messages
|
|
Packit Bot |
06c835 |
with the program name.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
Programs using this file should do the following in main():
|
|
Packit Bot |
06c835 |
error_print_progname = maybe_print_progname;
|
|
Packit Bot |
06c835 |
*/
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#ifdef __cplusplus
|
|
Packit Bot |
06c835 |
extern "C" {
|
|
Packit Bot |
06c835 |
#endif
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
/* Indicates whether errors and warnings get prefixed with program_name.
|
|
Packit Bot |
06c835 |
Default is true.
|
|
Packit Bot |
06c835 |
A reason to omit the prefix is for better interoperability with Emacs'
|
|
Packit Bot |
06c835 |
compile.el. */
|
|
Packit Bot |
06c835 |
extern DLL_VARIABLE bool error_with_progname;
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
/* Print program_name prefix on stderr if and only if error_with_progname
|
|
Packit Bot |
06c835 |
is true. */
|
|
Packit Bot |
06c835 |
extern void maybe_print_progname (void);
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#ifdef __cplusplus
|
|
Packit Bot |
06c835 |
}
|
|
Packit Bot |
06c835 |
#endif
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
#endif /* _ERROR_PROGNAME_H */
|