wmshutdown: Add freedesktop.org desktop entry file.
[dockapps.git] / wmjmail / src / jenglish.h
blob64ecb3632387ea7c1c9b232e44be4bbf76f16d3a
1 /*
2 ** This file does all of the #include's for the driver. It also
3 ** sets up some english like functions...
4 ** Strictly speaking, it's poor style to put functions in a header file.
5 ** The functions in here arn't really functions though...
6 */
7 #include <signal.h>
8 #include <stdio.h>
9 #include <fcntl.h>
10 #include <sys/types.h>
11 #include <sys/stat.h>
12 #include <sys/ioctl.h>
13 #include <unistd.h>
14 #include <errno.h>
16 #define true 1
17 #define false 0
19 #define daemon_setup() chdir("/"); setsid();
20 #define loop() while(true)
22 // Note: This macro MUST follow an if statement without {}'s!!!
23 #define freak_out() { \
24 printf("Something bad happend near line %i of %s: %s.\n", \
25 __LINE__, __FILE__, strerror(errno) ); exit(1); }