home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / src / dfstubs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-28  |  2.4 KB  |  87 lines

  1. /***************************************************************************
  2. *
  3. *
  4. *                         NCSA HDF version 3.2r2
  5. *                            October 30, 1992
  6. *
  7. * NCSA HDF Version 3.2 source code and documentation are in the public
  8. * domain.  Specifically, we give to the public domain all rights for future
  9. * licensing of the source code, all resale rights, and all publishing rights.
  10. *
  11. * We ask, but do not require, that the following message be included in all
  12. * derived works:
  13. *
  14. * Portions developed at the National Center for Supercomputing Applications at
  15. * the University of Illinois at Urbana-Champaign, in collaboration with the
  16. * Information Technology Institute of Singapore.
  17. *
  18. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  19. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  20. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  21. *
  22. ****************************************************************************
  23. */
  24.  
  25. /*
  26. $Header: /hdf/hdf/v3.2r2/src/RCS/dfstubs.h,v 1.1 1992/08/25 21:40:44 koziol beta koziol $
  27.  
  28. $Log: dfstubs.h,v $
  29.  * Revision 1.1  1992/08/25  21:40:44  koziol
  30.  * Initial revision
  31.  *
  32. */
  33. /*
  34. ** FILE
  35. **    dfstubs.h
  36. ** PURPOSE
  37. **    Header file for "dfstubs.c" HDF 3.1 emulation using new routines
  38. **    from "hfile.c".
  39. ** AUTHOR
  40. **    Doug Ilg
  41. */
  42.  
  43. #ifndef DFSTUBS_H  /* avoid re-inclusion */
  44. #define DFSTUBS_H
  45. /* This is the master HDF driver (taking the place of df.c), so... */
  46. #define DFMASTER
  47. #undef PERM_OUT  /* used to "comment out" code */
  48.  
  49. #include "df.h"
  50. #undef DFMASTER
  51.  
  52. #if !defined(__GNUC__) & !defined(CONVEX) & !defined(VMS) & !defined(PC)
  53. #include <memory.h>
  54. #endif  /* !__GNUC__ & !CONVEX & !VMS & !PC */
  55.  
  56. #define DFACC_APPEND    8
  57. #define DFEL_ABSENT    0
  58. #define DFEL_RESIDENT    1
  59. #define DFSRCH_OLD    0
  60. #define DFSRCH_NEW    1
  61.  
  62. PRIVATE int32    DFid;
  63. PRIVATE int32    DFaid;
  64. PRIVATE int    DFaccmode;
  65. PRIVATE int    DFelaccmode;
  66. PRIVATE uint16    search_tag;
  67. PRIVATE uint16    search_ref;
  68. PRIVATE int    search_stat    = DFSRCH_NEW;
  69. PRIVATE int32    search_aid    = 0;
  70. PRIVATE int    DFelstat    = DFEL_ABSENT;
  71. PRIVATE int32    DFelsize    = 0;
  72. PRIVATE int32    DFelseekpos    = 0;
  73. PRIVATE uint16    acc_tag        = 0;
  74. PRIVATE uint16    acc_ref        = 0;
  75. PRIVATE char    *DFelement    = NULL;
  76.  
  77. extern DF *makedf();
  78.  
  79. /* prototypes for internal routines */
  80. PRIVATE int DFIclearacc
  81.    PROTO((void));
  82.  
  83. PRIVATE int DFIcheck
  84.    PROTO((DF *dfile));
  85.  
  86. #endif /* DFSTUBS_H */
  87.