X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/5ff96d61ee5af34956ae958a0bc72ee78734a4d7..8b4410a1f3cb75e3d92b61176397655d509f81ee:/h/mh.h diff --git a/h/mh.h b/h/mh.h index 130bfde5..97c7769b 100644 --- a/h/mh.h +++ b/h/mh.h @@ -29,6 +29,15 @@ #endif typedef unsigned char boolean; /* not int so we can pack in a structure */ +/* If we're using gcc then give it some information about + * functions that abort. + */ +#if __GNUC__ > 2 +#define NORETURN __attribute__((__noreturn__)) +#else +#define NORETURN +#endif + /* * user context/profile structure */ @@ -336,5 +345,7 @@ extern char *vmhproc; extern char *whatnowproc; extern char *whomproc; +extern void (*done) (int) NORETURN; + #include