head     1.3;
branch   ;
access   ;
symbols  Version_2_1:1.3 Version_2:1.3 C_Demo_1:1.3;
locks    ; strict;
comment  @ * @;


1.3
date     89.09.05.16.53.28;  author mao;  state Version_2;
branches ;
next     1.2;

1.2
date     89.02.02.15.57.24;  author dillon;  state Stab;
branches ;
next     1.1;

1.1
date     89.01.17.05.58.00;  author cimarron;  state Exp;
branches ;
next     ;


desc
@@


1.3
log
@Working version of C-only demo
@
text
@/*
 * suputils.h --
 *	Declarations and definitions for useful functions and macros.
 *
 * Identification:
 *	$Header: /usr6/postgres/mao/postgres/src/support/RCS/suputils.h,v 1.2 89/02/02 15:57:24 dillon Stab $
 */
#ifndef SupUtilsIncluded
#define SupUtilsIncluded

#include <stdio.h>
#include <sys/param.h>

#define	FlushOutput()	(void) fflush(stdout)
#define	FlushErrors()	(void) fflush(stderr);


#ifdef EBUG
#define	IFDEBUG(A)	A;
#else /* !EBUG */
#define	IFDEBUG(A)
#endif /* !EBUG */


/*
 * PathRemoveRecursively --
 *	Removes "absolutePath" and its descendants.
 */
extern
void
PathRemoveRecursively ARGS((
	char	*absolutePath;
));

/*
 *	PathGetRoot
 *
 *	Extract the file name from an absolute or relative path.
 */
extern
char *
PathGetRoot ARGS((
	char	*path
));

/*
 * ProcessExit --
 *	Useful as a signal handler (since it takes no arguments).
 */
extern
ProcessExit ARGS((
	void
));
#endif /* !SupUtilsIncluded */
@


1.2
log
@txfer from old tree
@
text
@d6 1
a6 1
 *	$Header: suputils.h,v 1.1 88/07/26 01:03:10 dillon Locked $
@


1.1
log
@Initial revision
@
text
@a0 27

; /*
; * 
; * POSTGRES Data Base Management System
; * 
; * Copyright (c) 1988 Regents of the University of California
; * 
; * Permission to use, copy, modify, and distribute this software and its
; * documentation for educational, research, and non-profit purposes and
; * without fee is hereby granted, provided that the above copyright
; * notice appear in all copies and that both that copyright notice and
; * this permission notice appear in supporting documentation, and that
; * the name of the University of California not be used in advertising
; * or publicity pertaining to distribution of the software without
; * specific, written prior permission.  Permission to incorporate this
; * software into commercial products can be obtained from the Campus
; * Software Office, 295 Evans Hall, University of California, Berkeley,
; * Ca., 94720 provided only that the the requestor give the University
; * of California a free licence to any derived software for educational
; * and research purposes.  The University of California makes no
; * representations about the suitability of this software for any
; * purpose.  It is provided "as is" without express or implied warranty.
; * 
; */



d6 1
a6 1
 *	$Header: suputils.h,v 1.1 88/11/11 16:40:24 postgres Exp $
@
