home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume29 / parseargs / part01 / pgopen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-19  |  977 b   |  28 lines

  1. /*************************************************************************
  2. ** ^FILE: pgopen.h - include file for pgopen.c
  3. **
  4. ** ^DESCRIPTION:
  5. **    If USE_PAGER is #define'd then this file will define the function
  6. **    prototypes needed to use the paging library implemented in pgopen.c;
  7. **    Otherwise it will #define macros with the same name as the paging
  8. **    library routines which do NOT perform any paging.
  9. **
  10. ** ^HISTORY:
  11. **    01/02/91     Brad Appleton     <brad@ssd.csd.harris.com>     Created
  12. ***^^**********************************************************************/
  13.  
  14. #ifndef NULL
  15. #  include <stdio.h>
  16. #endif
  17. #include <useful.h>
  18.  
  19. #ifdef  USE_PAGER
  20.    EXTERN   FILE *pgopen    ARGS(( FILE *, const char * ));
  21.    EXTERN   int   pgclose   ARGS(( FILE * ));
  22.    EXTERN   int   pgactive  ARGS(( const FILE * ));
  23. #else
  24. #  define  pgopen(fp,s)  (( !fp ) ? fp : (fflush(fp), fp))
  25. #  define  pgclose(fp)   (( !fp ) ?  0 : (fflush(fp), 0))
  26. #  define  pgactive(fp)  ( fp )
  27. #endif
  28.