*** DocumentRef.h.old	Fri Jan 29 15:52:37 1999
--- DocumentRef.h	Fri Jan 29 22:28:09 1999
*************** enum ReferenceState
*** 19,24 ****
--- 19,33 ----
      Reference_noindex
  };
  
+ #ifdef HAVE_LIBZ
+ enum HeadState
+ {
+     Empty,
+     Compressed,
+     Uncompressed
+ };
+ #endif
+ 
  class DocumentRef : public Object
  {
      public:
*************** class DocumentRef : public Object
*** 42,48 ****
      char		*DocURL()			{return docURL;}
      time_t		DocTime()			{return docTime;}
      char		*DocTitle()			{return docTitle;}
!     char		*DocHead()			{return docHead;}
      char                *DocMetaDsc()                   {return docMetaDsc;}
      time_t		DocAccessed()			{return docAccessed;}
      int			DocLinks()			{return docLinks;}
--- 51,57 ----
      char		*DocURL()			{return docURL;}
      time_t		DocTime()			{return docTime;}
      char		*DocTitle()			{return docTitle;}
!     char		*DocHead();
      char                *DocMetaDsc()                   {return docMetaDsc;}
      time_t		DocAccessed()			{return docAccessed;}
      int			DocLinks()			{return docLinks;}
*************** class DocumentRef : public Object
*** 64,70 ****
      void		DocURL(char *u)			{docURL = u;}
      void		DocTime(time_t t)		{docTime = t;}
      void		DocTitle(char *t)		{docTitle = t;}
!     void		DocHead(char *h)		{docHead = h;}
      void                DocMetaDsc(char *md)            {docMetaDsc = md;}
      void		DocAccessed(time_t t)		{docAccessed = t;}
      void		DocLinks(int l)		{docLinks = l;}
--- 73,79 ----
      void		DocURL(char *u)			{docURL = u;}
      void		DocTime(time_t t)		{docTime = t;}
      void		DocTitle(char *t)		{docTitle = t;}
!     void		DocHead(char *h);
      void                DocMetaDsc(char *md)            {docMetaDsc = md;}
      void		DocAccessed(time_t t)		{docAccessed = t;}
      void		DocLinks(int l)		{docLinks = l;}
*************** class DocumentRef : public Object
*** 147,155 ****
      int			docScore;
      // This is the nearest anchor for the search word.
      int			docAnchor;
!     // Static member variable so we get only one copy
!     // Used to buffer zlib compression
!     static unsigned char c_buffer[60000];
  };
  
  #endif
--- 156,170 ----
      int			docScore;
      // This is the nearest anchor for the search word.
      int			docAnchor;
! #ifdef HAVE_LIBZ
!     //
!     // Compression functions
!     //
!     //static unsigned char c_buffer[32000];
!     int Compress(String& s);
!     int Decompress(String &s);
!     HeadState docHeadState;
! #endif
  };
  
  #endif
