Changeset c8fcf66 in git for src/avenprcore.cc


Ignore:
Timestamp:
07/03/15 10:08:31 (5 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
42fd3ef
Parents:
82919e07
Message:

src/avenprcore.cc,src/message.c,src/message.h: msg() has returned a
persistent copy of the message for decades, so the code's bound to
rely on that in some places. And there's no real reason it
shouldn't continue to as the messages are under 20KB of UTF-8 text
for any language, so lazy loading isn't worth the complication. So
remove msgPerm() and the unused msgFree() macro, and document that
msg() returns a persistent copy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/avenprcore.cc

    r82919e07 rc8fcf66  
    167167
    168168    /* note down so we can switch to printer charset */
    169     msg166 = msgPerm(/*Page %d of %d*/166);
     169    msg166 = msg(/*Page %d of %d*/166);
    170170    old_charset = select_charset(CHARSET_ISO_8859_1);
    171171
    172     l->footer = msgPerm(/*Survey “%s”   Page %d (of %d)   Processed on %s*/167);
     172    l->footer = msg(/*Survey “%s”   Page %d (of %d)   Processed on %s*/167);
    173173
    174174    cPagesPrinted = 0;
Note: See TracChangeset for help on using the changeset viewer.