*** empty log message ***
This commit is contained in:
29
h/bc_io.h
Normal file
29
h/bc_io.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <stdio.h>
|
||||
|
||||
/* $Header$ */
|
||||
|
||||
/* BASIC file io definitions */
|
||||
|
||||
extern FILE *_chanrd;
|
||||
extern FILE *_chanwr;
|
||||
extern int _chann;
|
||||
/* BASIC file descriptor table */
|
||||
/* Channel assignment:
|
||||
-1 terminal IO
|
||||
0 data file
|
||||
1-15 user files
|
||||
*/
|
||||
|
||||
/* FILE MODES:*/
|
||||
#define IMODE 1
|
||||
#define OMODE 2
|
||||
#define RMODE 3
|
||||
|
||||
typedef struct {
|
||||
char *fname;
|
||||
FILE *fd;
|
||||
int pos;
|
||||
int mode;
|
||||
int reclength;
|
||||
}Filedesc;
|
||||
extern Filedesc _fdtable[16];
|
||||
15
h/bc_string.h
Normal file
15
h/bc_string.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
|
||||
/* $Header$ */
|
||||
|
||||
/* Strings are allocated in a fixed string descriptor table
|
||||
** This mechanism is used to avoid string copying as much as possible
|
||||
*/
|
||||
|
||||
typedef struct{
|
||||
char *strval;
|
||||
int strcount;
|
||||
int strlength;
|
||||
} String;
|
||||
|
||||
#define MAXSTRING 1024
|
||||
Reference in New Issue
Block a user