Changeset 7419


Ignore:
Timestamp:
05/07/18 22:01:27 (5 months ago)
Author:
baker
Message:

always use const string95 *msgbuf arg to libmsgadd(), libdatamsg(), and msgadd()

Location:
trunk/src/libsrc/lib330
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libsrc/lib330/libmsgs.c

    r6803 r7419  
    235235#endif 
    236236 
    237 #ifdef CONSTMSG 
    238237void msgadd (pq330 q330, word msgcode, longword dt, const string95 *msgsuf, boolean client) 
    239 #else 
    240 void msgadd (pq330 q330, word msgcode, longword dt, string95 *msgsuf, boolean client) 
    241 #endif 
    242238begin 
    243239  string s, s1, s2 ; 
     
    298294end 
    299295 
    300 #ifdef CONSTMSG 
    301296void libmsgadd (pq330 q330, word msgcode, const string95 *msgsuf) 
    302 #else 
    303 void libmsgadd (pq330 q330, word msgcode, string95 *msgsuf) 
    304 #endif 
    305297begin 
    306298 
     
    308300end 
    309301 
    310 #ifdef CONSTMSG 
    311302void libdatamsg (pq330 q330, word msgcode, const string95 *msgsuf) 
    312 #else 
    313 void libdatamsg (pq330 q330, word msgcode, string95 *msgsuf) 
    314 #endif 
    315303begin 
    316304  longword dt ; 
  • trunk/src/libsrc/lib330/libmsgs.h

    r7111 r7419  
    191191#define HOSTMSG_ALL 800 
    192192 
    193 /* Force const qualifier for message strings */ 
    194  
    195 #ifdef CONSTMSG 
    196 #undef CONSTMSG 
    197 #endif 
    198 #define CONSTMSG 
    199  
    200 #ifdef CONSTMSG 
    201193extern void libmsgadd (pq330 q330, word msgcode, const string95 *msgsuf) ; 
    202194extern void libdatamsg (pq330 q330, word msgcode, const string95 *msgsuf) ; 
    203195extern void msgadd (pq330 q330, word msgcode, longword dt, const string95 *msgsuf, boolean client) ; 
    204 #else 
    205 extern void libmsgadd (pq330 q330, word msgcode, string95 *msgsuf) ; 
    206 extern void libdatamsg (pq330 q330, word msgcode, string95 *msgsuf) ; 
    207 extern void msgadd (pq330 q330, word msgcode, longword dt, string95 *msgsuf, boolean client) ; 
    208 #endif 
    209196 
    210197#ifndef OMIT_SEED 
Note: See TracChangeset for help on using the changeset viewer.