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,13 +1,59 @@
# Generated automatically from Makefile.in by configure.
DIRS = extras libmdb util
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@
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
subdirs = libmdb util extras
all:
cd libmdb; make
cd util; make
cd extras; make
@for dir in ${subdirs}; do \
(cd $$dir && $(MAKE) all) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
clean:
cd extras; make clean
cd util; make clean
cd libmdb; make clean
# automatic re-running of configure if the configure.in file has changed
${srcdir}/configure: configure.in
cd ${srcdir} && autoconf
# autoheader might not change config.h.in so touch a stamp file
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck

59
src/Makefile.in Normal file
View File

@ -0,0 +1,59 @@
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@
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
subdirs = libmdb util extras
all:
@for dir in ${subdirs}; do \
(cd $$dir && $(MAKE) all) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
clean:
cd extras; make clean
cd util; make clean
cd libmdb; make clean
# automatic re-running of configure if the configure.in file has changed
${srcdir}/configure: configure.in
cd ${srcdir} && autoconf
# autoheader might not change config.h.in so touch a stamp file
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck

25
src/config.h.in Normal file
View File

@ -0,0 +1,25 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */
/* Define to empty if the keyword does not work. */
#undef const
/* Define to `unsigned' if <sys/types.h> doesn't define. */
#undef size_t
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define if you have the <fcntl.h> header file. */
#undef HAVE_FCNTL_H
/* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if you have the ibs library (-libs). */
#undef HAVE_LIBIBS
/* Define if you have the mdb library (-lmdb). */
#undef HAVE_LIBMDB

1454
src/configure vendored Executable file

File diff suppressed because it is too large Load Diff

24
src/configure.in Normal file
View File

@ -0,0 +1,24 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(extras/dump.c)
AC_PROG_CC(gcc)
dnl Checks for programs.
AC_PROG_MAKE_SET
dnl Checks for libraries.
dnl Replace `main' with a function in -libs:
AC_CHECK_LIB(ibs, main)
dnl Replace `main' with a function in -lmdb:
AC_CHECK_LIB(mdb, mdb_free_handle)
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h limits.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
dnl Checks for library functions.
AC_OUTPUT(util/Makefile extras/Makefile Makefile libmdb/Makefile)

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@
PROGS = mdb-dump
OBJS = dump.o

33
src/extras/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@
PROGS = mdb-dump
OBJS = dump.o
all: $(PROGS)
clean:
rm -f core *.o $(PROGS)
mdb-dump: dump.o
$(CC) -g -o $@ $<
.c.o:
$(CC) -g -c $<

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];

View File

@ -1,6 +1,23 @@
# 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`
LIBS = -L ../libmdb -lmdb `glib-config --libs`
PROGS = prcat prkkd prtable prdata prdump mdb-schema mdb-export mdb-tables mdb-header mdb-parsecsv

71
src/util/Makefile.in Normal file
View File

@ -0,0 +1,71 @@
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`
LIBS = -L ../libmdb -lmdb `glib-config --libs`
PROGS = prcat prkkd prtable prdata prdump mdb-schema mdb-export mdb-tables mdb-header mdb-parsecsv
PRCATOBJS = prcat.o
PRKKDOBJS = prkkd.o
PRTABLEOBJS = prtable.o
PRDATAOBJS = prdata.o
PRDUMPOBJS = prdump.o
SCHEMAOBJS = schema.o
EXPORTOBJS = mdb-export.o
HEADEROBJS = header.o
TABLEOBJS = tables.o
CSVOBJS = parsecsv.o
all: $(PROGS)
prcat: $(PRCATOBJS)
$(CC) -g -o $@ $(PRCATOBJS) $(LIBS)
prkkd: $(PRKKDOBJS)
$(CC) -g -o $@ $(PRKKDOBJS) $(LIBS)
prtable: $(PRTABLEOBJS)
$(CC) -g -o $@ $(PRTABLEOBJS) $(LIBS)
prdata: $(PRDATAOBJS)
$(CC) -g -o $@ $(PRDATAOBJS) $(LIBS)
prdump: $(PRDUMPOBJS)
$(CC) -g -o $@ $(PRDUMPOBJS) $(LIBS)
mdb-schema: $(SCHEMAOBJS)
$(CC) -g -o $@ $(SCHEMAOBJS) $(LIBS)
mdb-export: $(EXPORTOBJS)
$(CC) -g -o $@ $(EXPORTOBJS) $(LIBS)
mdb-tables: $(TABLEOBJS)
$(CC) -g -o $@ $(TABLEOBJS) $(LIBS)
mdb-header: $(HEADEROBJS)
$(CC) -g -o $@ $(HEADEROBJS) $(LIBS)
mdb-parsecsv: $(CSVOBJS)
$(CC) -g -o $@ $(CSVOBJS) $(LIBS)
clean:
rm -f core *.o $(PROGS)
.c.o:
$(CC) -g -c $< $(INC)