Added (premilinary) support for null columns.

Added support routines for C files generated by parsecsv utilities.
This commit is contained in:
brianb
2000-03-19 02:50:05 +00:00
parent 5a4f0eefcd
commit 401e3f45e3
5 changed files with 69 additions and 45 deletions

View File

@@ -19,7 +19,7 @@ LIBS =
INSTALL= @INSTALL@
PROGS = mdb-dump
OBJS = dump.o
OBJS = dump.o
all: $(PROGS)

22
src/extras/mdbsupport.c Normal file
View File

@@ -0,0 +1,22 @@
/* support routines for code generated by the util programs */
#include "util.h"
#include <stdio.h>
void dump_int (int i)
{
fprintf (stdout, ">>%d<<\n", i);
}
void dump_long (long l)
{
fprintf (stdout, ">>%ld<<\n", l);
}
void dump_string (char *s)
{
if ((s == NULL) || (strlen (s) == 0))
fprintf (stdout, "(null)\n");
else
fprintf (stdout, ">>%s<<\n", s);
}

4
src/extras/mdbsupport.h Normal file
View File

@@ -0,0 +1,4 @@
void dump_int (int i);
void dump_long (long l);
void dump_string (char *s);