Blame locale/programs/record-status.h

Packit Service 82fcde
/* General definitions for recording error and warning status.
Packit Service 82fcde
   Copyright (C) 1998-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   This program is free software; you can redistribute it and/or modify
Packit Service 82fcde
   it under the terms of the GNU General Public License as published
Packit Service 82fcde
   by the Free Software Foundation; version 2 of the License, or
Packit Service 82fcde
   (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   This program is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 82fcde
   GNU General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU General Public License
Packit Service 82fcde
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#ifndef _RECORD_STATUS_H
Packit Service 82fcde
#define _RECORD_STATUS_H 1
Packit Service 82fcde
Packit Service 82fcde
#include <stdio.h>
Packit Service 82fcde
#include <stdbool.h>
Packit Service 82fcde
Packit Service 82fcde
/* Error, warning and verbose count and control.  */
Packit Service 82fcde
extern int recorded_warning_count;
Packit Service 82fcde
extern int recorded_error_count;
Packit Service 82fcde
extern int be_quiet;
Packit Service 82fcde
extern int verbose;
Packit Service 82fcde
extern bool warn_ascii;
Packit Service 82fcde
extern bool warn_int_curr_symbol;
Packit Service 82fcde
Packit Service 82fcde
/* Record verbose, warnings, or errors... */
Packit Service 82fcde
void record_verbose (FILE *stream, const char *format, ...);
Packit Service 82fcde
void record_warning (const char *format, ...);
Packit Service 82fcde
void record_error (int status, int errnum, const char *format, ...);
Packit Service 82fcde
void record_error_at_line (int status, int errnum,
Packit Service 82fcde
			   const char *filename, unsigned int linenum,
Packit Service 82fcde
			   const char *format, ...);
Packit Service 82fcde
Packit Service 82fcde
/* Locale related functionality for custom error functions.  */
Packit Service 82fcde
struct locale_state
Packit Service 82fcde
{
Packit Service 82fcde
   /* The current in-use locale.  */
Packit Service 82fcde
   char *cur_locale;
Packit Service 82fcde
};
Packit Service 82fcde
Packit Service 82fcde
struct locale_state push_locale (void);
Packit Service 82fcde
void pop_locale (struct locale_state ls);
Packit Service 82fcde
Packit Service 82fcde
Packit Service 82fcde
#endif