/* -*-c-*-
*
- * $Id: atom.h,v 1.1 2001/01/20 11:50:16 mdw Exp $
+ * $Id: atom.h,v 1.3 2004/04/08 01:36:11 mdw Exp $
*
* Atom management
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: atom.h,v $
- * Revision 1.1 2001/01/20 11:50:16 mdw
- * Implementation of atom tables (for example, as found in X11).
- *
- */
-
#ifndef MLIB_ATOM_H
#define MLIB_ATOM_H
*
* Arguments: @atom_table *t@ = pointer to an atom table
* @const char *p@ = pointer to the string to intern
+ * @size_t n@ = size of the string (for @atom_nintern)
*
* Returns: A pointer to the atom block for the given symbol string.
*
#define INTERN(p) atom_intern(ATOM_GLOBAL, (p))
extern atom *atom_intern(atom_table */*t*/, const char */*p*/);
+extern atom *atom_nintern(atom_table */*t*/,
+ const char */*p*/, size_t /*n*/);
/* --- @atom_gensym@ --- *
*
* representation.
*/
-#define ATOM_LEN(a) (SYM_LEN(a) - 1)
+#define ATOM_LEN(a) SYM_LEN(a)
extern size_t atom_len(const atom */*a*/);