chiark
/
gitweb
/
~mdw
/
mgLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Take advantage of new dynamic string macros.
[mgLib]
/
msg.c
diff --git
a/msg.c
b/msg.c
index eb386e1428488480f1e7962bf60aa14237a0ce10..d9be0ca04037ef54acc2863890801178706275df 100644
(file)
--- a/
msg.c
+++ b/
msg.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: msg.c,v 1.
6 1999/05/06 19:51:48
mdw Exp $
+ * $Id: msg.c,v 1.
7 1999/05/21 22:08:20
mdw Exp $
*
* Display a message and get an answer
*
*
* Display a message and get an answer
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: msg.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: msg.c,v $
+ * 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.
*
* Revision 1.6 1999/05/06 19:51:48 mdw
* Reformatted the LGPL notice a little bit.
*
@@
-122,11
+125,10
@@
int msg(const char *buttons, const char *msg, ...)
/* --- Set up the message string --- */
{
/* --- Set up the message string --- */
{
- dstr d;
+ dstr d
= DSTR_INIT
;
va_list ap;
va_start(ap, msg);
va_list ap;
va_start(ap, msg);
- dstr_create(&d);
dstr_vputf(&d, msg, ap);
va_end(ap);
w = gtk_label_new(d.buf);
dstr_vputf(&d, msg, ap);
va_end(ap);
w = gtk_label_new(d.buf);