Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* -*- buffer-read-only: t -*- vi: set ro: */ 00002 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00003 /* Declaration for error-reporting function 00004 Copyright (C) 1995-1997, 2003, 2006, 2008-2011 Free Software Foundation, 00005 Inc. 00006 This file is part of the GNU C Library. 00007 00008 This program is free software: you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 3 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00020 00021 #ifndef _ERROR_H 00022 #define _ERROR_H 1 00023 00024 #ifndef __attribute__ 00025 /* The __attribute__ feature is available in gcc versions 2.5 and later. 00026 The __-protected variants of the attributes 'format' and 'printf' are 00027 accepted by gcc versions 2.6.4 (effectively 2.7) and later. 00028 We enable __attribute__ only if these are supported too, because 00029 gnulib and libintl do '#define printf __printf__' when they override 00030 the 'printf' function. */ 00031 # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) 00032 # define __attribute__(Spec) /* empty */ 00033 # endif 00034 #endif 00035 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif 00039 00040 /* Print a message with `fprintf (stderr, FORMAT, ...)'; 00041 if ERRNUM is nonzero, follow it with ": " and strerror (ERRNUM). 00042 If STATUS is nonzero, terminate the program with `exit (STATUS)'. */ 00043 00044 extern void error (int __status, int __errnum, const char *__format, ...) 00045 __attribute__ ((__format__ (__printf__, 3, 4))); 00046 00047 extern void error_at_line (int __status, int __errnum, const char *__fname, 00048 unsigned int __lineno, const char *__format, ...) 00049 __attribute__ ((__format__ (__printf__, 5, 6))); 00050 00051 /* If NULL, error will flush stdout, then print on stderr the program 00052 name, a colon and a space. Otherwise, error will call this 00053 function without parameters instead. */ 00054 extern void (*error_print_progname) (void); 00055 00056 /* This variable is incremented each time `error' is called. */ 00057 extern unsigned int error_message_count; 00058 00059 /* Sometimes we want to have at most one error per line. This 00060 variable controls whether this mode is selected or not. */ 00061 extern int error_one_per_line; 00062 00063 #ifdef __cplusplus 00064 } 00065 #endif 00066 00067 #endif /* error.h */