[go: up one dir, main page]

Menu

[897c37]: / lpvm / function.h  Maximize  Restore  History

Download this file

33 lines (25 with data), 907 Bytes

 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
#ifndef _LNODE_H
#define _LNODE_H
#include "stralloc.h"
//
// Function header defintion.
//
struct function_def
{
unsigned char num_var; // Number of local variables + arguments
unsigned char num_arg; // Number of arguments.
unsigned short type;
Shared * name;
unsigned char * block; // linearised code block
struct function_def * next;
unsigned short * linemap; // a mapper from instructions to line #
Shared ** patch; // used for list of strings while running
// & for patch list while building
unsigned short line; // line we start at
unsigned short num_lines; // number of lines
unsigned short size; // size of code block
unsigned short current_I;
unsigned short num_str;
};
typedef struct function_def Func;
#endif