|
From: Luke A. <luk...@gm...> - 2012-04-11 07:17:09
|
According to http://msdn.microsoft.com/en-us/library/windows/desktop/dd996906%28v=vs.85%29.aspx the message compiler should automatically insert the previous values for severity and facility if they are not defined for a given message: Severity=name [...] If no value is specified, the value used is the value last specified for a message definition.[...] Facility=name [...] If no value is specified, the value used is the value last specified for a message definition.[...] e.g. the following file LanguageNames=(English=0x9:eng) MessageId= Facility=Application Severity=Success SymbolicName=SUCCESS Language=English Completed. . MessageId= Severity=Informational SymbolicName=PROCESSING Language=English Processing s%1... . MessageId= SymbolicName=WAITING Language=English Waiting for s%1... . Should output a header file with the following defines: #define SUCCESS 0xfff0001 #define PROCESSING 0x4fff0002 #define WAITING 0x4fff0003 Instead the output I get with binutils 2.22 as distributed with mingw is as follows #define SUCCESS 0xfff0001 #define PROCESSING 0x40000002 #define WAITING 0x3 i.e. the facility and severity fields are set to 0 Can / should this be fixed? It's probably unrelated to mingw but I'm interested in hearing from others. Thanks, Luke |