You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by "kasjer (via GitHub)" <gi...@apache.org> on 2023/06/18 14:50:37 UTC

[GitHub] [mynewt-core] kasjer opened a new pull request, #3024: baselibc: use mynewt_main instead of main

kasjer opened a new pull request, #3024:
URL: https://github.com/apache/mynewt-core/pull/3024

   This is extension of #2729 with difference being lack of weak function that seems not work every time.
   In incorporates original commit by @andrzej-kaczmarek.
   
   This change was motivated by awkward way native mynewt build was working.
   Some implementations of main function looked like this
   ```c
   int
   main(int argc, char **argv)
   {
   #ifdef ARCH_sim
       mcu_sim_parse_args(argc, argv);
   #endif
      ...
   ```
   where `mcu_sim_parse_args` called main function recursively after parsing arguments and preparing native environment.
   
   Now mynewt main function is called `mynewt_main` and is called from startup code (start.c) while native bsp has `main` function that parses command line arguments and then calls mynewt application `mynewt_main`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-core] kasjer merged pull request #3024: baselibc: use mynewt_main instead of main

Posted by "kasjer (via GitHub)" <gi...@apache.org>.
kasjer merged PR #3024:
URL: https://github.com/apache/mynewt-core/pull/3024


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [mynewt-core] sjanc commented on pull request #3024: baselibc: use mynewt_main instead of main

Posted by "sjanc (via GitHub)" <gi...@apache.org>.
sjanc commented on PR #3024:
URL: https://github.com/apache/mynewt-core/pull/3024#issuecomment-1603743786

   related blinky fix: https://github.com/apache/mynewt-blinky/pull/19


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mynewt.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org