summaryrefslogtreecommitdiffhomepage
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/ref.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/ref.m4 b/m4/ref.m4
new file mode 100644
index 0000000..482763b
--- /dev/null
+++ b/m4/ref.m4
@@ -0,0 +1,6 @@
+m4_define(__REFCNT, 0)
+m4_define(MKREF, ‘‘
+ m4_define(‘‘__REFCNT’’, m4_incr(__REFCNT))
+ m4_define(‘‘__REF_$1’’, __REFCNT)
+’’)
+m4_define(REF, ‘‘__REF_$1’’)