You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/30 13:09:30 UTC

[GitHub] [incubator-nuttx] patacongo commented on pull request #2418: libc: Change OK/ERROR from macro to enum

patacongo commented on pull request #2418:
URL: https://github.com/apache/incubator-nuttx/pull/2418#issuecomment-735775501


   > > The most correct thing to do would be to remove the definitions of OK and ERROR and replace them with 0 and -1 as required by specifications. OK and ERROR are not standard and not portable and best not a part of the OS
   > 
   > @patacongo do you want to replace all OK/ERROR to 0/-1? If yes, I can try.
   
   This would be more POSIX conformant since OK/ERROR is non-standard and non-portable.  And it would avoid introducing an enumeration type.
   


----------------------------------------------------------------
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:
users@infra.apache.org