patacongo edited a comment on pull request #3170: URL: https://github.com/apache/incubator-nuttx/pull/3170#issuecomment-806347475
> > > is it intentional to break standard-conforming apps, which does `extern char *optarg;` by itself? > unfortunately it's how apps are expected to use this api. > https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/getopt.html No. It is an unintended consequence of replace global variables with accessor functions. Any better ideas? I have seen implementations that copy into and out of a structure into globals. But that won't work in this case because we have no pre-process (per task) global variables in the FLAT build. -- 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. For queries about this service, please contact Infrastructure at: [email protected]
