File: errmsg.h

package info (click to toggle)
par 1.50-4
  • links: PTS
  • area: main
  • in suites: hamm, potato, slink
  • size: 232 kB
  • ctags: 125
  • sloc: ansic: 1,468; makefile: 58
file content (38 lines) | stat: -rw-r--r-- 977 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*********************/
/* errmsg.h          */
/* for Par 1.50      */
/* Copyright 1996 by */
/* Adam M. Costello  */
/*********************/

/* This is ANSI C code. */


#ifndef ERRMSG_H
#define ERRMSG_H


#define errmsg_size 163

/* This is the maximum number of characters that will  */
/* fit in an errmsg_t, including the terminating '\0'. */
/* It will never decrease, but may increase in future  */
/* versions of this header file.                       */


typedef char errmsg_t[errmsg_size];

/* Any function which takes the argument errmsg_t errmsg must, before */
/* returning, either set errmsg[0] to '\0' (indicating success), or   */
/* write an error message string into errmsg, (indicating failure),   */
/* being careful not to overrun the space.                            */


extern const char * const outofmem;
  /* "Out of memory.\n" */

extern const char * const impossibility;
  /* "Impossibility #%d has occurred.  Please report it.\n" */


#endif