Differences From Artifact [53d78093d3]:
- File
src/OFApplication.h
— part of check-in
[f282aaa672]
at
2010-10-10 12:01:52
on branch trunk
— Better storing of argc and argv.
This makes it possible to pass argc and argv to third party libs
requiring those. (user: js, size: 3471) [annotate] [blame] [check-ins using]
To Artifact [20532cb77f]:
- File src/OFApplication.h — part of check-in [cd677a3484] at 2010-10-10 21:09:43 on branch trunk — Better storing of argc and argv for real now. (user: js, size: 3477) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
17 18 19 20 21 22 23 | @class OFMutableArray; @class OFMutableDictionary; #define OF_APPLICATION_DELEGATE(cls) \ int \ main(int argc, char *argv[]) \ { \ | | | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | @class OFMutableArray; @class OFMutableDictionary; #define OF_APPLICATION_DELEGATE(cls) \ int \ main(int argc, char *argv[]) \ { \ return of_application_main(&argc, &argv, [cls class]); \ } /** * \brief A protocol for delegates of OFApplication. */ @protocol OFApplicationDelegate /** |
︙ | ︙ | |||
97 98 99 100 101 102 103 | * * You should not call this directly! Use of_application_main instead! * * \param argc The number of arguments * \param argv The argument values */ - (void)setArgumentCount: (int*)argc | | | | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | * * You should not call this directly! Use of_application_main instead! * * \param argc The number of arguments * \param argv The argument values */ - (void)setArgumentCount: (int*)argc andArgumentValues: (char**[])argv; /** * Gets args and argv.o * * \param argc A pointer where a pointer to argc should be stored * \param argv A pointer where a pointer to argv should be stored */ - (void)getArgumentCount: (int**)argc andArgumentValues: (char***[])argv; /** * \return The name of the program (argv[0]) */ - (OFString*)programName; /** |
︙ | ︙ | |||
156 157 158 159 160 161 162 | */ - (void)terminateWithStatus: (int)status; @end @interface OFObject (OFApplicationDelegate) <OFApplicationDelegate> @end | | | 156 157 158 159 160 161 162 163 | */ - (void)terminateWithStatus: (int)status; @end @interface OFObject (OFApplicationDelegate) <OFApplicationDelegate> @end extern int of_application_main(int*, char**[], Class); |