diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-02-10 10:44:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-02-10 10:45:58 +0100 |
commit | 718ce84a06f18a3000d23287a2238a5a5299627a (patch) | |
tree | 5e445f530282a323b9aa75b78376209ecc3ab941 /l10ntools/source/xrmlex.l | |
parent | Uploading a new shiny libcdr-0.0.2 (diff) | |
download | core-718ce84a06f18a3000d23287a2238a5a5299627a.tar.gz core-718ce84a06f18a3000d23287a2238a5a5299627a.zip |
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.l | 11 |
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; |