A tool to display MS-Windows locale information
リビジョン | 314a8f3c98fe2b4205891324add87346bfdaa336 (tree) |
---|---|
日時 | 2019-03-03 07:02:16 |
作者 | Keith Marshall <keith@user...> |
コミッター | Keith Marshall |
Remove redundant output helper code.
* locale-info.c (report) [#if 0]: Delete disabled code block.
@@ -97,19 +97,6 @@ static int insufficient_buffer( unsigned int id, int needs ) | ||
97 | 97 | return printf( "0x%08X: insufficient buffer; need %d words\n", id, needs ); } |
98 | 98 | |
99 | 99 | static int report( unsigned int id, int len ) |
100 | -# if 0 | |
101 | -{ /* Helper function to display the identifier, and description, for any | |
102 | - * one Windows locale entity; display is suppressed, for any entity code | |
103 | - * which does not yield a description of non-zero length. | |
104 | - */ | |
105 | - if( len > 0 ) | |
106 | - { char val[WideCharToMultiByte( 850, 0, buf.s, -1, NULL, 0, NULL, NULL )]; | |
107 | - WideCharToMultiByte( 850, 0, buf.s, -1, val, sizeof val, NULL, NULL ); | |
108 | - return printf( "0x%1$08X (%1$04d): %2$04d words: %3$s\n", id, len, val ); | |
109 | - } | |
110 | - return 0; | |
111 | -} | |
112 | -# else | |
113 | 100 | { /* Helper function to display the identifier, and description, for any |
114 | 101 | * one Windows locale entity; display is suppressed, for any entity code |
115 | 102 | * which does not yield a description of non-zero length. |
@@ -118,7 +105,6 @@ static int report( unsigned int id, int len ) | ||
118 | 105 | return printf( "0x%1$08X (%1$04d): %2$04d words: %3$S\n", id, len, buf.s ); |
119 | 106 | return 0; |
120 | 107 | } |
121 | -# endif | |
122 | 108 | |
123 | 109 | static void get_locale_info( unsigned int lookup ) |
124 | 110 | { |