xref: /csrg-svn/usr.bin/pascal/pdx/runtime.h (revision 22575)
1*22575Sdist /*
2*22575Sdist  * Copyright (c) 1980 Regents of the University of California.
3*22575Sdist  * All rights reserved.  The Berkeley software License Agreement
4*22575Sdist  * specifies the terms and conditions for redistribution.
5*22575Sdist  *
6*22575Sdist  *	@(#)runtime.h	5.1 (Berkeley) 06/06/85
7*22575Sdist  */
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 */
215456Slinton where();			/* print out currently active procedures */
225456Slinton dump();				/* dump the world */
235456Slinton callproc();			/* call a procedure */
245456Slinton procreturn();			/* return from a "call"-ed procedure */
255456Slinton ADDRESS address();		/* address of a variable */
265456Slinton ADDRESS firstline();		/* address of first line in a procedure */
275456Slinton findbeginning();		/* find address of beginning of a procedure */
285456Slinton 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