xref: /original-bsd/usr.bin/pascal/pdx/runtime.h (revision a4d3ae46)
1 /*
2  * Copyright (c) 1980 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  *
6  *	@(#)runtime.h	5.2 (Berkeley) 01/03/88
7  */
8 
9 /*
10  * Definitions for the runtime environment.
11  *
12  * In general, runtime organization is language, machine, and
13  * even compiler dependent.
14  */
15 
16 BOOLEAN isactive();		/* tell if a symbol is currently active */
17 ADDRESS entry_addr();		/* entry address of current proc/func */
18 ADDRESS entry_point();		/* point where environment is setup */
19 ADDRESS return_addr();		/* return address of current proc/func */
20 ADDRESS caller_addr();		/* entry of caller of current proc/func */
21 int where();			/* print out currently active procedures */
22 int dump();			/* dump the world */
23 int callproc();			/* call a procedure */
24 int procreturn();		/* return from a "call"-ed procedure */
25 ADDRESS address();		/* address of a variable */
26 ADDRESS firstline();		/* address of first line in a procedure */
27 int findbeginning();		/* find address of beginning of a procedure */
28 int runtofirst();		/* step to first line in current procedure */
29 ADDRESS lastaddr();		/* address of last line in program */
30 ADDRESS fparamaddr();		/* entry address of a function parameter */
31