Menu

#21 Makes set of message modules extensible

closed-accepted
nobody
None
5
2002-03-15
2002-03-15
No

In order to support Windows applications that use DLLs
that use SP's DLL, where the intervening DLLs also
define messages to be used with the SP message handling
infrastructure, this patch reworks the way in which
MessageFragments identify the module within which their
text resides by replacing the (libModule, appModule,
xModule) enumeration with a pointer to a global, opaque
MessageModule object. This MessageModule object then
contains whatever data is needed to identify sets of
text resources on the host system, e.g. an HINSTANCE
DLL handle under Windows, or a message domain string
for gettext.

Only the implementation of the message handling
infrastructure is changed; use of the patch does
require regeneration of .h and .cxx files from .msg
files and recompilation of everything, its general
usage does not change.

Discussion

  • Peter Newcomb

    Peter Newcomb - 2002-03-15

    unified diff

     
  • Ian Castle

    Ian Castle - 2002-03-15

    Logged In: YES
    user_id=262940

    Applied (it also need a change to include/Makefile.am on
    the UNIX platforms, so I've added that also).

     
  • Ian Castle

    Ian Castle - 2002-03-15
    • status: open --> closed-accepted
     

Log in to post a comment.