Version bumped to 1.0.0 for the initial release.
[wllib.git] / wllib.h
1 #ifndef _WLLIB_H
2 #define _WLLIB_H 1
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <errno.h>
7
8 extern char *pname;
9
10 extern void wl_init(int *argcp,char **argv,const char *class);
11 extern void wl_line(long x,long y);
12 extern void wl_done(void);
13
14 #define iofail() do { perror(pname); exit(EXIT_FAILURE); } while (0)
15 #define iofailn(e) do { errno=(e); perror(pname); exit(EXIT_FAILURE); } while (0)
16
17 #ifndef HAVE_RINT
18 #define rint
19 #endif
20
21 #endif