/* -*-c-*-
*
- * $Id: atom.c,v 1.3 2001/01/25 21:13:15 mdw Exp $
+ * $Id: atom.c,v 1.5 2004/04/08 01:36:11 mdw Exp $
*
* Atom management
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: atom.c,v $
- * Revision 1.3 2001/01/25 21:13:15 mdw
- * New function allowing an atom's length to be specified at intern time.
- *
- * Revision 1.2 2001/01/21 19:04:51 mdw
- * Include `crc32.h' for @CRC32@ macro.
- *
- * Revision 1.1 2001/01/20 11:50:16 mdw
- * Implementation of atom tables (for example, as found in X11).
- *
- */
-
/*----- Header files ------------------------------------------------------*/
#include <stdio.h>
#include "alloc.h"
#include "atom.h"
-#include "crc32.h"
#include "hash.h"
#include "sym.h"
+#include "unihash.h"
/*----- Static variables --------------------------------------------------*/
a->b.name = (char *)(a + 1);
memcpy(a->b.name, buf, sz);
a->b.len = sz;
- CRC32(a->b.b.hash, 0, buf, sz);
+ a->b.b.hash = UNIHASH(&unihash_global, buf, sz);
a->f = ATOMF_GENSYM;
a->b.b.next = t->g;
t->g = &a->b.b;