nuttx/include/cxx
Gregory Nutt 67ec3d7926 Remove CONFIG_CAN_PASS_STRUCT
This commit resolves issue #620:

Remove CONFIG_CAN_PASS_STRUCTS #620

The configuration option CONFIG_CAN_PASS_STRUCTS was added many years ago to support an old version of the SDCC compiler. That compiler is currently used only with the Z80 and Z180 targets. The limitation of that old compiler was that it could not pass structures or unions as either inputs or outputs. For example:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    struct mallinfo mallinfo(void);
    #else
    int      mallinfo(FAR struct mallinfo *info);
    #endif

And even leads to violation of a few POSIX interfaces like:

    #ifdef CONFIG_CAN_PASS_STRUCTS
    int  sigqueue(int pid, int signo, union sigval value);
    #else
    int  sigqueue(int pid, int signo, FAR void *sival_ptr);
    #endif

This breaks the 1st INVIOLABLES rule:

Strict POSIX compliance
-----------------------

  o Strict conformance to the portable standard OS interface as defined at
    OpenGroup.org.
  o A deeply embedded system requires some special support.  Special
    support must be minimized.
  o The portable interface must never be compromised only for the sake of
    expediency.
  o Expediency or even improved performance are not justifications for
   violation of the strict POSIX interface

Also, it appears that the current SDCC compilers have resolve this issue and so, perhaps, this is no longer a problem: z88dk/z88dk#1132

NOTE:  This commit cannot pass the PR checks because it depends on matching changes to the apps/ directory.
2020-04-11 21:19:47 +01:00
..
cassert Header file clean-up 2012-07-17 03:58:11 +00:00
cctype Implement ctype.h functions as inline if possible. cctype can then properly select namespace. 2016-10-22 08:18:00 -06:00
cerrno Header file clean-up 2012-07-17 03:58:11 +00:00
cfcntl Fix a couple of C++ related problems in include/cxx 2014-10-11 08:40:19 -06:00
climits Header file clean-up 2012-07-17 03:58:11 +00:00
clocale locale.h: Add a bogus definition of locale_t 2017-05-12 10:13:18 -06:00
cmath libm: Port gamma() and lgamma() from FreeBSD to NuttX. 2017-08-08 07:02:39 -06:00
csched Move scheduler instrumentation hooks out of sched.h (where they seem like application interfaces) and into nuttx/sched.h where it is clare that these are OS internal interfaces. 2016-03-16 11:00:31 -06:00
csignal include/cxx: Update some C++ header files due to recent changes to C hader files 2016-08-25 15:06:46 -06:00
cstdarg Add a generic GCC stdarg.h header file 2012-07-08 14:50:43 +00:00
cstdbool cstdbool: Ignore _Bool8 if CONFIG_C99_BOOL8=y 2014-02-28 10:03:03 -06:00
cstddef include/cxx/cstddef: Add C11++ std::nullptr_t 2019-07-11 06:07:34 -06:00
cstdint Add a generic GCC stdarg.h header file 2012-07-08 14:50:43 +00:00
cstdio Add setbuf and setvbuf to cstdio. 2017-02-17 10:06:30 -06:00
cstdlib Remove CONFIG_CAN_PASS_STRUCT 2020-04-11 21:19:47 +01:00
cstring C library: Add strerror_r 2017-03-08 12:14:07 -06:00
ctime include/cxx/ctime: Remove gititimer and setitimer. These are prototyped in sys/time.h, not time.h. Alternatively, ctime could include sys/time.h. Those APIs should also be in the std namespace. 2019-11-13 14:01:25 -06:00
cunistd Run codespell -w with the latest dictonary again 2020-02-23 22:27:46 +01:00
cwchar Remove 'executable' bit on several files 2019-08-01 14:13:55 -06:00
cwctype wctype.h needs extern C 2017-02-17 09:48:55 -06:00