/* -*-c-*-
*
- * $Id: dstr.h,v 1.6 1999/05/21 08:38:14 mdw Exp $
+ * $Id: dstr.h,v 1.7 1999/05/21 22:12:12 mdw Exp $
*
* Handle dynamically growing strings
*
/*----- Revision history --------------------------------------------------*
*
* $Log: dstr.h,v $
+ * Revision 1.7 1999/05/21 22:12:12 mdw
+ * Fix the bugs in the new macros. (Whoops.)
+ *
* Revision 1.6 1999/05/21 08:38:14 mdw
* Add some more macros, particularly for creation and destruction.
*
size_t len; /* Length of the string */
} dstr;
-#define DSTR_INIT = { 0, 0, 0 }; /* How to initialize one */
+#define DSTR_INIT { 0, 0, 0 } /* How to initialize one */
/*----- Functions provided ------------------------------------------------*/
extern void dstr_reset(dstr */*d*/);
-#define DRESET(d) do (d)->len = 0; while (0)
+#define DRESET(d) ((d)->len = 0)
/* --- @dstr_ensure@ --- *
*