From: Vincent Lefevre <vincent+gcc@vinc17.org>
To: Liu Hao <lh_mouse@126.com>
Cc: gcc-help@gcc.gnu.org, Josef Wolf <jw@raven.inka.de>
Subject: Re: How to print pointer to function?
Date: Tue, 17 Dec 2019 14:52:00 -0000 [thread overview]
Message-ID: <20191217145205.GC458941@cventin.lip.ens-lyon.fr> (raw)
In-Reply-To: <461aac6b.75fe.16f140180cc.Coremail.lh_mouse@126.com>
On 2019-12-17 21:17:20 +0800, Liu Hao wrote:
> POSIX requires casting between `void*` and pointer-to-function to
> preserve values in the specification of `dlsym()`. C++ says it is
> conditionally supported. I don't see portability issues. Non-POSIX
> systems (other than Windows) died decades ago.
If this were the case, why hasn't this changed in the C standard?
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
next prev parent reply other threads:[~2019-12-17 14:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-12 9:30 Josef Wolf
2019-12-12 9:44 ` Jonathan Wakely
2019-12-12 9:49 ` Liu Hao
2019-12-12 11:00 ` Josef Wolf
2019-12-17 12:56 ` Vincent Lefevre
2019-12-17 13:17 ` Liu Hao
2019-12-17 13:27 ` Segher Boessenkool
2019-12-17 14:52 ` Vincent Lefevre [this message]
2019-12-17 13:22 ` Segher Boessenkool
2019-12-17 15:23 ` Vincent Lefevre
2019-12-17 15:27 ` Manfred
2019-12-17 16:30 ` Vincent Lefevre
2019-12-17 22:49 ` Segher Boessenkool
2019-12-18 2:39 ` Liu Hao
2019-12-18 10:05 ` David Brown
2019-12-18 11:12 ` Segher Boessenkool
2019-12-17 13:01 ` Vincent Lefevre
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=20191217145205.GC458941@cventin.lip.ens-lyon.fr \
--to=vincent+gcc@vinc17.org \
--cc=gcc-help@gcc.gnu.org \
--cc=jw@raven.inka.de \
--cc=lh_mouse@126.com \
/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).