-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.h
36 lines (25 loc) · 879 Bytes
/
mix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* MIX simulator, copyright 1994 by Darius Bacon */
#ifndef MIX_H
#define MIX_H
#include <assert.h>
#include <stdarg.h>
/* Some standard stuff all or most modules have in common. */
typedef enum { false, true } Flag;
/* Dump helpful debugging info if true: */
extern Flag VERBOSE;
extern char current_line[257];
#define not_reached false
#define NOT_REACHED assert(not_reached)
void install_error_handler(void (*handler)(const char *, va_list));
void warn(const char *message, ...);
void error(const char *message, ...);
void fatal_error(const char *message, ...);
#define max_identifier_length 32
extern int memory_size;
/* Device types: */
enum DeviceType { drum, disk, tape, card_in, card_out, printer, console };
extern enum DeviceType current_device_type;
#define LAST_DEVICE_TYPE (console)
#include "cell.h"
#define IGNORE_VALUE(x) (void)((x)+1)
#endif