X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable.c;h=3d07eb40d47563b27c059ee36d0473ce94d85c47;hb=dfb794fa53a423c1f20c3a21811c0bec4a64a916;hp=97a2793c55ea728c2cbe72cb6705469c8cf34f1c;hpb=684cd61c11313517223159e0df662c3d6bf8b139;p=pspp diff --git a/src/output/table.c b/src/output/table.c index 97a2793c55..3d07eb40d4 100644 --- a/src/output/table.c +++ b/src/output/table.c @@ -249,20 +249,20 @@ cell_style_dump (const struct cell_style *c) header rows or columns. Sets the number of header rows on each side of TABLE to HL on the - left, HR on the right, HT on the top, HB on the bottom. Header rows + left, HT on the top. Header rows are repeated when a table is broken across multiple columns or multiple pages. The table's cells are initially empty. */ struct table * -table_create (int nc, int nr, int hl, int hr, int ht, int hb) +table_create (int nc, int nr, int hl, int ht) { struct pool *pool = pool_create (); struct table *t = pool_alloc (pool, sizeof *t); *t = (struct table) { .container = pool, .n = { [H] = nc, [V] = nr }, - .h = { [H] = { hl, hr }, [V] = { ht, hb } }, + .h = { [H] = hl, [V] = ht }, .ref_cnt = 1, .cc = pool_calloc (pool, nr * nc, sizeof *t->cc), .cp = pool_calloc (pool, nr * nc, sizeof *t->cp),