I'm writing a subcommand that will let the user save a regression model
as a C function. So far, I have written this:
static void
subcommand_export (int export, pspp_linreg_cache *c)
{
FILE *fp;
if (export)
{
assert (c != NULL);
assert (model_file != NULL);
fp = fopen (model_file->filename, "w");
fprintf (fp, "double linreg_thingy %f %f %f\n", c->blah, c->blah,
c->blah);
fclose (fp);
}
}
But model_file is a struct file_handle, which is defined in
file-handle-def.c, not file-handle-def.h. Otherwise, this approach
has been smooth.
Could the definition of struct file_handle be moved to
file-handle-def.h? Or should I take a different approach?
-Jason
--
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org
_______________________________________________
pspp-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/pspp-dev