Change link-time overriding of done() to run-time reassigning of equivalent
[mmh] / sbr / done.c
index b5072a6..bcc258c 100644 (file)
@@ -3,12 +3,18 @@
  * done.c -- terminate the program
  *
  * $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
 
+int (*done) (int) = default_done;
+
 int
-done (int status)
+default_done (int status)
 {
     exit (status);
     return 1;  /* dead code to satisfy the compiler */