diff --git a/WEGA/contrib/ingres/dbs/src/redabas/db2.h b/WEGA/contrib/ingres/dbs/src/redabas/db2.h new file mode 100644 index 0000000..7dccc00 --- /dev/null +++ b/WEGA/contrib/ingres/dbs/src/redabas/db2.h @@ -0,0 +1,34 @@ +/* +** J. Wenzlaff, ZKI der AdW +** +** REDABAS 2 -- interface definitions +*/ + +/* REDABAS 2 version stamp */ +/*define REDABAS 2 already defined */ + +/* HEADER definitions */ +# define DB_HDR 8 /* header length without fields */ +# define DB_RECORDS 1 /* offset(short) record count */ +# define DB_DAY 3 /* offset(char) day of last */ + /* modification */ +# define DB_MONTH 4 /* offset(char) month of last */ + /* modification */ +# define DB_YEAR 5 /* offset(char) year of last */ + /* modification */ +# define DB_RECLEN 6 /* offset(short) record length */ + +/* FIELD definitions */ +# define DB_FLDMAX 32 /* max. no of fields */ +# define DB_FLDLEN 16 /* length of field description */ +# define DB_F_NAME 0 /* offset(char [11]) field name */ +# define DB_F_TYPE 11 /* offset(char) field type */ +# define DB_F_LEN 12 /* offset(char) field length */ +# define DB_F_DEC 15 /* offset(char) floating point */ + /* field length */ +/* LENGTH of head record */ +# define DB_HEAD (DB_HDR + (DB_FLDMAX * DB_FLDLEN) + 1) + +/* OTHER stuff */ +# define DB_RECMAX 1000 /* max. record length */ +typedef short word; diff --git a/WEGA/contrib/ingres/dbs/src/redabas/db3.h b/WEGA/contrib/ingres/dbs/src/redabas/db3.h new file mode 100644 index 0000000..feea269 --- /dev/null +++ b/WEGA/contrib/ingres/dbs/src/redabas/db3.h @@ -0,0 +1,34 @@ +/* +** J. Wenzlaff, ZKI der AdW +** +** REDABAS 3 -- interface definitions +*/ + +/* REDABAS 3 version stamp */ +/*define REDABAS 3 already defined */ +# define DB_MEMO (REDABAS + 128) /* with memo fields */ + +/* HEADER definitions */ +# define DB_HDR 32 /* header length without fields */ +# define DB_RECORDS 4 /* offset(long) record count */ +# define DB_DAY 3 /* offset(char) day of last */ + /* modification */ +# define DB_MONTH 2 /* offset(char) month of last */ + /* modification */ +# define DB_YEAR 1 /* offset(char) year of last */ + /* modification */ +# define DB_RECLEN 10 /* offset(short) record length */ +# define DB_HDRLEN 8 /* offset(short) header length */ + +/* FIELD definitions */ +# define DB_FLDMAX 128 /* max. no of fields */ +# define DB_FLDLEN 32 /* length of field description */ +# define DB_F_NAME 0 /* offset(char [11]) field name */ +# define DB_F_TYPE 11 /* offset(char) field type */ +# define DB_F_LEN 16 /* offset(char) field length */ +# define DB_F_DEC 17 /* offset(char) floating point */ + /* field length */ + +/* OTHER stuff */ +# define DB_RECMAX 4000 /* max. record length */ +typedef long word;