mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-19 02:27:55 +08:00
declaration fix for dump.c (Karl)
fixed the is_fixed stuff in table.c/data.c (Brian) autoconf (Carl)
This commit is contained in:
@@ -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
33
src/libmdb/Makefile.in
Normal 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)
|
@@ -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;
|
||||
|
@@ -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];
|
||||
|
Reference in New Issue
Block a user