22 |
#include "string.h" |
#include "string.h" |
23 |
#include "output.h" |
#include "output.h" |
24 |
#include "shutdown.h" |
#include "shutdown.h" |
25 |
|
#include "loader.h" |
26 |
|
|
27 |
|
|
28 |
#define PROGRAM_NAME "wortel" |
/* The program name. */ |
29 |
#define BUG_ADDRESS "<bug-hurd@gnu.org>" |
extern char *program_name; |
|
|
|
|
/* Print an error message and fail. */ |
|
|
#define panic(...) \ |
|
|
({ \ |
|
|
printf (PROGRAM_NAME ": error: "); \ |
|
|
printf (__VA_ARGS__); \ |
|
|
putchar ('\n'); \ |
|
|
shutdown (); \ |
|
|
}) |
|
|
|
|
|
/* True if debug mode is enabled. */ |
|
|
extern int debug; |
|
|
|
|
|
/* Print a debug message. */ |
|
|
#define debug(...) do { if (debug) printf (__VA_ARGS__); } while (0) |
|
30 |
|
|
31 |
|
#define BUG_ADDRESS "<bug-hurd@gnu.org>" |
32 |
|
|
33 |
int main (int argc, char *argv[]); |
int main (int argc, char *argv[]); |