X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcharts%2Fpiechart.h;h=1899a511c118515424ab0a6e558a18b519300de7;hb=7fceea6249f2a570ecc44b5cb35f94711da957c1;hp=312a45ee08ce759f84e9c02e2991ca9acd3163f0;hpb=dfd1972f7bcb550a4fc3b05dbe7e71d12334b0a7;p=pspp diff --git a/src/output/charts/piechart.h b/src/output/charts/piechart.h index 312a45ee08..1899a511c1 100644 --- a/src/output/charts/piechart.h +++ b/src/output/charts/piechart.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2004, 2009 Free Software Foundation, Inc. + Copyright (C) 2004, 2009, 2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,8 +17,9 @@ #ifndef PIECHART_H #define PIECHART_H -#include -#include +#include "libpspp/str.h" +#include "output/chart-item.h" +#include "language/stats/freq.h" struct piechart { @@ -33,14 +34,16 @@ struct slice double magnitude; }; -struct chart_item *piechart_create (const char *title, - const struct slice *, int n_slices); +struct variable; + +struct chart_item *piechart_create (const struct variable *var, + const struct freq *, int n_slices); /* This boilerplate for piechart, a subclass of chart_item, was autogenerated by mk-class-boilerplate. */ #include -#include +#include "libpspp/cast.h" extern const struct chart_item_class piechart_class;