X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fu8-line.h;h=1da5f8869ac3c3d65def2b0e4451168f3187c7b8;hb=209f7e5ccf28c97641b9e69ef6b9df81efe4dc38;hp=af7bd6e8aaa1ff04fc4e9f461a380db20e3ae523;hpb=b2518c70cc5b55bb630b07ddcda5dfd7a3613da4;p=pspp diff --git a/src/libpspp/u8-line.h b/src/libpspp/u8-line.h index af7bd6e8aa..1da5f8869a 100644 --- a/src/libpspp/u8-line.h +++ b/src/libpspp/u8-line.h @@ -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 */