Personal tools
You are here: Home Projects C++ Cfront releases Release 3.0.3 source libSC Regex libx error.h
Document Actions

error.h

by Michael L Powell last modified 2007-01-26 03:24

Click here to get the file

Size 1.4 kB - File type text/plain

File contents

/*ident	"@(#)Regex:libx/error.h	3.1" */
/*
 * G. S. Fowler
 * AT&T Bell Laboratories
 *
 * error and message formatter external definitions
 */

#ifndef ERROR_INFO

#ifndef VOID
#if __STDC__ || __cplusplus
#define VOID	void
#else
#define VOID	char
#endif
#endif

#define ERROR_INFO	0		/* info message -- no err_id	*/
#define ERROR_WARNING	1		/* warning message		*/
#define ERROR_ERROR	2		/* error message -- no err_exit	*/
#define ERROR_FATAL	3		/* error message with err_exit	*/
#define ERROR_PANIC	ERROR_LEVEL	/* panic message with err_exit	*/

#define ERROR_LEVEL	00077		/* level portion of status	*/
#define ERROR_SYSTEM	00100		/* report system errno message	*/
#define ERROR_SOURCE	00200		/* args 2-3 are FILE and LINE	*/
#define ERROR_USAGE	00400		/* usage message		*/
#define ERROR_PROMPT	01000		/* omit trailing newline	*/
#define ERROR_NOID	02000		/* omit err_id			*/
#define ERROR_LIBRARY	04000		/* library routine error	*/

extern int	errcount;		/* level>=ERROR_ERROR count	*/
extern int	errno;			/* system call error status	*/

#if __STDC__ || __cplusplus
#if __cplusplus
extern "C" {
#endif
extern VOID*	seterror(int opt, ...);
extern void	error(int level, ...);
extern void	liberror(char* lib, int level, ...);
extern void	verror(char* lib, int level, void* ap);
#if __cplusplus
}
#endif
#else
extern VOID*	seterror();
extern void	error();
extern void	liberror();
extern void	verror();
#endif

#endif
« April 2024 »
Su Mo Tu We Th Fr Sa
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
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: