Skip to content

Commit

Permalink
(cmp_return): doc
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@68136 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
kberry committed Sep 1, 2023
1 parent 5682caa commit c8dc5ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions texk/web2c/pdftexdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions texk/web2c/pdftexdir/ptexmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit c8dc5ab

Please sign in to comment.