($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: Brandon Cheo Fusi <fusibrandon13@gmail.com>
To: ell@lists.linux.dev
Subject: Static array indices in function parameter declarations
Date: Tue, 25 Apr 2023 10:01:50 +0100	[thread overview]
Message-ID: <CAEVJM+pjy7k+to4uYCVBsBL9U0DDJzZ08DLtzvO5SrH-PS6Lxg@mail.gmail.com> (raw)

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.

             reply	other threads:[~2023-04-25  9:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-25  9:01 Brandon Cheo Fusi [this message]
2023-04-25 14:49 ` Static array indices in function parameter declarations James Prestwood
2023-04-25 16:24   ` Marcel Holtmann
2023-04-26  8:44     ` Brandon Cheo Fusi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEVJM+pjy7k+to4uYCVBsBL9U0DDJzZ08DLtzvO5SrH-PS6Lxg@mail.gmail.com \
    --to=fusibrandon13@gmail.com \
    --cc=ell@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).