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/03/12 10:36:09 UTC

[GitHub] [incubator-nuttx] johannes-nivus edited a comment on issue #553: Fix a few nxstyle complaints in arm hostfs

johannes-nivus edited a comment on issue #553: Fix a few nxstyle complaints in arm hostfs
URL: https://github.com/apache/incubator-nuttx/pull/553#issuecomment-598117026
 
 
   Named struct initializers are a C99 feature if I recall correctly.
   So not allowed according to coding standard:
   "NuttX generally follows C89 and all code outside of architecture specific directories must be compatible with C89"
   
   Nevertheless you could argue that arch/arm/src/common is architecture specific.
   
   Without trying, is the following compiling correctly?
   
   ```
     struct
     {
       const char *pathname;
       long mode;
       size_t len;
     } open =
     {
       pathname,
       host_flags_to_mode(flags),
       strlen(pathname)
     };
    ```
   
   

----------------------------------------------------------------
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


With regards,
Apache Git Services