home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / www / library / implemen / htatom.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.2 KB  |  48 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. #include "HTUtils.h"
  25. #include "HTList.h"
  26.  
  27. #ifdef SHORT_NAMES
  28. #define HTAt_for        HTAtom_for
  29. #define HTAt_tMa        HTAtom_templateMatches
  30. #endif /*SHORT_NAMES*/
  31.  
  32. typedef struct _HTAtom HTAtom;
  33. struct _HTAtom {
  34.         HTAtom *        next;
  35.         char *          name;
  36. }; /* struct _HTAtom */
  37.  
  38.  
  39. PUBLIC HTAtom * HTAtom_for PARAMS((CONST char * string));
  40. PUBLIC HTList * HTAtom_templateMatches PARAMS((CONST char * templ));
  41.  
  42. #define HTAtom_name(a) ((a)->name)
  43.  
  44. #endif  /* HTATOM_H */
  45. /*
  46.  
  47.     */
  48.