X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftab.h;h=d08cf48c2813cf8eeb1c962c187384575cded635;hb=1e0e76eaeb51ef0c15fdcfc4bd12d9310c16a88b;hp=dd6840c63cad291ea4354dba84030a593fc53dff;hpb=1133aae2eb44a012939a95613bf5cd1698f5b5e9;p=pspp diff --git a/src/output/tab.h b/src/output/tab.h index dd6840c63c..d08cf48c28 100644 --- a/src/output/tab.h +++ b/src/output/tab.h @@ -41,6 +41,15 @@ #include "libpspp/compiler.h" #include "output/table.h" +enum result_class + { + RC_INTEGER, + RC_WEIGHT, + RC_PVALUE, + RC_OTHER, + n_RC + }; + /* A table. */ struct tab_table { @@ -68,6 +77,8 @@ struct tab_table /* X and Y offsets. */ int col_ofs, row_ofs; + + const struct fmt_spec *fmtmap [n_RC]; }; struct tab_table *tab_cast (const struct table *); @@ -106,6 +117,9 @@ void tab_box (struct tab_table *, int f_h, int f_v, int i_h, int i_v, /* Obsolete cell options. */ #define TAT_TITLE TAB_EMPH /* Title attributes. */ +void tab_set_format (struct tab_table *, enum result_class, const struct fmt_spec *); + + /* Cells. */ struct fmt_spec; struct dictionary; @@ -114,11 +128,8 @@ void tab_value (struct tab_table *, int c, int r, unsigned char opt, const union value *, const struct variable *, const struct fmt_spec *); -void tab_fixed (struct tab_table *, int c, int r, unsigned char opt, - double v, int w, int d); - void tab_double (struct tab_table *, int c, int r, unsigned char opt, - double v, const struct fmt_spec *); + double v, const struct fmt_spec *, enum result_class ); void tab_text (struct tab_table *, int c, int r, unsigned opt, const char *); void tab_text_format (struct tab_table *, int c, int r, unsigned opt,