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]

Reply via email to