• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythongamewindowsbathyscaphephpguic翻訳omegattwitterframeworktestbtronarduinovb.net計画中(planning stage)directxpreviewerゲームエンジンdom

A tool to display MS-Windows locale information


Commit MetaInfo

修订版314a8f3c98fe2b4205891324add87346bfdaa336 (tree)
时间2019-03-03 07:02:16
作者Keith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Remove redundant output helper code.

* locale-info.c (report) [#if 0]: Delete disabled code block.

更改概述

差异

--- a/locale-info.c
+++ b/locale-info.c
@@ -97,19 +97,6 @@ static int insufficient_buffer( unsigned int id, int needs )
9797 return printf( "0x%08X: insufficient buffer; need %d words\n", id, needs ); }
9898
9999 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
113100 { /* Helper function to display the identifier, and description, for any
114101 * one Windows locale entity; display is suppressed, for any entity code
115102 * which does not yield a description of non-zero length.
@@ -118,7 +105,6 @@ static int report( unsigned int id, int len )
118105 return printf( "0x%1$08X (%1$04d): %2$04d words: %3$S\n", id, len, buf.s );
119106 return 0;
120107 }
121-# endif
122108
123109 static void get_locale_info( unsigned int lookup )
124110 {