Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
-/* AIX requires this to be the first thing in the file. */
#include <config.h>
-#if __GNUC__
-#define alloca __builtin_alloca
-#else
-#if HAVE_ALLOCA_H
-#include <alloca.h>
-#else
-#ifdef _AIX
-#pragma alloca
-#else
-#ifndef alloca /* predefined by HP cc +Olibcalls */
-char *alloca ();
-#endif
-#endif
-#endif
-#endif
-
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "alloc.h"
#include "command.h"
+#include "devind.h"
#include "lexer.h"
#include "error.h"
#include "magic.h"
#include "htmlP.h"
#include "output.h"
#include "som.h"
+#include "tab.h"
#include "var.h"
#include "vfm.h"
#include "format.h"
static void write_line (struct outp_driver *d, char *s);
/* Other functions. */
-static int list_cases (struct ccase *);
+static int list_cases (struct ccase *, void *);
static void determine_layout (void);
static void clean_up (void);
static void write_header (struct outp_driver *);
-static void write_all_headers (void);
+static void write_all_headers (void *);
/* Returns the number of text lines that can fit on the remainder of
the page. */
determine_layout ();
case_num = 0;
- procedure (write_all_headers, list_cases, NULL);
+ procedure (write_all_headers, list_cases, NULL, NULL);
free (line_buf);
clean_up ();
/* Writes headers to all devices. This is done at the beginning of
each SPLIT FILE group. */
static void
-write_all_headers (void)
+write_all_headers (void *aux UNUSED)
{
struct outp_driver *d;
{
struct html_driver_ext *x = d->ext;
- assert (d->driver_open && d->page_open);
+ assert (d->driver_open);
if (x->sequence_no == 0 && !d->class->open_page (d))
{
msg (ME, _("Cannot open first page on HTML device %s."),
fputs (" <TR>\n", x->file.file);
}
+ else if (d->class == &devind_class)
+ {
+ /* FIXME */
+ }
else
assert (0);
}
fputs ("</TABLE>\n", x->file.file);
}
}
+ else if (d->class == &devind_class)
+ {
+ /* FIXME */
+ }
else
assert (0);
if (d->class == &html_class)
continue;
+ else if (d->class == &devind_class)
+ {
+ /* FIXME */
+ tab_output_text (TAT_NONE, "(devind not supported on LIST yet)");
+ continue;
+ }
assert (d->class->special == 0);
}
static int
-list_cases (struct ccase *c)
+list_cases (struct ccase *c, void *aux UNUSED)
{
struct outp_driver *d;
fputs (" </TR>\n", x->file.file);
}
+ else if (d->class == &devind_class)
+ {
+ /* FIXME */
+ }
else
assert (0);