/* PSPP - computes sample statistics.
Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
- Written by Ben Pfaff <blp@gnu.org>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
#include <config.h>
#include "manager.h"
-#include "message.h"
#include <stdio.h>
#include <stdlib.h>
+#include <libpspp/assertion.h>
#include "output.h"
-#include "debug-print.h"
/* Table. */
int table_num = 1;
}
\f
/* Driver. */
-static struct outp_driver *d=0;
+static struct outp_driver *d = 0;
/* Table. */
-static struct som_entity *t=0;
+static struct som_entity *t = 0;
/* Flags. */
static unsigned flags;
void
som_submit (struct som_entity *t)
{
-#if GLOBAL_DEBUGGING
+#if DEBUGGING
static int entry;
assert (entry++ == 0);
t->class->headers (&hl, &hr, &ht, &hb);
-#if GLOBAL_DEBUGGING
+#if DEBUGGING
if (hl + hr > nc || ht + hb > nr)
{
printf ("headers: (l,r)=(%d,%d), (t,b)=(%d,%d) in table size (%d,%d)\n",
hl, hr, ht, hb, nc, nr);
- abort ();
+ NOT_REACHED ();
}
else if (hl + hr == nc)
printf ("warning: headers (l,r)=(%d,%d) in table width %d\n", hl, hr, nc);
}
-#if GLOBAL_DEBUGGING
+#if DEBUGGING
assert (--entry == 0);
#endif
}
bool fits_width, fits_length;
d = driver;
- assert (d->driver_open);
- if (!d->page_open && !d->class->open_page (d))
- {
- d->device = OUTP_DEV_DISABLED;
- return;
- }
-
+ outp_open_page (d);
if (d->class->special || entity->type == SOM_CHART)
{
driver->class->submit (d, entity);
{
assert (d->cp_y);
outp_eject_page (d);
- } else {
+ }
+ else
+ {
if (len > max_len)
max_len = len;
{
assert (d->cp_y);
outp_eject_page (d);
- } else {
+ }
+ else
+ {
t->class->title (x_index ? x_index : y_index,
x_index ? y_index : 0);
t->class->render (x0, y0, x1, y1);