pcalloc returns NULL on failure, not -1; fix for ANSI C
[unix-history] / usr / src / usr.bin / pascal / pdx / machine.h
CommitLineData
3cd5310a
DF
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 *
35bf0218 6 * @(#)machine.h 5.2 (Berkeley) %G%
3cd5310a 7 */
2eef2279
ML
8
9/*
10 * Definitions for the machine module.
11 *
12 * This module has the low level machine interface. This consists
13 * mostly of dealing with machine instructions and also setting
14 * and unsetting breakpoints.
15 */
16
17ADDRESS pc; /* current program counter */
18LINENO curline; /* line number associated with pc */
19SYM *curfunc; /* pointer to active function symbol */
2eef2279
ML
20
21setbp(); /* set a breakpoint */
22unsetbp(); /* unset a breakpoint */
23BOOLEAN isbperr(); /* test if a breakpoint has occurred */
24printerror(); /* print out an execution error message */
25ADDRESS nextaddr(); /* address of next line to be executed */
514bd573 26BOOLEAN isendofproc(); /* test if address is at end of procedure */
2eef2279
ML
27printinst(), printninst(); /* print the instruction at a given address */
28printdata(), printndata(); /* print the contents of a given data address */