all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@elta.co.il>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] unexec() for Cygwin port
Date: 30 Mar 2004 08:24:19 +0200	[thread overview]
Message-ID: <un05yyhrg.fsf@elta.co.il> (raw)
In-Reply-To: <4068894A.1070402@hekimian.com> (message from Joe Buehler on Mon,  29 Mar 2004 15:38:34 -0500)

Btw, the function reproduced below should use a case-insensitive
comparison to the ".exe" string, as I'm sure you didn't mean that the
dumping should fail when some weirdo shell or Make hands you a name
like "EMACS.EXE" instead of the expected "emacs.exe".

+static char *
+add_exe_suffix_if_necessary(const char *name, char *modified)
+{
+	int i = strlen(name);
+	if (i <= (sizeof(DOTEXE) - 1)) {
+		sprintf(modified, "%s%s", name, DOTEXE);
+	} else if (!strcmp(name + i - (sizeof(DOTEXE) - 1), DOTEXE)) {
+		strcpy(modified, name);
+	} else {
+		sprintf(modified, "%s%s", name, DOTEXE);
+	}
+	return(modified);
+}

  parent reply	other threads:[~2004-03-30  6:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-29 13:38 [PATCH] unexec() for Cygwin port Joe Buehler
2004-03-29 19:27 ` Eli Zaretskii
2004-03-29 20:38   ` Joe Buehler
2004-03-29 21:10     ` Stefan Monnier
2004-03-30  6:20       ` Eli Zaretskii
2004-03-30 10:04         ` What Pretest? (was Re: [PATCH] unexec() for Cygwin port) Kim F. Storm
2004-03-30  6:13     ` [PATCH] unexec() for Cygwin port Eli Zaretskii
2004-03-30  6:24     ` Eli Zaretskii [this message]
2004-03-30  3:53 ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-03-29 13:32 Joe Buehler

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=un05yyhrg.fsf@elta.co.il \
    --to=eliz@elta.co.il \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.