]>
Commit | Line | Data |
---|---|---|
ec7dc6c9 | 1 | diff -u3 dbview-1.0.3-orig/db_dump.h dbview-1.0.3/db_dump.h |
2 | --- dbview-1.0.3-orig/db_dump.h 2005-07-15 09:15:14.000000000 +0200 | |
3 | +++ dbview-1.0.3/db_dump.h 2005-07-15 09:44:06.869996544 +0200 | |
4 | @@ -47,18 +47,20 @@ | |
5 | #define DB_FL_OMIT 0x10 | |
6 | #define DB_FL_TRIM 0x20 | |
7 | ||
8 | +#include <sys/types.h> | |
9 | + | |
10 | typedef struct dbase_head { | |
11 | - unsigned char version; /* 03 for dbIII and 83 for dbIII w/memo file */ | |
12 | - unsigned char l_update[3]; /* yymmdd for last update*/ | |
13 | - unsigned long count; /* number of records in file*/ | |
14 | - unsigned short header; /* length of the header | |
15 | + u_int8_t version; /* 03 for dbIII and 83 for dbIII w/memo file */ | |
16 | + u_int8_t l_update[3]; /* yymmdd for last update*/ | |
17 | + u_int32_t count; /* number of records in file*/ | |
18 | + u_int16_t header; /* length of the header | |
19 | * includes the \r at end | |
20 | */ | |
21 | - unsigned short lrecl; /* length of a record | |
22 | + u_int16_t lrecl; /* length of a record | |
23 | * includes the delete | |
24 | * byte | |
25 | */ | |
26 | - unsigned char reserv[20]; | |
27 | + u_int8_t reserv[20]; | |
28 | } DBASE_HEAD; | |
29 | ||
30 | #define DB_FLD_CHAR 'C' | |
31 | @@ -71,7 +73,7 @@ | |
32 | char name[11]; /*field name*/ | |
33 | char type; /*field type*/ | |
34 | /* A-T uses large data model but drop it for now */ | |
35 | - char *data_ptr; /*pointer into buffer*/ | |
36 | + u_int32_t kludge; | |
37 | unsigned char length; /*field length*/ | |
38 | char dec_point; /*field decimal point*/ | |
39 | char fill[14]; |