From: Arthur Cohen <arthur.cohen@embecosm.com>
To: lh_mouse@126.com
Cc: gcc@gcc.gnu.org
Subject: Re: [PATCH] Fix rust on *-w64-mingw32
Date: Fri, 26 Apr 2024 12:47:47 +0200 [thread overview]
Message-ID: <76cc558c-49bf-40f1-b28c-a62584f62e00@embecosm.com> (raw)
In-Reply-To: <79bd7ab5-b908-400d-b0a6-1faf1193bc61@126.com>
Hello,
Thanks a lot for the patch :)
I agree with Jakub that we should be using the GNU coding style in our
call to std::replace - this is what we try to enforce in the rest of the
Rust frontend.
Regarding the changes to `mkdir_wrapped`, the function now looks a bit odd:
void
mkdir_wrapped (const std::string &dirname)
{
int ret;
ret = mkdir (dirname.c_str (), 0775);
(void) ret;
}
could you change it to something simpler like simply ignoring the return
value of `mkdir`? since this is what we are already doing (and we should
improve error handling here... but one battle at a time).
I would suggest the following:
void
mkdir_wrapped (const std::string &dirname)
{
mkdir (dirname.c_str (), 0775);
}
Have you run the testsuite on *-w64-mingw32? I'm wondering if commenting
out the `register_callback` function causes any issues there?
All in all I'm in favor of this patch, and thanks for submitting it :)
Best,
Arthur
next prev parent reply other threads:[~2024-04-26 10:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 11:16 LIU Hao
2024-04-25 11:19 ` Jakub Jelinek
2024-04-26 10:47 ` Arthur Cohen [this message]
2024-04-26 11:14 ` LIU Hao
2024-04-27 15:57 ` LIU Hao
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=76cc558c-49bf-40f1-b28c-a62584f62e00@embecosm.com \
--to=arthur.cohen@embecosm.com \
--cc=gcc@gcc.gnu.org \
--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).