*** empty log message ***

This commit is contained in:
em
1984-11-29 14:22:02 +00:00
parent 0c0c3b7892
commit ae1e81adb1
36 changed files with 1740 additions and 0 deletions

29
h/bc_io.h Normal file
View 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
View 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