summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-09-01 14:59:58 +0000
committerKarl Berry <karl@freefriends.org>2023-09-01 14:59:58 +0000
commit07c4be51b051fed0eefb0b319287d09f06781369 (patch)
tree818467df93a37103ef8786a3137633fb5785d8d9
parent1920a3b920d740c57149c8ef7f3a269bad4ba8e7 (diff)
(cmp_return): doc
git-svn-id: svn://tug.org/texlive/trunk@68136 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog6
-rw-r--r--Build/source/texk/web2c/pdftexdir/ptexmac.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
index f270c615f1a..6dfdcabd841 100644
--- a/Build/source/texk/web2c/pdftexdir/ChangeLog
+++ b/Build/source/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,9 @@
+2023-09-01 Karl Berry <karl@freefriends.org>
+
+ * ptexmac.h (cmp_return): a few words of documentation about
+ the seemingly strange lack of handling the a==b case.
+ Suggested by Jim Diamond.
+
2023-08-28 Karl Berry <karl@freefriends.org>
* tounicode.c (undump_to_unicode): check that gu->name
diff --git a/Build/source/texk/web2c/pdftexdir/ptexmac.h b/Build/source/texk/web2c/pdftexdir/ptexmac.h
index 30e8e744c61..00a32c96889 100644
--- a/Build/source/texk/web2c/pdftexdir/ptexmac.h
+++ b/Build/source/texk/web2c/pdftexdir/ptexmac.h
@@ -207,6 +207,10 @@ size_t T##_limit
cur_file_name = s; \
packfilename(maketexstring(cur_file_name), getnullstr(), getnullstr())
+/* This macro doesn't handle the case where a==b. It turns out that is
+ * convenient for the way it's used; for example, see writettf.c.
+ * All uses (must) follow the same pattern.
+ */
# define cmp_return(a, b) \
if ((a) > (b)) \
return 1; \