[NTG-pdftex] [PATCH] Remove duplicate macros set_subfont(), unset_subfont(), is_subfont()

Pali Rohár pali.rohar at gmail.com
Thu Mar 30 09:43:41 CEST 2017


Hi! I found that macros set_subfont(), unset_subfont() and is_subfont()
in file ptexmac.h are defined two times:

...
162 #  define set_subfont(fm)     ((fm)->type |= F_SUBFONT)   <---
163 #  define set_type1(fm)       ((fm)->type |= F_TYPE1)
164 #  define set_truetype(fm)    ((fm)->type |= F_TRUETYPE)
165 #  define set_opentype(fm)    ((fm)->type |= F_OTF)
166 #  define set_subfont(fm)     ((fm)->type |= F_SUBFONT)   <---
...

In attachment I'm sending patch which remove duplicate definitions.

-- 
Pali Rohár
pali.rohar at gmail.com
-------------- next part --------------
--- source/src/texk/web2c/pdftexdir/ptexmac.h
+++ source/src/texk/web2c/pdftexdir/ptexmac.h
@@ -163,7 +163,6 @@
 #  define set_type1(fm)       ((fm)->type |= F_TYPE1)
 #  define set_truetype(fm)    ((fm)->type |= F_TRUETYPE)
 #  define set_opentype(fm)    ((fm)->type |= F_OTF)
-#  define set_subfont(fm)     ((fm)->type |= F_SUBFONT)
 
 #  define unset_included(fm)  ((fm)->type &= ~F_INCLUDED)
 #  define unset_subsetted(fm) ((fm)->type &= ~F_SUBSETTED)
@@ -172,7 +171,6 @@
 #  define unset_type1(fm)     ((fm)->type &= ~F_TYPE1)
 #  define unset_truetype(fm)  ((fm)->type &= ~F_TRUETYPE)
 #  define unset_opentype(fm)  ((fm)->type &= ~F_OTF)
-#  define unset_subfont(fm)   ((fm)->type &= ~F_SUBFONT)
 
 #  define is_included(fm)     (((fm)->type & F_INCLUDED) != 0)
 #  define is_subsetted(fm)    (((fm)->type & F_SUBSETTED) != 0)
@@ -181,7 +179,6 @@
 #  define is_type1(fm)        (((fm)->type & F_TYPE1) != 0)
 #  define is_truetype(fm)     (((fm)->type & F_TRUETYPE) != 0)
 #  define is_opentype(fm)     (((fm)->type & F_OTF) != 0)
-#  define is_subfont(fm)      (((fm)->type & F_SUBFONT) != 0)
 
 #  define fm_slant(fm)        (fm)->slant
 #  define fm_extend(fm)       (fm)->extend


More information about the ntg-pdftex mailing list