mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Massive commit to run PGINDENT on all *.c and *.h files.
This commit is contained in:
		@@ -1,31 +1,31 @@
 | 
			
		||||
/*-------------------------------------------------------------------------
 | 
			
		||||
 *
 | 
			
		||||
 * elog.h--
 | 
			
		||||
 *    POSTGRES error logging definitions.
 | 
			
		||||
 *	  POSTGRES error logging definitions.
 | 
			
		||||
 *
 | 
			
		||||
 *
 | 
			
		||||
 * Copyright (c) 1994, Regents of the University of California
 | 
			
		||||
 *
 | 
			
		||||
 * $Id: elog.h,v 1.3 1996/11/10 03:06:24 momjian Exp $
 | 
			
		||||
 * $Id: elog.h,v 1.4 1997/09/07 05:02:27 momjian Exp $
 | 
			
		||||
 *
 | 
			
		||||
 *-------------------------------------------------------------------------
 | 
			
		||||
 */
 | 
			
		||||
#ifndef	ELOG_H
 | 
			
		||||
#ifndef ELOG_H
 | 
			
		||||
#define ELOG_H
 | 
			
		||||
 | 
			
		||||
#define NOTICE	0	/* random info - no special action */
 | 
			
		||||
#define WARN	-1	/* Warning error - return to known state */
 | 
			
		||||
#define FATAL	1	/* Fatal error - abort process */
 | 
			
		||||
#define DEBUG	-2	/* debug message */
 | 
			
		||||
#define NOIND	-3	/* debug message, don't indent as far */
 | 
			
		||||
#define NOTICE	0				/* random info - no special action */
 | 
			
		||||
#define WARN	-1				/* Warning error - return to known state */
 | 
			
		||||
#define FATAL	1				/* Fatal error - abort process */
 | 
			
		||||
#define DEBUG	-2				/* debug message */
 | 
			
		||||
#define NOIND	-3				/* debug message, don't indent as far */
 | 
			
		||||
 | 
			
		||||
#define PTIME	0x100	/* prepend time to message */
 | 
			
		||||
#define POS	0x200	/* prepend source position to message */
 | 
			
		||||
#define USERMSG	0x400	/* send message to user */
 | 
			
		||||
#define TERM	0x800	/* send message to terminal */
 | 
			
		||||
#define DBLOG	0x1000	/* put message in per db log */
 | 
			
		||||
#define SLOG	0x2000	/* put message in system log */
 | 
			
		||||
#define ABORT	0x4000	/* abort process after logging */
 | 
			
		||||
#define PTIME	0x100			/* prepend time to message */
 | 
			
		||||
#define POS		0x200			/* prepend source position to message */
 | 
			
		||||
#define USERMSG 0x400			/* send message to user */
 | 
			
		||||
#define TERM	0x800			/* send message to terminal */
 | 
			
		||||
#define DBLOG	0x1000			/* put message in per db log */
 | 
			
		||||
#define SLOG	0x2000			/* put message in system log */
 | 
			
		||||
#define ABORT	0x4000			/* abort process after logging */
 | 
			
		||||
 | 
			
		||||
#define ELOG_MAXLEN 4096
 | 
			
		||||
 | 
			
		||||
@@ -33,9 +33,11 @@
 | 
			
		||||
/* uncomment the following if you want your elog's to be timestamped */
 | 
			
		||||
/* #define ELOG_TIMESTAMPS */
 | 
			
		||||
 | 
			
		||||
extern void elog(int lev, const char *fmt, ...);
 | 
			
		||||
extern void		elog(int lev, const char *fmt,...);
 | 
			
		||||
 | 
			
		||||
#ifndef PG_STANDALONE
 | 
			
		||||
int DebugFileOpen(void);
 | 
			
		||||
int				DebugFileOpen(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif	/* ELOG_H */
 | 
			
		||||
#endif							/* ELOG_H */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user