Annotation of libwww/Library/src/HTAtom.html, revision 2.6

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

Webmaster