emul_parse.cc File Reference

Back to the index.

Macros | Functions
emul_parse.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "diskimage.h"
#include "emul.h"
#include "machine.h"
#include "misc.h"
#include "net.h"

Go to the source code of this file.

Macros

#define is_word_char(ch)
 
#define MAX_WORD_LEN   200
 
#define EXPECT_WORD   1
 
#define EXPECT_LEFT_PARENTHESIS   2
 
#define EXPECT_RIGHT_PARENTHESIS   4
 
#define PARSESTATE_NONE   0
 
#define PARSESTATE_EMUL   1
 
#define PARSESTATE_NET   2
 
#define PARSESTATE_MACHINE   3
 
#define MAX_N_REMOTE   20
 
#define MAX_REMOTE_LEN   100
 
#define MAX_N_LOAD   15
 
#define MAX_LOAD_LEN   2000
 
#define MAX_N_DISK   10
 
#define MAX_DISK_LEN   2000
 
#define MAX_N_DEVICE   20
 
#define MAX_DEVICE_LEN   400
 
#define MAX_N_X11_DISP   5
 
#define MAX_X11_DISP_LEN   1000
 
#define WORD(w, var)
 

Functions

int parse_on_off (char *s)
 
void emul_parse_config (struct emul *e, char *fname)
 

Macro Definition Documentation

◆ EXPECT_LEFT_PARENTHESIS

#define EXPECT_LEFT_PARENTHESIS   2

Definition at line 52 of file emul_parse.cc.

◆ EXPECT_RIGHT_PARENTHESIS

#define EXPECT_RIGHT_PARENTHESIS   4

Definition at line 53 of file emul_parse.cc.

◆ EXPECT_WORD

#define EXPECT_WORD   1

Definition at line 51 of file emul_parse.cc.

◆ is_word_char

#define is_word_char (   ch)
Value:
( \
(ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || \
ch == '_' || ch == '$' || (ch >= '0' && ch <= '9') )

Definition at line 45 of file emul_parse.cc.

◆ MAX_DEVICE_LEN

#define MAX_DEVICE_LEN   400

Definition at line 238 of file emul_parse.cc.

◆ MAX_DISK_LEN

#define MAX_DISK_LEN   2000

Definition at line 234 of file emul_parse.cc.

◆ MAX_LOAD_LEN

#define MAX_LOAD_LEN   2000

Definition at line 230 of file emul_parse.cc.

◆ MAX_N_DEVICE

#define MAX_N_DEVICE   20

Definition at line 237 of file emul_parse.cc.

◆ MAX_N_DISK

#define MAX_N_DISK   10

Definition at line 233 of file emul_parse.cc.

◆ MAX_N_LOAD

#define MAX_N_LOAD   15

Definition at line 229 of file emul_parse.cc.

◆ MAX_N_REMOTE

#define MAX_N_REMOTE   20

Definition at line 204 of file emul_parse.cc.

◆ MAX_N_X11_DISP

#define MAX_N_X11_DISP   5

Definition at line 241 of file emul_parse.cc.

◆ MAX_REMOTE_LEN

#define MAX_REMOTE_LEN   100

Definition at line 205 of file emul_parse.cc.

◆ MAX_WORD_LEN

#define MAX_WORD_LEN   200

Definition at line 49 of file emul_parse.cc.

◆ MAX_X11_DISP_LEN

#define MAX_X11_DISP_LEN   1000

Definition at line 242 of file emul_parse.cc.

◆ PARSESTATE_EMUL

#define PARSESTATE_EMUL   1

Definition at line 197 of file emul_parse.cc.

◆ PARSESTATE_MACHINE

#define PARSESTATE_MACHINE   3

Definition at line 199 of file emul_parse.cc.

◆ PARSESTATE_NET

#define PARSESTATE_NET   2

Definition at line 198 of file emul_parse.cc.

◆ PARSESTATE_NONE

#define PARSESTATE_NONE   0

Definition at line 196 of file emul_parse.cc.

◆ WORD

#define WORD (   w,
  var 
)
Value:
{ \
if (strcmp(word, w) == 0) { \
read_one_word(f, word, maxbuflen, \
read_one_word(f, var, sizeof(var), \
line, EXPECT_WORD); \
read_one_word(f, word, maxbuflen, \
return; \
} \
}

Definition at line 246 of file emul_parse.cc.

Function Documentation

◆ emul_parse_config()

void emul_parse_config ( struct emul e,
char *  fname 
)

Definition at line 699 of file emul_parse.cc.

References f(), MAX_WORD_LEN, and PARSESTATE_EMUL.

Referenced by emul_create_from_configfile().

◆ parse_on_off()

int parse_on_off ( char *  s)

Definition at line 268 of file emul_parse.cc.

f
void f(int s, int func, int only_name)
Definition: generate_arm_r.c:45
EXPECT_WORD
#define EXPECT_WORD
Definition: emul_parse.cc:50
EXPECT_LEFT_PARENTHESIS
#define EXPECT_LEFT_PARENTHESIS
Definition: emul_parse.cc:51
EXPECT_RIGHT_PARENTHESIS
#define EXPECT_RIGHT_PARENTHESIS
Definition: emul_parse.cc:52

Generated on Tue Aug 25 2020 19:25:06 for GXemul by doxygen 1.8.18