Changes between Initial Version and Version 2 of Ticket #269


Ignore:
Timestamp:
07/14/07 16:14:42 (13 years ago)
Author:
takkaria
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #269 – Description

    initial v2  
    1 see http://rephial.org/wiki/Cleanup#s2_1 
     1Nuke message(), message_format(), msg_print(), msg_format(). 
     2 
     3Add: 
     4 
     5 * msgt(type, msg, ...) -> sound(type); msg_print_aux(type, format(msg, ...)) 
     6 * msg(msg, ...) -> msg_print_aux(MSG_GENERIC, format(msg, ...) 
     7 
     8Regexes to achieve this: 
     9 * s/message\(MSG_GENERIC, 0, ([A-Za-z""]*)/msg(\1)/ 
     10 * s/message_format\(MSG_GENERIC, 0, ([A-Za-z"", ]*))/msg(\1)/ 
     11 * s/message\(([A-Z_]*), 0, ([A-Za-z""]*))/msgt(\1, \2)/ 
     12 * s/message_format\(([A-Z_]*), 0, %%)/msgt(%%, %%)/ 
     13 * s/msg_format\((.*))/msg(\1)/ 
     14 * s/msg_print\((.*))/msg(\1)/