m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/m4/m4private.h,v


From: Eric Blake
Subject: Changes to m4/m4/m4private.h,v
Date: Fri, 07 Sep 2007 22:37:48 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      07/09/07 22:37:47

Index: m4/m4private.h
===================================================================
RCS file: /sources/m4/m4/m4/m4private.h,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -b -r1.83 -r1.84
--- m4/m4private.h      6 Sep 2007 22:58:26 -0000       1.83
+++ m4/m4private.h      7 Sep 2007 22:37:47 -0000       1.84
@@ -147,6 +147,7 @@
 struct m4_module
 {
   lt_dlhandle  handle;         /* ltdl module information.  */
+  int          refcount;       /* count of loads not matched by unload.  */
   /* TODO: add struct members, such as copy of builtins (so that we
      can store additional information about builtins, and so that the
      list isn't changed by the module behind our backs once we have
@@ -161,6 +162,11 @@
 extern m4_module *  m4__module_next (m4_module *);
 extern m4_module *  m4__module_find (const char *name);
 
+/* Fast macro versions of symbol table accessor functions, that also
+   have an identically named function exported in m4module.h.  */
+#ifdef NDEBUG
+# define m4_module_refcount(M) ((M)->refcount)
+#endif
 
 
 /* --- SYMBOL TABLE MANAGEMENT --- */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]