mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
f029687ff0
good start.
16 lines
453 B
C
16 lines
453 B
C
typedef struct switch_block_s {
|
|
expr_t *test;
|
|
struct hashtab_s *labels;
|
|
} switch_block_t;
|
|
|
|
typedef struct case_label_s {
|
|
struct expr_s *label;
|
|
struct expr_s *value;
|
|
} case_label_t;
|
|
|
|
struct expr_s *case_label_expr (switch_block_t *switch_block,
|
|
struct expr_s *value);
|
|
switch_block_t *new_switch_block (void);
|
|
struct expr_s *switch_expr (switch_block_t *switch_block,
|
|
struct expr_s *break_label,
|
|
struct expr_s *statements);
|