X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fascii.c;h=756235c5cbf6cae7183e19d4a287ff6566840c7a;hb=30e8709a43952db775843e3e72c9f51462ffc82e;hp=b076faf25a93ff50bb27c267b66a5d458468c409;hpb=b2518c70cc5b55bb630b07ddcda5dfd7a3613da4;p=pspp diff --git a/src/output/ascii.c b/src/output/ascii.c index b076faf25a..756235c5cb 100644 --- a/src/output/ascii.c +++ b/src/output/ascii.c @@ -943,6 +943,19 @@ ascii_test_write (struct output_driver *driver, a->y = 1; } + +void +ascii_test_set_length (struct output_driver *driver, int y, int length) +{ + struct ascii_driver *a = ascii_driver_cast (driver); + + if (a->file == NULL && !ascii_open_page (a)) + return; + + if (y < 0 || y >= a->length) + return; + u8_line_set_length (&a->lines[y], length); +} /* ascii_close_page () and support routines. */