nuttx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] [incubator-nuttx] yanyunyouyou opened a new issue #856: A error in include/errno.h?
Date Fri, 24 Apr 2020 04:09:47 GMT

yanyunyouyou opened a new issue #856:

   This logic seems to be wrong,(**&& !defined(__KERNEL__**))seems redundant.
   This error looks like copying a line of code, changing it, but forgetting to delete the
extra parts.
   To be honest, I often make this kind of mistakes.
   #elif defined(CONFIG_BUILD_KERNEL) && !defined(__KERNEL__)
   #  if defined(__KERNEL__)
      /* Kernel build.  Kernel code has direct access */
   #    define __DIRECT_ERRNO_ACCESS 1
   #  else
      /* User libraries for the kernel.  Only indirect access from user
       * libraries
   #    undef __DIRECT_ERRNO_ACCESS
   #  endif

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:

View raw message