X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fchart.h;h=795462a77e765e323b4ff49037ffc10781b0a2bc;hb=4fdeb2145d081ff1b84e3f6c99f9d1c048c0d64a;hp=eec5bff5b847a1d6d3b679c28156919c1b8651bd;hpb=46cc6dd316280579f5b03dfd39d01bc7daf88df7;p=pspp-builds.git diff --git a/src/chart.h b/src/chart.h index eec5bff5..795462a7 100644 --- a/src/chart.h +++ b/src/chart.h @@ -14,19 +14,22 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #ifndef CHART_H #define CHART_H +#include #include -#include #include - #include "var.h" +#ifndef NO_CHARTS +#include +#endif + /* Array of standard colour names */ extern const char *data_colour[]; @@ -34,8 +37,13 @@ extern const char *data_colour[]; struct chart { +#ifndef NO_CHARTS plPlotter *lp ; plPlotterParams *pl_params; +#else + void *lp; +#endif + char *filename; /* The geometry of the chart See diagram at the foot of this file. @@ -72,10 +80,8 @@ struct chart { }; -int chart_initialise(struct chart *ch); - -void chart_finalise(struct chart *ch); - +struct chart * chart_create(void); +void chart_submit(struct chart *ch); double chart_rounded_tick(double tick);