X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fscree.c;h=049087a47cb01dd9419dec2847f131f368dc6745;hb=80ff0f10da00eae4c7b3b07266a03e403e97d640;hp=4de1f5e6fc664ecf888d9c47daa7f532542a5265;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;p=pspp diff --git a/src/output/charts/scree.c b/src/output/charts/scree.c index 4de1f5e6fc..049087a47c 100644 --- a/src/output/charts/scree.c +++ b/src/output/charts/scree.c @@ -18,7 +18,7 @@ #include "output/charts/scree.h" -#include "output/chart-item-provider.h" +#include "output/chart-provider.h" #include "gl/xalloc.h" @@ -29,7 +29,7 @@ struct scree * scree_create (const gsl_vector *eigenvalues, const char *xlabel) { struct scree *rc = xmalloc (sizeof *rc); - chart_item_init (&rc->chart_item, &scree_class, NULL); + chart_init (&rc->chart, &scree_class, NULL); rc->eval = gsl_vector_alloc (eigenvalues->size); gsl_vector_memcpy (rc->eval, eigenvalues); @@ -40,16 +40,16 @@ scree_create (const gsl_vector *eigenvalues, const char *xlabel) } static void -scree_destroy (struct chart_item *chart_item) +scree_destroy (struct chart *chart) { - struct scree *rc = to_scree (chart_item); + struct scree *rc = to_scree (chart); gsl_vector_free (rc->eval); free (rc->xlabel); free (rc); } -const struct chart_item_class scree_class = +const struct chart_class scree_class = { scree_destroy };