xref: /csrg-svn/usr.bin/pascal/pdx/runtime.h (revision 33243)
122575Sdist /*
222575Sdist  * Copyright (c) 1980 Regents of the University of California.
322575Sdist  * All rights reserved.  The Berkeley software License Agreement
422575Sdist  * specifies the terms and conditions for redistribution.
522575Sdist  *
6*33243Sbostic  *	@(#)runtime.h	5.2 (Berkeley) 01/03/88
722575Sdist  */
85456Slinton 
95456Slinton /*
105456Slinton  * Definitions for the runtime environment.
115456Slinton  *
125456Slinton  * In general, runtime organization is language, machine, and
135456Slinton  * even compiler dependent.
145456Slinton  */
155456Slinton 
165456Slinton BOOLEAN isactive();		/* tell if a symbol is currently active */
175456Slinton ADDRESS entry_addr();		/* entry address of current proc/func */
185456Slinton ADDRESS entry_point();		/* point where environment is setup */
195456Slinton ADDRESS return_addr();		/* return address of current proc/func */
205456Slinton ADDRESS caller_addr();		/* entry of caller of current proc/func */
21*33243Sbostic int where();			/* print out currently active procedures */
22*33243Sbostic int dump();			/* dump the world */
23*33243Sbostic int callproc();			/* call a procedure */
24*33243Sbostic int procreturn();		/* return from a "call"-ed procedure */
255456Slinton ADDRESS address();		/* address of a variable */
265456Slinton ADDRESS firstline();		/* address of first line in a procedure */
27*33243Sbostic int findbeginning();		/* find address of beginning of a procedure */
28*33243Sbostic int runtofirst();		/* step to first line in current procedure */
295456Slinton ADDRESS lastaddr();		/* address of last line in program */
305456Slinton ADDRESS fparamaddr();		/* entry address of a function parameter */
31