-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathstack.h
More file actions
37 lines (31 loc) · 1.36 KB
/
Copy pathstack.h
File metadata and controls
37 lines (31 loc) · 1.36 KB
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
#ifndef _STACK_H
#define _STACK_H
int get_label_length(char *l, int utf8);
int get_utf8_string_length(char *s);
int stack_calculate_free_allocations(void);
int stack_calculate(char *in, int *value, int *bytes_parsed, unsigned char from_substitutor);
int stack_create_value_stack(double value);
int stack_create_label_stack(char *label);
int stack_create_stack_stack(int stack_id);
int resolve_stack(struct stack_item s[], int stack_item_count);
int compute_stack(struct stack *sta, int stack_item_count, double *result);
int compress_stack_calculation_ids(void);
int calculation_stack_insert(struct stack *s);
void init_stack_struct(struct stack *s);
void free_stack_calculations(void);
void delete_stack_calculation_struct(struct stack *s);
struct stack *find_stack_calculation(int id, int print_error_message);
#if defined(MC68000)
int stack_create_stack_caddr_offset(int type, int data, char *label);
int stack_create_stack_caddr_offset_plus_n(int type, int data, char *label, int n);
int stack_add_offset_plus_n_to_stack(int id, int n);
int does_stack_contain_one_label(int id);
#endif
/* TODO: move these to their own file */
int data_stream_parser_free(void);
int data_stream_parser_parse(void);
int data_stream_parser_get_bank(void);
int data_stream_parser_get_base(void);
struct section_def *data_stream_parser_get_section(void);
int data_stream_parser_get_address(void);
#endif