From 97a4ca3b4078f581cdc8cebc4fa4cf39d5ff8125 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 27 Apr 2023 11:03:30 -0300 Subject: New macros 'fillset' and 'clearset' --- lpprint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lpprint.c') diff --git a/lpprint.c b/lpprint.c index a432263..3e7e7f2 100644 --- a/lpprint.c +++ b/lpprint.c @@ -37,7 +37,7 @@ static void printIcharset (const Instruction *inst, const byte *buff) { byte cs[CHARSETSIZE]; int i; printf("(%02x-%d) ", inst->i.aux2.set.offset, inst->i.aux2.set.size); - loopset(j, cs[j] = 0); + clearset(cs); for (i = 0; i < CHARSETSIZE * 8; i++) { if (charinset(inst, buff, i)) setchar(cs, i); @@ -50,7 +50,7 @@ static void printTcharset (TTree *tree) { byte cs[CHARSETSIZE]; int i; printf("(%02x-%d) ", tree->u.set.offset, tree->u.set.size); - loopset(j, cs[j] = tree->u.set.deflt); + fillset(cs, tree->u.set.deflt); for (i = 0; i < tree->u.set.size; i++) cs[tree->u.set.offset + i] = treebuffer(tree)[i]; printcharset(cs); -- cgit v1.2.3-55-g6feb