[XForms] Genuine API changes to forms.h, glcanvas.h since XForms0.89
Angus Leeming
angus.leeming at btopenworld.com
Tue May 18 15:41:38 EDT 2004
On Tuesday 18 May 2004 8:34 pm, jason cipriani wrote:
> At least... I think it's the case. I don't think Angus was planning
> on changing a bunch of void-returning functions to int without
> actually making them return an error/success status... right?
Correct. I'm just trying to document changes that occured sometime
during the 0.89 -> 1.0 interval. Specifically:
API changes from XForms 0.89 to XForms 1.0
==========================================
fl_set_chart_maxnumb now returns
FL_ARGUMENT (== -3) if maxnum < 0
FL_ALLOC (== -4) if the chart object previously had no space
allocated for these values.
0 if the object was resized and re-displayed successfully.
-FL_EXPORT void fl_set_chart_maxnumb(FL_OBJECT *, int maxnum);
+FL_EXPORT int fl_set_chart_maxnumb(FL_OBJECT *, int maxnum);
Now returns
0 on success.
FL_ALLOC if unable to allocate sufficient memory to the object.
-FL_EXPORT void fl_set_xyplot_data(FL_OBJECT *, float *, float *, int,
const char *, const char *, const char *);
+FL_EXPORT int fl_set_xyplot_data(FL_OBJECT *, float *, float *, int,
const char *, const char *, const char *);
More information about the Xforms
mailing list