X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fpivot-table.h;h=2a5d8467f81037e152505df4a8e7ae1049e24faa;hb=d55fbbb4fda554d02c93dd46c6fa66128060e6f0;hp=e7537e781bc52574affc49500bdf002afa007a57;hpb=3c95184e5b984dbb02d67941f6253eb9783ed43c;p=pspp diff --git a/src/output/pivot-table.h b/src/output/pivot-table.h index e7537e781b..2a5d8467f8 100644 --- a/src/output/pivot-table.h +++ b/src/output/pivot-table.h @@ -553,6 +553,12 @@ struct pivot_footnote *pivot_table_create_footnote__ ( struct pivot_table *, size_t idx, struct pivot_value *marker, struct pivot_value *content); +void pivot_footnote_format_marker (const struct pivot_footnote *, + const struct pivot_table *, + struct string *); +char *pivot_footnote_marker_string (const struct pivot_footnote *, + const struct pivot_table *); + void pivot_footnote_destroy (struct pivot_footnote *); /* Internals. */ @@ -688,6 +694,8 @@ struct pivot_value /* PIVOT_VALUE_TEXT. */ struct { + /* 'local', 'c', and 'id' must all be nonnull, but they are allowed + to be the same pointer. */ char *local; /* Localized. */ char *c; /* English. */ char *id; /* Identifier. */ @@ -698,6 +706,8 @@ struct pivot_value /* PIVOT_VALUE_TEMPLATE. */ struct { + /* Both 'local' and 'id' must be nonnull, but they are allowed to + be the same pointer. */ char *local; /* Localized. */ char *id; /* Identifier. */ struct pivot_argument *args; @@ -739,6 +749,7 @@ struct pivot_value *pivot_value_new_user_text_nocopy (char *); /* Footnotes. */ void pivot_value_add_footnote (struct pivot_value *, const struct pivot_footnote *); +void pivot_value_sort_footnotes (struct pivot_value *); /* Numeric formats. */ void pivot_value_set_rc (const struct pivot_table *, struct pivot_value *, @@ -748,7 +759,7 @@ void pivot_value_set_rc (const struct pivot_table *, struct pivot_value *, char *pivot_value_to_string (const struct pivot_value *, const struct pivot_table *); char *pivot_value_to_string_defaults (const struct pivot_value *); -void pivot_value_format (const struct pivot_value *, +bool pivot_value_format (const struct pivot_value *, const struct pivot_table *, struct string *); bool pivot_value_format_body (const struct pivot_value *, const struct pivot_table *,