Add RT11 macro libraries.

Hopefully they won't open as RSX ones, because then they still won't work.
Can't test this now.
This commit is contained in:
Olaf Seibert
2017-04-27 20:29:04 +02:00
parent 96cfd4a152
commit e4ec481d3d
5 changed files with 57 additions and 16 deletions

14
mlb.h
View File

@@ -46,13 +46,24 @@ typedef struct mlbent {
int length;
} MLBENT;
struct mlb_vtbl;
typedef struct mlb {
struct mlb_vtbl *vtbl;
char *name;
FILE *fp;
MLBENT *directory;
int nentries;
int is_objlib; /* is really an object library */
} MLB;
typedef struct mlb_vtbl {
MLB *(*mlb_open)(char *name, int allow_object_library);
BUFFER *(*mlb_entry)(MLB *mlb, char *name);
void (*mlb_extract)(MLB *mlb);
void (*mlb_close)(MLB *mlb);
} MLB_VTBL;
extern MLB *mlb_open(
char *name,
int allow_object_library);
@@ -64,4 +75,7 @@ extern void mlb_close(
extern void mlb_extract(
MLB *mlb);
extern struct mlb_vtbl mlb_rsx_vtbl;
extern struct mlb_vtbl mlb_rt11_vtbl;
#endif /* MLB_H */