declaration fix for dump.c (Karl)

fixed the is_fixed stuff in table.c/data.c (Brian)
autoconf (Carl)
This commit is contained in:
brianb
2000-03-17 23:46:05 +00:00
parent 375a4ea169
commit 5a4f0eefcd
13 changed files with 1804 additions and 14 deletions

View File

@@ -1,5 +1,22 @@
# Generated automatically from Makefile.in by configure.
SHELL = /bin/sh
top_srcdir = ..
srcdir = .
prefix = /usr/local
exec_prefix = ${prefix}
bindir = $(exec_prefix)/bin
infodir = $(exec_prefix)/info
libdir = $(exec_prefix)/lib
mandir = $(exec_prefix)/man/man1
CC = gcc
CPPFLAGS =
CFLAGS = $(CPPFLAG) -g -O2
LDFLAGS =
LIBS =
INSTALL= @INSTALL@
INC = -I ../include `glib-config --cflags`
OBJS = catalog.o mem.o file.o kkd.o table.o data.o dump.o

33
src/libmdb/Makefile.in Normal file
View File

@@ -0,0 +1,33 @@
SHELL = /bin/sh
VPATH = @srcdir@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
infodir = $(exec_prefix)/info
libdir = $(exec_prefix)/lib
mandir = $(exec_prefix)/man/man1
CC = @CC@
CPPFLAGS = @CPPFLAGS@
CFLAGS = $(CPPFLAG) @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL= @INSTALL@
INC = -I ../include `glib-config --cflags`
OBJS = catalog.o mem.o file.o kkd.o table.o data.o dump.o
all: libmdb
libmdb: $(OBJS)
rm -f libmdb.a
ar cq libmdb.a $(OBJS)
clean:
rm -f core *.o *.a
.c.o:
$(CC) -g -c $< $(INC)

View File

@@ -2,7 +2,7 @@
#include <string.h>
#include <stdio.h>
void buffer_dump(const char* buf, int start, int end)
void buffer_dump(const unsigned char* buf, int start, int end)
{
char asc[20];
int j, k;

View File

@@ -103,13 +103,7 @@ int name_sz;
memset(&col,'\0', sizeof(MdbColumn));
col.col_type = mdb->pg_buf[cur_col];
if (col.col_type == MDB_TEXT) {
col.is_fixed = mdb->pg_buf[cur_col+3];
} else if (col.col_type == MDB_MEMO) {
col.is_fixed = 0;
} else {
col.is_fixed = 1;
}
col.is_fixed = mdb->pg_buf[cur_col+13] & 0x01 ? 1 : 0;
col.col_size = mdb_get_int16(mdb,cur_col+16);
/* get the name */
name_sz = mdb->pg_buf[cur_name];