required/SRC680m60 : osl_setCommandArgs()
[email protected] Wed, 21 Sep 2005 13:10:21 +0200 (CEST)
| Newsgroups | gmane.comp.openoffice.announce.interface |
|---|---|
| Message-ID | <388333.1127301021854.JavaMail.root@sd-web1> |
Type required Title osl_setCommandArgs() Posted by [email protected] Affected ,all Effective from SRC680m60 Summary osl/process.h: + void osl_setCommandArgs (int argc, char ** argv); sal/main.h: + SAL_IMPLEMENT_MAIN_WITH_ARGS(_argc_, _argv_) Description osl/process.h: + void osl_setCommandArgs (int argc, char ** argv); New function to pass command line arguments from main() to sal for later retrieval by osl_getExecutableFile() and osl_getCommandArg[Count](). Without a call osl_setCommandArgs(), osl_getExecutableFile() and osl_getCommandArg[Count]() will return nothing. sal/main.h + SAL_IMPLEMENT_MAIN_WITH_ARGS(_argc_, _argv_) New macro to aid implementation of a main() function, complementing the previously available SAL_IMPLEMENT_MAIN() with a standard main() arguments. osl_setCommandArgs() is called from both SAL_IMPLEMENT_MAIN variants. With the exception of the various "workben" applications, all main() functions have been adapted to either use a SAL_IMPLEMENT_MAIN macro, or directly call osl_setCommandArgs(). --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]