Changeset 6d5790d for libcfa/prelude
- Timestamp:
- Aug 7, 2023, 10:11:11 AM (17 months ago)
- Branches:
- master
- Children:
- 3c82bf6
- Parents:
- 76acb60
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/bootloader.cf
r76acb60 r6d5790d 1 extern "C" { static inline int invoke_main( int argc, char* argv[], char* envp[]); }1 extern "C" { static inline int invoke_main( int argc, char * argv[], char * envp[]); } 2 2 int cfa_args_argc; 3 3 char ** cfa_args_argv; … … 5 5 __attribute__((weak)) extern int cfa_main_returned; 6 6 7 int main( int argc, char* argv[], char* envp[]) {7 int main( int argc, char * argv[], char * envp[] ) { 8 8 cfa_args_argc = argc; 9 9 cfa_args_argv = argv; 10 10 cfa_args_envp = envp; 11 11 int ret = invoke_main(argc, argv, envp); 12 if( &cfa_main_returned) cfa_main_returned = 1;12 if( &cfa_main_returned ) cfa_main_returned = 1; 13 13 return ret; 14 14 }
Note: See TracChangeset
for help on using the changeset viewer.