u8-line: Add definition of an initializer.
[pspp] / src / libpspp / u8-line.h
index af7bd6e8aaa1ff04fc4e9f461a380db20e3ae523..1da5f8869ac3c3d65def2b0e4451168f3187c7b8 100644 (file)
@@ -32,10 +32,13 @@ struct u8_line
     size_t width;               /* Display width, in character positions. */
   };
 
+#define U8_LINE_INITIALIZER { .s = DS_EMPTY_INITIALIZER };
+
 void u8_line_init (struct u8_line *);
 void u8_line_destroy (struct u8_line *);
 void u8_line_clear (struct u8_line *);
 char *u8_line_reserve (struct u8_line *, int x0, int x1, int n);
 void u8_line_put (struct u8_line *, int x0, int x1, const char *s, int n);
+void u8_line_set_length (struct u8_line *, int x);
 
 #endif /* libpspp/u8-line.h */