chiark / gitweb /
Change guard constants.
[mgLib] / msg.c
diff --git a/msg.c b/msg.c
index eb386e1428488480f1e7962bf60aa14237a0ce10..7ec62a10494fd2f9ce9d757af498c7de614af17a 100644 (file)
--- a/msg.c
+++ b/msg.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: msg.c,v 1.6 1999/05/06 19:51:48 mdw Exp $
+ * $Id: msg.c,v 1.8 1999/11/11 19:54:37 mdw Exp $
  *
  * Display a message and get an answer
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: msg.c,v $
+ * Revision 1.8  1999/11/11 19:54:37  mdw
+ * Prep for standalone release.
+ *
+ * Revision 1.7  1999/05/21 22:08:20  mdw
+ * Take advantage of new dynamic string macros.
+ *
  * Revision 1.6  1999/05/06 19:51:48  mdw
  * Reformatted the LGPL notice a little bit.
  *
@@ -51,8 +57,6 @@
  *
  */
 
-#ifdef HAVE_GTK
-
 /*----- Header files ------------------------------------------------------*/
 
 #include <stdarg.h>
@@ -122,11 +126,10 @@ int msg(const char *buttons, const char *msg, ...)
   /* --- Set up the message string --- */
 
   {
-    dstr d;
+    dstr d = DSTR_INIT;
     va_list ap;
 
     va_start(ap, msg);
-    dstr_create(&d);
     dstr_vputf(&d, msg, ap);
     va_end(ap);
     w = gtk_label_new(d.buf);
@@ -200,7 +203,3 @@ int msg(const char *buttons, const char *msg, ...)
 }
 
 /*----- That's all, folks -------------------------------------------------*/
-
-#else
-  int mgLib_msg = 0;
-#endif