FORM  4.2
Macros | Functions | Variables
minos.c File Reference
#include "form3.h"
#include "minos.h"

Go to the source code of this file.

Macros

#define CFD(y, s, type, x, j)
 
#define CTD(y, s, type, x, j)
 

Functions

int minosread (FILE *f, char *buffer, MLONG size)
 
int minoswrite (FILE *f, char *buffer, MLONG size)
 
char * str_dup (char *str)
 
void convertblock (INDEXBLOCK *in, INDEXBLOCK *out, int mode)
 
void convertnamesblock (NAMESBLOCK *in, NAMESBLOCK *out, int mode)
 
void convertiniinfo (INIINFO *in, INIINFO *out, int mode)
 
FILE * LocateBase (char **name, char **newname)
 
int ReadIndex (DBASE *d)
 
int WriteIndexBlock (DBASE *d, MLONG num)
 
int WriteNamesBlock (DBASE *d, MLONG num)
 
int WriteIndex (DBASE *d)
 
int WriteIniInfo (DBASE *d)
 
int ReadIniInfo (DBASE *d)
 
DBASEGetDbase (char *filename)
 
DBASENewDbase (char *name, MLONG number)
 
void FreeTableBase (DBASE *d)
 
int ComposeTableNames (DBASE *d)
 
DBASEOpenDbase (char *filename)
 
MLONG AddTableName (DBASE *d, char *name, TABLES T)
 
MLONG GetTableName (DBASE *d, char *name)
 
int PutTableNames (DBASE *d)
 
int AddToIndex (DBASE *d, MLONG number)
 
MLONG AddObject (DBASE *d, MLONG tablenumber, char *arguments, char *rhs)
 
MLONG FindTableNumber (DBASE *d, char *name)
 
int WriteObject (DBASE *d, MLONG tablenumber, char *arguments, char *rhs, MLONG number)
 
char * ReadObject (DBASE *d, MLONG tablenumber, char *arguments)
 
char * ReadijObject (DBASE *d, MLONG i, MLONG j, char *arguments)
 
int ExistsObject (DBASE *d, MLONG tablenumber, char *arguments)
 
int DeleteObject (DBASE *d, MLONG tablenumber, char *arguments)
 

Variables

int withoutflush = 0
 

Detailed Description

These are the low level functions for the database part of the tablebases. These routines have been copied (and then adapted) from the minos database program. This file goes together with minos.h

Definition in file minos.c.

Macro Definition Documentation

◆ CFD

#define CFD (   y,
  s,
  type,
  x,
 
)
Value:
for(x=0,j=0;j<((int)sizeof(type));j++) \
x=(x<<8)+((*s++)&0x00FF); y=x;

Definition at line 55 of file minos.c.

◆ CTD

#define CTD (   y,
  s,
  type,
  x,
 
)
Value:
x=y;for(j=sizeof(type)-1;j>=0;j--){s[j]=x&0xFF; \
x>>=8;} s += sizeof(type);

Definition at line 57 of file minos.c.