summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-06-07 20:18:08 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-06-07 20:18:08 -0700
commite131c739eaa55df3b6515fc91e150b12ee77152b (patch)
tree3dd5dc9dd00d191efaede0d42543e656fbf84cf5
parent76927b80247a348ea92732e0cf15e6beb2d56826 (diff)
downloadtxr-e131c739eaa55df3b6515fc91e150b12ee77152b.tar.gz
txr-e131c739eaa55df3b6515fc91e150b12ee77152b.tar.bz2
txr-e131c739eaa55df3b6515fc91e150b12ee77152b.zip
* lib.h (mkloc): Rename misleading argument from fun to obj.
-rw-r--r--ChangeLog4
-rw-r--r--lib.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fc329e94..6307ecbd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2015-06-07 Kaz Kylheku <kaz@kylheku.com>
+ * lib.h (mkloc): Rename misleading argument from fun to obj.
+
+2015-06-07 Kaz Kylheku <kaz@kylheku.com>
+
* parser.c (stream_parser_hash): New static variable.
(parser_mark): Mark parser and primer members.
(parser, ensure_parser): new argument: primer.
diff --git a/lib.h b/lib.h
index 4c644984..66cc89da 100644
--- a/lib.h
+++ b/lib.h
@@ -264,7 +264,7 @@ INLINE loc mkloc_fun(val *ptr, val obj)
return l;
}
-#define mkloc(expr, fun) mkloc_fun(&(expr), fun)
+#define mkloc(expr, obj) mkloc_fun(&(expr), obj)
#define mkcloc(expr) mkloc_fun(&(expr), 0)
#define nulloc mkloc_fun(0, 0)
#define nullocp(lo) (!(lo).ptr)