1 \chapter{Error messages given}
3 The {\tt pphs} program generates error messages to {\tt stderr},
4 with error codes. Normal operation of the program will be
5 indicated by error code {\tt 0}.
7 \section{\tt Call with one file name}
9 Error code {\tt 1} is produced when {\tt pphs} is not called with
10 exactly one filename. Either no filename was given, or too many
11 filenames were given. Call {\tt pphs} again with one filename.
13 \section{\tt File could not be opened}
15 Error code {\tt 2} is produced when the filename given when {\tt pphs}
16 was called could not be opened. This could be because it did not exist,
17 or was read-protected. Call {\tt pphs} again with a filename that exists
20 \section{\tt Stack is too big}
22 Error code {\tt 3} is produced when the program has used up too much of
23 the computer's memory. It is not possible to run {\tt pphs} on this file
24 without getting more memory for the computer to use.
26 \section{\tt Queue is too big}
28 Error code {\tt 4} is produced when the program has used up too much of
29 the computer's memory. It is not possible to run {\tt pphs} on this file
30 without getting more memory for the computer to use.
32 \section{\tt Stack underflow}
34 Error code {\tt 5} is produced when the program attempts to remove an item
35 from a stack in memory that doesn't exist. This should not happen in the