Works a bit more
[erwise] / Cl / WWWLibrary / HTAtom.h
1 /*                      Atoms: Names to numbers                 HTAtom.h
2 **                      =======================
3 **
4 **      Atoms are names which are given representative pointer values
5 **      so that they can be stored more efficiently, and compaisons
6 **      for equality done more efficiently.
7 **
8 **      HTAtom_for(string) returns a representative value such that it
9 **      will always (within one run of the program) return the same
10 **      value for the same given string.
11 **
12 ** Authors:
13 **      TBL     Tim Berners-Lee, WorldWideWeb project, CERN
14 **
15 **      (c) Copyright CERN 1991 - See Copyright.html
16 **
17 */
18
19 #ifndef HTATOM_H
20 #define HTATOM_H
21
22 typedef struct _HTAtom HTAtom;
23 struct _HTAtom {
24         HTAtom *        next;
25         char *          name;
26 }; /* struct _HTAtom */
27
28 #ifdef __STDC__
29 extern HTAtom * HTAtom_for(const char * string);
30 #else
31 extern HTAtom * HTAtom_for();
32 #endif
33
34 #define HTAtom_name(a) ((a)->name)
35
36 #endif  /* HTATOM_H */