chiark / gitweb /
Initial revision
[ssr] / StraySrc / Libraries / Steel / h / werr
1 /*
2  * werr
3  *  Just like the old one, only nicer.
4  *
5  * v. 1.00 (8 Aug 1991)
6  *
7  * © 1991-1998 Straylight
8  */
9
10 /*----- Licensing note ----------------------------------------------------*
11  *
12  * This file is part of Straylight's Steel library.
13  *
14  * Steel is free software; you can redistribute it and/or modify
15  * it under the terms of the GNU General Public License as published by
16  * the Free Software Foundation; either version 2, or (at your option)
17  * any later version.
18  *
19  * Steel is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  * GNU General Public License for more details.
23  *
24  * You should have received a copy of the GNU General Public License
25  * along with Steel.  If not, write to the Free Software Foundation,
26  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27  */
28
29 #ifndef __werr_h
30 #define __werr_h
31
32 /*
33  * void werr_bleepy(void)
34  *
35  * Use
36  *  Bleeps if and only if the appropriate WimpFlags bit is right for
37  *  bleeping.
38  */
39
40 void werr_bleepy(void);
41
42 /*
43  * void werr_init(void)
44  *
45  * Use
46  *  Sets up the werr system ready for action.
47  */
48
49 void werr_init(void);
50
51 /*
52  * void werr(int fatal,char *error,...)
53  *
54  * Use
55  *  Compatibility with the old werr segment mainly.
56  *
57  * Parameters
58  *  int fatal == 1 if the error is fatal, or 0 otherwise.
59  *  char *error == printf()-type format string.
60  */
61
62 void werr(int fatal,char *error,...);
63
64 /*
65  * int werr_error(int buttons,char *error,...)
66  *
67  * Use
68  *  Reports an error.  You can have two buttons, OK and Cancel if you really
69  *  want, now.
70  *
71  * Parameters
72  *  int buttons == 1 for 1 button, 2 for 2 buttons, or anything else for an
73  *    unpredictable result.
74  *  char *error == printf()-like format string.
75  *
76  * Returns
77  *  1 for OK, 0 for cancel.
78  */
79
80 int werr_error(int buttons,char *error,...);
81
82 #endif