/*************************************************************************
** ^FILE: pgopen.h - include file for pgopen.c
**
** ^DESCRIPTION:
**    If USE_PAGER is #define'd then this file will define the function
**    prototypes needed to use the paging library implemented in pgopen.c;
**    Otherwise it will #define macros with the same name as the paging
**    library routines which do NOT perform any paging.
**
** ^HISTORY:
**    01/02/91 	Brad Appleton 	<brad@ssd.csd.harris.com> 	Created
***^^**********************************************************************/

#ifndef NULL
#  include <stdio.h>
#endif
#include <useful.h>

#ifdef  USE_PAGER
   EXTERN   FILE *pgopen    ARGS(( FILE *, const char * ));
   EXTERN   int   pgclose   ARGS(( FILE * ));
   EXTERN   int   pgactive  ARGS(( const FILE * ));
#else
#  define  pgopen(fp,s)  (( !fp ) ? fp : (fflush(fp), fp))
#  define  pgclose(fp)   (( !fp ) ?  0 : (fflush(fp), 0))
#  define  pgactive(fp)  ( fp )
#endif
