Changeset c8fcf66 in git for src/message.h


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/message.h

    r82919e07 rc8fcf66  
    11/* message.h
    22 * Function prototypes for message.c
    3  * Copyright (C) 1998-2003,2005,2010 Olly Betts
     3 * Copyright (C) 1998-2003,2005,2010,2015 Olly Betts
    44 *
    55 * This program is free software; you can redistribute it and/or modify
     
    5757const char *msg_appname(void);
    5858
    59 /* Message may be overwritten by next call */
     59/* Return the message string corresponding to number en */
    6060const char *msg(int en);
    61 /* Returns persistent copy of message */
    62 const char *msgPerm(int en);
    63 /* Kill persistent copy of message */
    64 #define msgFree(S) (void)0
    6561
    6662void v_report(int severity, const char *fnm, int line, int col, int en, va_list ap);
Note: See TracChangeset for help on using the changeset viewer.