Develop and Download Open Source Software

Browse CVS Repository

Contents of /enbanfukusyaya/EnbanKensa/common/text.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Sun Feb 19 12:21:03 2006 UTC (18 years, 1 month ago) by bananajinn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
File MIME type: text/x-csrc
*** empty log message ***

1 /* ‰~”ŐŒŸ¸ - EnbanKensa
2 * Copyright (C) 2005-2006 Kagetani Hideto
3 */
4
5 #if defined(linux)
6 # include <stdio.h>
7 # include <libintl.h>
8 #elif defined(WIN32)
9 # include <windows.h>
10 static char stringBuffer[1024];
11 #endif
12
13 #if defined(linux)
14 char *GetText(const char *string)
15 {
16 return gettext(string);
17 }
18 #endif
19
20 #if defined(WIN32)
21 char *GetText(int string_id)
22 {
23 stringBuffer[0] = '\0';
24 LoadString(NULL, string_id, stringBuffer, sizeof(stringBuffer));
25 return stringBuffer;
26 }
27 #endif
28

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26