{
INT rn1, rn2; /* record numbers for mem1 & mem2 */
MEMBER_ENTRY FAR *mt1, FAR *mt2;
- register MEMBER_ENTRY FAR *mt;
+ MEMBER_ENTRY FAR *mt;
int mem, memtot;
int cmp; /* fldcmp result */
- register int maxflds;
- register SORT_ENTRY FAR *srt1_ptr, FAR *srt2_ptr;
+ int maxflds;
+ SORT_ENTRY FAR *srt1_ptr, FAR *srt2_ptr;
FIELD_ENTRY FAR *fld_ptr;
/* extract record numbers from record header */
initdbt(dbnames )
CONST char FAR *dbnames;
{
- register int dbt_lc; /* loop control */
+ int dbt_lc; /* loop control */
char dbfile [DtSrFILENMLEN];
char FAR *ptr;
#ifndef ONE_DB
CONST char FAR *cp;
- register int i;
+ int i;
#endif
#ifndef ONE_DB
#ifndef SINGLE_USER
LM_TREND trend_pkt;
#ifndef GENERAL
- register int tn; /* transaction number */
- register int tc; /* transaction count */
+ int tn; /* transaction number */
+ int tc; /* transaction count */
#endif
#endif
{
LM_DBOPEN_P Send_pkt;
LR_DBOPEN_P Recv_pkt;
- register int ft_lc; /* loop control */
+ int ft_lc; /* loop control */
LM_TREND trend_pkt;
int send_size, recv_size, recvd_sz;
struct stat stbuf;
LM_FILEID *fi_ptr;
- register FILE_ENTRY FAR *file_ptr;
+ FILE_ENTRY FAR *file_ptr;
FILE_NO FAR *fref_ptr;
INT FAR *rcv_fref_ptr;
static int bld_lock_tables()
{
#ifndef SINGLE_USER
- register int fd_lc; /* loop control */
- register int st_lc; /* loop control */
+ int fd_lc; /* loop control */
+ int st_lc; /* loop control */
INT_P File_used;
#define file_used File_used.ptr
int rec;
int mem, memtot;
- register FILE_NO i;
+ FILE_NO i;
FILE_NO fl_cnt;
struct lock_descr FAR *ld_ptr;
RECORD_ENTRY FAR *rec_ptr;
FIELD_ENTRY FAR *fld_ptr;
SET_ENTRY FAR *set_ptr;
MEMBER_ENTRY FAR *mem_ptr;
- register int FAR *fu_ptr;
+ int FAR *fu_ptr;
FILE_NO FAR *fl_ptr;
unsigned new_size;
unsigned old_size;
d_close(TASK_ONLY)
TASK_DECL
{
- register int i;
+ int i;
DB_ENTER(NO_DB_ID TASK_ID LOCK_SET(LOCK_ALL));
termses()
{
LM_DBCLOSE_P Send_pkt;
- register int ft_lc; /* loop control */
+ int ft_lc; /* loop control */
int send_size;
- register FILE_NO FAR *fref_ptr;
- register INT FAR *snd_fref_ptr;
+ FILE_NO FAR *fref_ptr;
+ INT FAR *snd_fref_ptr;
if ( session_active ) {
send_size = sizeof(LM_DBCLOSE) + (size_ft-1)*sizeof(INT);
void termfree()
{
#ifndef SINGLE_USER
- register int i;
- register struct lock_descr FAR *ld_ptr;
+ int i;
+ struct lock_descr FAR *ld_ptr;
#endif
/* free all allocated memory */
#ifdef SINGLE_USER
return (db_status = S_OKAY);
#else
- register int item;
- register int i;
- register LOCK_REQUEST FAR *lrpkt_ptr;
+ int item;
+ int i;
+ LOCK_REQUEST FAR *lrpkt_ptr;
struct lock_descr FAR *ld_ptr;
DB_ENTER(DB_ID TASK_ID LOCK_SET(LOCK_IO));
struct lock_descr FAR *ld_ptr;
char type;
{
- register int fl_lc; /* loop control */
+ int fl_lc; /* loop control */
int fno;
- register int i;
- register LM_LOCKREQ FAR *lockreq_ptr;
+ int i;
+ LM_LOCKREQ FAR *lockreq_ptr;
FILE_NO FAR *fl_ptr, fref;
db_status = S_OKAY;
LOCK_REQUEST FAR *lrpkt;
{
#ifndef SINGLE_USER
- register int fl_lc; /* loop control */
+ int fl_lc; /* loop control */
struct lock_descr FAR *ld_ptr;
FILE_NO fno;
- register int item;
+ int item;
int l;
LOCK_REQUEST FAR *lrpkt_ptr;
int FAR *appl_ptr, FAR *excl_ptr;
static keep_locks( ld_ptr )
struct lock_descr FAR *ld_ptr; /* Lock descriptor */
{
- register int fl_lc; /* loop control */
- register FILE_NO FAR *fl_ptr;
+ int fl_lc; /* loop control */
+ FILE_NO FAR *fl_ptr;
/* Mark lock as kept */
ld_ptr->fl_kept = TRUE;
static int free_files(ld_ptr)
struct lock_descr FAR *ld_ptr;
{
- register int fl_lc; /* loop control */
+ int fl_lc; /* loop control */
FILE_NO fno;
LM_LOCKREQ FAR *lockreq_ptr;
int FAR *appl_ptr;
FILE_NO fref;
- register FILE_NO FAR *fl_ptr;
+ FILE_NO FAR *fl_ptr;
/* fill free packet */
lock_pkt->nfiles = free_pkt->nfiles = 0;
#ifdef SINGLE_USER
return (db_status = S_OKAY);
#else
- register int i;
- register FILE_NO FAR *fref_ptr;
- register int FAR *appl_ptr;
+ int i;
+ FILE_NO FAR *fref_ptr;
+ int FAR *appl_ptr;
DB_ENTER(NO_DB_ID TASK_ID LOCK_SET(LOCK_IO));
static void reset_locks()
{
int beg, end;
- register int i;
- register struct lock_descr FAR *ld_ptr;
+ int i;
+ struct lock_descr FAR *ld_ptr;
/* reset record lock descriptors */
beg = 0;
TASK_DECL
{
#ifndef SINGLE_USER
- register int ft_lc; /* loop control */
+ int ft_lc; /* loop control */
LM_TRCOMMIT trcom_pkt;
LM_TREND trend_pkt;
LM_LOCKREQ FAR *lockreq_ptr;
- register FILE_NO FAR *fref_ptr;
- register int FAR *appl_ptr, FAR *keptl_ptr, FAR *excl_ptr;
+ FILE_NO FAR *fref_ptr;
+ int FAR *appl_ptr, FAR *keptl_ptr, FAR *excl_ptr;
#endif
DB_ENTER(NO_DB_ID TASK_ID LOCK_SET(LOCK_IO));
dio_clear(); /*[353] clear cache */
RETURN (db_status = S_OKAY);
#else
- register int i;
- register int FAR *keptl_ptr;
- register struct lock_descr FAR *ld_ptr;
+ int i;
+ int FAR *keptl_ptr;
+ struct lock_descr FAR *ld_ptr;
DB_ENTER(NO_DB_ID TASK_ID LOCK_SET(LOCK_IO));
TASK_DECL
DBN_DECL
{
- register int st_lc, mt_lc; /* loop control */
+ int st_lc, mt_lc; /* loop control */
INT i, rt;
char FAR *ptr;
SET_ENTRY FAR *set_ptr;
CONST char FAR *dbname;
TASK_DECL
{
- register int ft_lc; /* loop control */
- register FILE_ENTRY FAR *file_ptr;
+ int ft_lc; /* loop control */
+ FILE_ENTRY FAR *file_ptr;
#ifndef NO_TRANS
int ovfl_save;
#endif
FILE_NO fno;
{
FILE_ENTRY FAR *file_ptr, FAR *lru_file_ptr;
- register int FAR *uf_ptr;
+ int FAR *uf_ptr;
file_ptr = &file_table[fno];
if ( file_ptr->ft_status == CLOSED ) {
PAGE_ENTRY FAR * pg_ptr;
int pgsize;
{
- register int pg_no;
+ int pg_no;
#ifdef DEBUG_DIO
if (debugging_dio_init) {
*/
void dio_free()
{
- register int pgt_lc; /* loop control */
- register PAGE_ENTRY FAR *pg_ptr;
+ int pgt_lc; /* loop control */
+ PAGE_ENTRY FAR *pg_ptr;
#ifdef MULTI_TASK
if ( task_count > 1 ) {
*/
int
dio_clrfile(fno )
-register FILE_NO fno;
+FILE_NO fno;
{
return( clear_cache(fno, fno+1) );
}
{
FILE_NO s_file; /* start file to be cleared */
FILE_NO e_file; /* end file (+1) to be cleared */
- register int i;
+ int i;
LOOKUP_ENTRY FAR *lu_ptr, FAR *lu2_ptr;
int pg_slot;
PAGE_ENTRY FAR *pg_ptr;
*/
int dio_flush()
{
- register int pgt_lc; /* loop control */
+ int pgt_lc; /* loop control */
#ifndef NO_TRANS
int fno;
#endif
int pgtab_sz; /* = db_pgtab_sz or ix_pgtab_sz */
long cmp;
int cnt;
- register int lu_slot, l, u;
+ int lu_slot, l, u;
LOOKUP_ENTRY FAR *lu_ptr, FAR *replu_ptr;
PAGE_ENTRY FAR *pg_ptr;
int *lru_ptr;
*/
static int dio_pzinit()
{
- register FILE_NO i;
+ FILE_NO i;
PGZERO FAR *pgzero_ptr;
#ifdef DEBUG_DIO
*/
static int dio_pzflush()
{
- register FILE_NO i;
+ FILE_NO i;
int desc;
- register PGZERO FAR *pgzero_ptr;
- register FILE_ENTRY FAR *file_ptr;
+ PGZERO FAR *pgzero_ptr;
+ FILE_ENTRY FAR *file_ptr;
LONG align_LONG;
char *cptr;
int j;
*/
void dio_pzclr()
{
- register FILE_NO i;
- register PGZERO FAR *pgzero_ptr;
+ FILE_NO i;
+ PGZERO FAR *pgzero_ptr;
for (i = 0, pgzero_ptr = pgzero; i < size_ft; i++, pgzero_ptr++) {
if (pgzero_ptr->pz_modified) {
DBN_DECL
{
int rectype, nset, cset;
- register int set, mem;
+ int set, mem;
DB_ADDR dba, odba, mdba;
DB_ADDR FAR *co_ptr, FAR *cm_ptr;
- register SET_ENTRY FAR *set_ptr;
- register MEMBER_ENTRY FAR *mem_ptr;
+ SET_ENTRY FAR *set_ptr;
+ MEMBER_ENTRY FAR *mem_ptr;
int memtot;
DB_ENTER(DB_ID TASK_ID LOCK_SET(SET_IO));
int
inittab()
{
- register int dbt_lc; /* loop control */
- register INT i, j;
+ int dbt_lc; /* loop control */
+ INT i, j;
int key_offset = 0, key_count;
char dbfile[DtSrFILENMLEN], dbd_ver[DBD_COMPAT_LEN + 1];
char dbname[FILENMLEN]; /* Temporary working space */
*/
static int initcurr()
{
- register int dbt_lc; /* loop control */
- register int rec, i;
+ int dbt_lc; /* loop control */
+ int rec, i;
RECORD_ENTRY FAR *rec_ptr;
SET_ENTRY FAR *set_ptr;
DB_ADDR FAR *co_ptr;
int
key_open()
{
- register int fd_lc; /* loop control */
+ int fd_lc; /* loop control */
long t; /* total keys thru level l */
int l; /* level number */
- register int i; /* field subscript */
- register FIELD_ENTRY FAR *fld_ptr;
- register KEY_INFO FAR *ki_ptr;
+ int i; /* field subscript */
+ FIELD_ENTRY FAR *fld_ptr;
+ KEY_INFO FAR *ki_ptr;
FILE_ENTRY FAR *file_ptr;
/* child ptr key number */
*/
void key_close()
{
- register int k;
+ int k;
KEY_INFO FAR *ki_ptr;
if ( key_info ) {
key_reset(fno )
FILE_NO fno;
{
- register int i;
- register KEY_INFO FAR *ki_ptr;
+ int i;
+ KEY_INFO FAR *ki_ptr;
for (i = 0, ki_ptr = key_info; i < no_of_keys; ++i, ++ki_ptr) {
if (((fno == size_ft) || (ki_ptr->keyfile == fno)) &&
int *slot_offset; /* slot position offset */
F_ADDR *child; /* child ptr of located key */
{
- register int cmp, i, l, u, slot_pos;
+ int cmp, i, l, u, slot_pos;
char FAR *node_slot_ptr;
/* perform binary search on node */
> 0 if key_val > slot
= 0 if key_val == slot
*/
- register int cmp;
+ int cmp;
if (((cmp = INTcmp((char FAR *)&prefix, (char FAR *)&slot->keyno)) == 0) &&
((cmp = fldcmp(cfld_ptr, key_val, slot->data)) == 0) &&
NODE FAR *node; /* pointer to node contents in cache */
int cmp; /* keycmp result */
int match_lvl; /* lowest level containing matched key */
- register int lvl; /* node_path level variable */
- register int slot; /* slot position in node */
- register NODE_PATH FAR *np_ptr;
- register char FAR *node_slot_ptr;
+ int lvl; /* node_path level variable */
+ int slot; /* slot position in node */
+ NODE_PATH FAR *np_ptr;
+ char FAR *node_slot_ptr;
if ( fcn == KEYFIND ) {
curkey->lstat = KEYINIT;
NODE FAR *node;
NODE_PATH FAR *np_ptr;
int slot_pos;
- register char FAR *node_slot_ptr;
+ char FAR *node_slot_ptr;
MEM_LOCK(&curkey->Node_path);
np_ptr = &curkey->node_path[curkey->level];
{
F_ADDR l_pg, r_pg;
NODE FAR *l_node, FAR *r_node;
- register int slot_pos;
+ int slot_pos;
char FAR *node_slot_ptr;
/* allocate two new nodes */
int slot_pos;
int n;
{
- register char FAR *dst, FAR *src;
- register int amt, w, nw;
+ char FAR *dst, FAR *src;
+ int amt, w, nw;
nw = NODE_WIDTH(node);
w = n*slot_len;
int slot_pos;
int n;
{
- register char FAR *dst, FAR *src;
- register int w, amt;
+ char FAR *dst, FAR *src;
+ int w, amt;
node->used_slots -= n;
char FAR *key_val;
TASK_DECL
{
- register int kt_lc; /* loop control */
+ int kt_lc; /* loop control */
#ifndef NO_FLOAT
float fv;
double dv;
char FAR *fptr;
char FAR *kptr;
FIELD_ENTRY FAR *fld_ptr;
- register KEY_ENTRY FAR *key_ptr;
+ KEY_ENTRY FAR *key_ptr;
DB_ENTER(NO_DB_ID TASK_ID LOCK_SET(RECORD_IO));
char FAR *key; /* ptr to array to recv constructed key */
int cflag; /* TRUE to compliment compound descending keys */
{
- register int kt_lc; /* loop control */
+ int kt_lc; /* loop control */
#ifndef NO_FLOAT
float fv;
double dv;
#endif
char FAR *fptr;
FIELD_ENTRY FAR *fld_ptr, FAR *kfld_ptr;
- register KEY_ENTRY FAR *key_ptr;
+ KEY_ENTRY FAR *key_ptr;
/* clear key area */
fld_ptr = &field_table[fld];
/* Complement and copy bytes
*/
void key_cmpcpy(s1, s2, n)
-register char FAR *s1;
-register char FAR *s2;
-register INT n;
+char FAR *s1;
+char FAR *s2;
+INT n;
{
while ( n-- ) {
*s1++ = ~(*s2++);
CONST char FAR *fldval;
char FAR *ckey;
{
- register int kt_lc; /* loop control */
+ int kt_lc; /* loop control */
#ifndef NO_FLOAT
float fv;
double dv;
char FAR *fptr;
char FAR *tptr;
FIELD_ENTRY FAR *kfld_ptr;
- register KEY_ENTRY FAR *key_ptr;
+ KEY_ENTRY FAR *key_ptr;
/* complement descending compound key values */
for (kt_lc = size_kt - fld_ptr->fd_ptr,
*/
int
nset_check(nset, set, set_ptr )
-register int nset;
+int nset;
int *set;
SET_ENTRY FAR * FAR *set_ptr;
{
/* Internal record number check
*/
static int rec_okay(nrec, rec, rec_ptr)
-register int nrec;
+int nrec;
int *rec;
RECORD_ENTRY FAR * FAR *rec_ptr;
{
> 0 if f1 > f2
*/
{
- register int kt_lc; /* loop control */
+ int kt_lc; /* loop control */
int i, k, elt, result, len, cur_len, sub_len, entries;
#ifdef DS
int ui1, ui2;
#endif
FILE_NO fno;
F_ADDR rno;
- register int fld;
+ int fld;
RECORD_ENTRY FAR *rec_ptr;
- register FIELD_ENTRY FAR *fld_ptr;
+ FIELD_ENTRY FAR *fld_ptr;
if ( dio_read( db_addr, (char FAR * FAR *)&rec, PGHOLD) != S_OKAY )
return( db_status );
char FAR *rec; /* pointer to record */
char FAR *data; /* pointer to data area to contain field contents */
{
- register int kt_lc; /* loop control */
+ int kt_lc; /* loop control */
INT rn;
- register FIELD_ENTRY FAR *kfld_ptr;
- register KEY_ENTRY FAR *key_ptr;
+ FIELD_ENTRY FAR *kfld_ptr;
+ KEY_ENTRY FAR *key_ptr;
bytecpy(&rn, rec, sizeof(INT));
if ( rn < 0 )
char FAR *mem_addr; /* pointer to member pointer */
{
INT rt;
- register int mem, memtot;
+ int mem, memtot;
SET_ENTRY FAR *set_ptr;
- register MEMBER_ENTRY FAR *mem_ptr;
+ MEMBER_ENTRY FAR *mem_ptr;
/* search member list of set for record */
set_ptr = &set_table[set];
DB_ADDR mdba, odba, dba;
int set, sn;
char memp[MEMPSIZE];
- register char FAR *fptr;
- register CONST char FAR *tfptr;
- register int s, i, strfld;
- register FIELD_ENTRY FAR *sfld_ptr;
- register SORT_ENTRY FAR *srt_ptr;
+ char FAR *fptr;
+ CONST char FAR *tfptr;
+ int s, i, strfld;
+ FIELD_ENTRY FAR *sfld_ptr;
+ SORT_ENTRY FAR *srt_ptr;
DB_ADDR FAR *co_ptr, FAR *cm_ptr;
db_status = S_OKAY;
char FAR *mem_addr; /* pointer to member pointer */
{
INT rt;
- register int mem, memtot;
+ int mem, memtot;
SET_ENTRY FAR *set_ptr;
- register MEMBER_ENTRY FAR *mem_ptr;
+ MEMBER_ENTRY FAR *mem_ptr;
/* search member list of set for record */
set_ptr = &set_table[set];
char ckey[256]; /* current compound key data */
char nkey[256]; /* new compound key data */
int stat;
- register int fld;
+ int fld;
RECORD_ENTRY FAR *rec_ptr;
- register FIELD_ENTRY FAR *fld_ptr;
+ FIELD_ENTRY FAR *fld_ptr;
DB_ENTER(DB_ID TASK_ID LOCK_SET(SET_IO));
int
renfiles()
{
- register int dbt_lc; /* loop control */
+ int dbt_lc; /* loop control */
REN_ENTRY_P FAR *rp;
#ifndef ONE_DB
DB_ENTRY FAR *db_ptr;
DBN_DECL /* database number */
{
int cmtype; /* current member type */
- register int mem;
+ int mem;
SET_ENTRY FAR *set_ptr;
- register MEMBER_ENTRY FAR *mem_ptr;
+ MEMBER_ENTRY FAR *mem_ptr;
int memtot;
DB_ENTER(DB_ID TASK_ID LOCK_SET(SET_IO));
TASK_DECL
DBN_DECL /* database number */
{
- register int mem;
+ int mem;
SET_ENTRY FAR *setm_ptr, FAR *seto_ptr;
- register MEMBER_ENTRY FAR *mem_ptr;
+ MEMBER_ENTRY FAR *mem_ptr;
int memtot;
DB_ENTER(DB_ID TASK_ID LOCK_SET(SET_IO));
DBN_DECL /* database number */
{
int crtype; /* current record type */
- register int mem;
+ int mem;
SET_ENTRY FAR *set_ptr;
- register MEMBER_ENTRY FAR *mem_ptr;
+ MEMBER_ENTRY FAR *mem_ptr;
int memtot;
DB_ENTER(DB_ID TASK_ID LOCK_SET(SET_IO));