chiark / gitweb /
New function allowing an atom's length to be specified at intern time.
[mLib] / track.h
diff --git a/track.h b/track.h
index fa502699088f25526ac4111e69dd80e6a24c927e..be9ce492f116ee787ea645ff262a0d59d77ecb3b 100644 (file)
--- a/track.h
+++ b/track.h
@@ -1,41 +1,54 @@
 /* -*-c-*-
  *
- * $Id: track.h,v 1.1 1998/06/17 23:44:42 mdw Exp $
+ * $Id: track.h,v 1.5 1999/12/10 23:42:04 mdw Exp $
  *
  * Tracing functions for debugging
  *
  * (c) 1998 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------*
+/*----- Licensing notice --------------------------------------------------* 
  *
  * This file is part of the mLib utilities library.
  *
  * mLib is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
+ * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU 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.
+ * 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: track.h,v $
- * Revision 1.1  1998/06/17 23:44:42  mdw
- * Initial revision
+ * Revision 1.5  1999/12/10 23:42:04  mdw
+ * Change header file guard names.
+ *
+ * Revision 1.4  1999/10/22 22:40:25  mdw
+ * Change naming slightly.  Still not documented, though.
+ *
+ * Revision 1.3  1999/05/06 19:51:36  mdw
+ * Reformatted the LGPL notice a little bit.
+ *
+ * Revision 1.2  1999/05/05 18:50:31  mdw
+ * Change licensing conditions to LGPL.
+ *
+ * Revision 1.1.1.1  1998/06/17 23:44:42  mdw
+ * Initial version of mLib
  *
  */
 
-#ifndef TRACK_H
-#define TRACK_H
+#ifndef MLIB_TRACK_H
+#define MLIB_TRACK_H
 
 #ifdef __cplusplus
   extern "C" {
@@ -73,7 +86,7 @@ typedef struct track_ctx {
 
 /*----- Functions provided ------------------------------------------------*/
 
-/* --- @track_setLevel@ --- *
+/* --- @track_level@ --- *
  *
  * Arguments:  @unsigned int l@ = tracing level for allocation messages
  *
@@ -82,9 +95,9 @@ typedef struct track_ctx {
  * Use:                Sets the trace level for allocation messages.
  */
 
-extern void track_setLevel(unsigned int /*l*/);
+extern void track_level(unsigned int /*l*/);
 
-/* --- @track_pushContext@ --- *
+/* --- @track_push@ --- *
  *
  * Arguments:  @track_ctx *ctx@ = context holder to push
  *
@@ -93,9 +106,9 @@ extern void track_setLevel(unsigned int /*l*/);
  * Use:                Pushes the given context block onto the stack.
  */
 
-extern void track_pushContext(track_ctx */*ctx*/);
+extern void track_push(track_ctx */*ctx*/);
 
-/* --- @track_popContext@ --- *
+/* --- @track_pop@ --- *
  *
  * Arguments:  @track_ctx *ctx@ = context holder to pop
  *
@@ -104,7 +117,7 @@ extern void track_pushContext(track_ctx */*ctx*/);
  * Use:                Removes the given context block from the stack.
  */
 
-extern void track_popContext(track_ctx */*ctx*/);
+extern void track_pop(track_ctx */*ctx*/);
 
 /* --- @track_malloc@ --- *
  *
@@ -170,7 +183,6 @@ extern void track_list(unsigned int l);
 
 /*----- Macro wrappers ----------------------------------------------------*/
 
-
 /* --- If tracking is to be done, set it up --- */
 
 #ifdef TRACK_ENABLE
@@ -193,12 +205,12 @@ extern void track_list(unsigned int l);
 /* --- Handle contexts --- */
 
 #if defined(TRACK_ENABLE) && defined(TRACK_BLAME)
-#  define TRACK_NCTX(name, string) track__context name = { 0, string }
-#  define TRACK_NPUSH(name) track_pushContext(name)
-#  define TRACK_NPOP(name) track_popContext(name)
-#  define TRACK_CTX(string) TRACK_NCTX(track__localContext, string)
-#  define TRACK_PUSH TRACK_NPUSH(track__localContext)
-#  define TRACK_POP TRACK_NPOP(track__localContext)
+#  define TRACK_NCTX(name, string) track_ctx name = { 0, string }
+#  define TRACK_NPUSH(name) track_push(name)
+#  define TRACK_NPOP(name) track_pop(name)
+#  define TRACK_CTX(string) TRACK_NCTX(__track_ctx, string)
+#  define TRACK_PUSH TRACK_NPUSH(__track_ctx)
+#  define TRACK_POP TRACK_NPOP(__track_ctx)
 #else
 #  define TRACK_NCTX(name, string)
 #  define TRACK_NPUSH(name) ((void)0)