Static array indices in function parameter declarations
Brandon Cheo Fusi <[email protected]> Tue, 25 Apr 2023 10:01:50 +0100
| Newsgroups | dev.linux.lists.ell |
|---|---|
| Message-ID | <CAEVJM+pjy7k+to4uYCVBsBL9U0DDJzZ08DLtzvO5SrH-PS6Lxg@mail.gmail.com> |
Hi everyone, I'm currently using ell for talking to dbus, and have found it way more convenient and easier to use as compared to gdbus, or any of the other bindings I've looked at. So many thanks. The extern "C" usage in the header files show the library is allowed to be compiled with C++ code. However the usage of the C99 feature that allows one to declare the index of the argument array using the 'static' keyword in some header files (like rtnl.h:110) seems to prevent this. Is there a workaround for this issue? Or should I submit a patch that removes all usage of this feature. Regards, Brandon.