home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / lynx-2.4 / WWW / Library / Implementation / HTAtom.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-28  |  1.2 KB  |  50 lines

  1. /*  */
  2.  
  3. /*                      Atoms: Names to numbers                 HTAtom.h
  4. **                      =======================
  5. **
  6. **      Atoms are names which are given representative pointer values
  7. **      so that they can be stored more efficiently, and compaisons
  8. **      for equality done more efficiently.
  9. **
  10. **      HTAtom_for(string) returns a representative value such that it
  11. **      will always (within one run of the program) return the same
  12. **      value for the same given string.
  13. **
  14. ** Authors:
  15. **      TBL     Tim Berners-Lee, WorldWideWeb project, CERN
  16. **
  17. **      (c) Copyright CERN 1991 - See Copyright.html
  18. **
  19. */
  20.  
  21. #ifndef HTATOM_H
  22. #define HTATOM_H
  23.  
  24. #ifndef HTUTILS_H
  25. #include "HTUtils.h"
  26. #endif /* HTUTILS_H */
  27. #include "HTList.h"
  28.  
  29. #ifdef SHORT_NAMES
  30. #define HTAt_for        HTAtom_for
  31. #define HTAt_tMa        HTAtom_templateMatches
  32. #endif /*SHORT_NAMES*/
  33.  
  34. typedef struct _HTAtom HTAtom;
  35. struct _HTAtom {
  36.         HTAtom *        next;
  37.         char *          name;
  38. }; /* struct _HTAtom */
  39.  
  40.  
  41. PUBLIC HTAtom * HTAtom_for PARAMS((CONST char * string));
  42. PUBLIC HTList * HTAtom_templateMatches PARAMS((CONST char * templ));
  43.  
  44. #define HTAtom_name(a) ((a)->name)
  45.  
  46. #endif  /* HTATOM_H */
  47. /*
  48.  
  49.     */
  50.