--
You received this message because you are subscribed to the Google Groups "NuttX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nuttx+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nuttx/761892a0-fb36-4ab8-a5b3-975db367b45a%40googlegroups.com.
--You received this message because you are subscribed to the Google Groups "NuttX" group.To unsubscribe from this group and stop receiving emails from it, send an email to nuttx+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nuttx/77f606e9-635b-8cf6-7263-0a6eb97177f0%40gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nu...@googlegroups.com.
Hi, Xaio,
My flight leaves here in just a few minutes. I will review an incorporated the change tonight in the hotel. I won't be able to do any testing until I return on the 16th.
Greg
On 10/6/2019 5:05 AM, Xiang Xiao wrote:
This patch fix two major issues:--1.Unify the entry point to the standard main for both builtin/elf type.To avoid the symbol duplication, Makefile auto pass -Dmain=xxx_main when compiling MAINSRC for builtin apps.2.Unify APPNAME and PROGNAME into one to avoid the confusion.3.Other minor change include:a.Change tristate to bool for library codeb.Change bool to tristate for new applicationc.Remove the unnecessary NSH_BUILTIN_APPS dependenced.Clean up MakefileGreg, please help test the change don't break the mainline board config.
ThanksXiang
You received this message because you are subscribed to the Google Groups "NuttX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nu...@googlegroups.com.
Yes, this change affect how to write an application, we should highlight in the ReleaseNotes:1.The entry point is always main, we don't xxx_main anymore2.Set application name by PROGNAME, APPNAME isn't used anymore
ThanksXiang
Hi Xiang,
I am not a fan of this change. The 'main' definition is changed on the command line with a define, which (a) means your source code no longer corresponds to what is built and (b) means we are overriding some long established practice about C entry points.
I full understand why you're doing it but it obfuscates what is
going on in the code...(and it seem to currently be broken, but
that can be fixed).
Regards
DAVE