proc.h

来自「< 虚拟机设计与实现> 的source code, linux版本」· C头文件 代码 · 共 37 行

H
37
字号
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+                                                                   +
+ proc.h - procedure meta data repository                         +
+                                                                   +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

#ifndef _PROC_H
#define _PROC_H

#include "linux.h"
#include "sframe.h"
#include "label.h"

struct Procedure
{
	U8 text;		/* index into StrTbl of where identifier begins */
	U8 address;		/* address of procedure */
	U4 line;		/* source code line containing declaration */

	struct StackFrame ret;
	U1 nRet;		/* 0 = void return, 1 = returns a value*/
	
	struct StackFrame *arg;
	U1 nArg;
	U1 iArg;
	
	struct StackFrame *local;
	U1 nLocal;
	U1 iLocal;
	
	struct Label *label;
	U2 nLabel;
	U2 iLabel;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?