X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable.c;h=9c931a5a3586fdfe3e267056f27e1b8a45e1e590;hb=20f2c8b593eba29c2cca67569a5ef5bb68189c54;hp=1b052888ebc0db42bd41ad7ab5b6978da8bc5f5c;hpb=67adf64d9367f8b43ef725d7f0c03895a5b6460b;p=pspp diff --git a/src/output/table.c b/src/output/table.c index 1b052888eb..9c931a5a35 100644 --- a/src/output/table.c +++ b/src/output/table.c @@ -44,7 +44,6 @@ #define _(msgid) gettext (msgid) const struct som_table_class tab_table_class; -static char *command_name; /* Returns the font to use for a cell with the given OPTIONS. */ static enum outp_font @@ -1158,7 +1157,8 @@ tabi_cumulate (void *r_, int cumtype, int start, int *end, Y. Y may be zero, or X and Y may be zero, but X should be nonzero if Y is nonzero. */ static void -tabi_title (void *r_, int x, int y, int table_num, int subtable_num) +tabi_title (void *r_, int x, int y, int table_num, int subtable_num, + const char *command_name) { const struct tab_rendering *r = r_; const struct tab_table *t = r->table; @@ -1486,12 +1486,3 @@ render_strip (const struct tab_rendering *r, return x; } - -/* Sets COMMAND_NAME as the name of the current command, - for embedding in output. */ -void -tab_set_command_name (const char *command_name_) -{ - free (command_name); - command_name = command_name_ ? xstrdup (command_name_) : NULL; -}