summaryrefslogtreecommitdiff
path: root/l10ntools/source/lngex.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-02-10 10:44:37 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-02-10 10:45:58 +0100
commit718ce84a06f18a3000d23287a2238a5a5299627a (patch)
tree5e445f530282a323b9aa75b78376209ecc3ab941 /l10ntools/source/lngex.cxx
parent71530f9cb01ade01505f4a5418fed28af76c8429 (diff)
Various more l10ntools clean up
"localize" is now directly a C++ program w/o wrapper script. Also, its command line has changed slightly, taking the source root as explicit argument (instead of implicitly as cwd).
Diffstat (limited to 'l10ntools/source/lngex.cxx')
-rw-r--r--l10ntools/source/lngex.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/l10ntools/source/lngex.cxx b/l10ntools/source/lngex.cxx
index 73d72215fca7..5f8f8cd57031 100644
--- a/l10ntools/source/lngex.cxx
+++ b/l10ntools/source/lngex.cxx
@@ -26,9 +26,12 @@
*
************************************************************************/
+#include "sal/config.h"
+
#include <stdio.h>
-// local includes
+#include "sal/main.h"
+
#include "lngmerge.hxx"
// defines to parse command line
@@ -154,14 +157,7 @@ void Help()
fprintf( stdout, " -L: Restrict the handled languages. l1,l2,... are elements of (de,en-US...)\n" );
}
-/*****************************************************************************/
-#if defined(UNX)
-int main( int argc, char *argv[] )
-#else
-int _cdecl main( int argc, char *argv[] )
-#endif
-/*****************************************************************************/
-{
+SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
if ( !ParseCommandLine( argc, argv ))
{
Help();