File: except.h

package info (click to toggle)
pmidi 1.4.1-2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 244 kB
  • ctags: 637
  • sloc: ansic: 2,908; makefile: 70
file content (30 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * 
 * except.m - XXX
 * 
 * Copyright (C) 1999 Steve Ratcliffe
 * 
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License version 2 as
 *  published by the Free Software Foundation.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 * 
 */

#include <setjmp.h>

struct except {
	int  set;
	sigjmp_buf  buf;
};

extern struct except *formatError;	/* Bad file format */
extern struct except *ioError;	/* Error reading/writing file */
extern struct except *debugError;	/* Debugging 'shouldn't happen' errors */

void except(struct except *e, char *message, ...);