chiark / gitweb /
cleanup: All the whitespace fixes, all at once.
[mLib] / atom.h
diff --git a/atom.h b/atom.h
index 7adf195613fac0f8a3280250c77b9665707ea34d..a5d6261cd74ea3afcc3a377f2ab48f5ce9f60629 100644 (file)
--- a/atom.h
+++ b/atom.h
@@ -1,13 +1,13 @@
 /* -*-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
  *
  * (c) 2000 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of the mLib utilities library.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * mLib is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with mLib; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  * 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
 
@@ -101,6 +93,7 @@ extern void atom_destroytable(atom_table */*t*/);
  *
  * 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.
  *
@@ -111,6 +104,8 @@ extern void atom_destroytable(atom_table */*t*/);
 #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@ --- *
  *
@@ -151,7 +146,7 @@ extern const char *atom_name(const atom */*a*/);
  *             representation.
  */
 
-#define ATOM_LEN(a) (SYM_LEN(a) - 1)
+#define ATOM_LEN(a) SYM_LEN(a)
 
 extern size_t atom_len(const atom */*a*/);