summaryrefslogtreecommitdiff
path: root/l10ntools/source/xrmlex.l
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/xrmlex.l
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/xrmlex.l')
-rw-r--r--l10ntools/source/xrmlex.l11
1 files changed, 3 insertions, 8 deletions
diff --git a/l10ntools/source/xrmlex.l b/l10ntools/source/xrmlex.l
index 60da7be0654e..5a2170f11e97 100644
--- a/l10ntools/source/xrmlex.l
+++ b/l10ntools/source/xrmlex.l
@@ -22,6 +22,8 @@
#include <stdlib.h>
#include <stdio.h>
+#include "sal/main.h"
+
#if defined __GNUC__
#pragma GCC system_header
#elif defined __SINPRO_CC
@@ -190,14 +192,7 @@ void yyerror ( const char *s )
SetError();
}
-/*****************************************************************************/
-int
-#ifdef WNT
-_cdecl
-#endif
-main( int argc, char* argv[])
-/*****************************************************************************/
-{
+SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) {
/* error level */
int nRetValue = 0;
char *pOutput;