home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume33 / problem / part01 / problem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-19  |  2.1 KB  |  68 lines

  1. /*
  2. ** problem.h - functions exported by problem.C
  3. **
  4. ** problem.h 1.9   Delta'd: 15:50:49 9/22/92   Mike Lijewski, CNSF
  5. **
  6. ** Copyright (c) 1991, 1992 Cornell University
  7. ** All rights reserved.
  8. **
  9. ** Redistribution and use in source and binary forms are permitted
  10. ** provided that: (1) source distributions retain this entire copyright
  11. ** notice and comment, and (2) distributions including binaries display
  12. ** the following acknowledgement:  ``This product includes software
  13. ** developed by Cornell University'' in the documentation or other
  14. ** materials provided with the distribution and in all advertising
  15. ** materials mentioning features or use of this software. Neither the
  16. ** name of the University nor the names of its contributors may be used
  17. ** to endorse or promote products derived from this software without
  18. ** specific prior written permission.
  19. **
  20. ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  21. ** IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  22. ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  23. */
  24.  
  25. #ifndef __PROBLEM_H
  26. #define __PROBLEM_H
  27.  
  28. extern "C" {
  29. #include <gdbm.h>
  30. extern gdbm_error gdbm_errno;
  31. }
  32.  
  33. // our GDMB filehandle  -- only one open GDBM file at a time
  34. extern GDBM_FILE GdbmFile;
  35.  
  36. // help message for the message window when displaying help
  37. extern const char *const HELP_MSG[];
  38.  
  39. extern int   append_to_problem(const char *number = 0);
  40. extern int   close_problem(const char *number = 0);
  41. extern int   database_exists();
  42. extern int   delete_problem(const char *number = 0);
  43. extern int   examine_problem(const char *number = 0);
  44. extern int   modify_keywords(const char *number = 0);
  45. extern void  open_database(int mode);
  46. extern int   reopen_problem(const char *number = 0);
  47. extern void  reorganize_database(int dodelay = 1);
  48. extern char *summary_info(datum &data);
  49.  
  50. //
  51. // We need this on i486 + ISC v3.2 3.0 Unix (SysVR3)
  52. // pid_t is the type returned by fork(2).
  53. //
  54. #ifdef ISC
  55. #define pid_t short
  56. #endif
  57.  
  58. //
  59. // Deal with old and new types of delete
  60. //
  61. #ifdef  OLDDELETE
  62. #define DELETE delete
  63. #else
  64. #define DELETE delete []
  65. #endif
  66.  
  67. #endif
  68.