all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: lekktu@gmail.com, 12316@debbugs.gnu.org
Subject: bug#12316: Simplify redefinition of 'abort'.
Date: Fri, 31 Aug 2012 17:41:23 +0300	[thread overview]
Message-ID: <83zk5bp1ik.fsf@gnu.org> (raw)
In-Reply-To: <50402C2B.5020800@cs.ucla.edu>

> Date: Thu, 30 Aug 2012 20:14:51 -0700
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: Eli Zaretskii <eliz@gnu.org>, Juanma Barranquero <lekktu@gmail.com>
> 
> === modified file 'src/msdos.c'
> --- src/msdos.c	2012-08-21 10:21:04 +0000
> +++ src/msdos.c	2012-08-31 03:06:13 +0000
> @@ -4215,26 +4215,9 @@
>  }
>  #endif
>  
> -#ifdef abort
> -#undef abort
> -void
> -dos_abort (char *file, int line)
> -{
> -  char buffer1[200], buffer2[400];
> -  int i, j;
> -
> -  sprintf (buffer1, "<EMACS FATAL ERROR IN %s LINE %d>", file, line);
> -  for (i = j = 0; buffer1[i]; i++) {
> -    buffer2[j++] = buffer1[i];
> -    buffer2[j++] = 0x70;
> -  }
> -  dosmemput (buffer2, j, (int)ScreenPrimary);
> -  ScreenSetCursor (2, 0);
> -  abort ();
> -}
> -#else
> -void
> -abort (void)
> +#ifdef HAVE_NTGUI       <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> +void
> +emacs_abort (void)
>  {
>    dos_ttcooked ();
>    ScreenSetCursor (10, 0);

The line marked above is wrong: code on msdos.c has no relation
whatsoever to the Windows build.





      parent reply	other threads:[~2012-08-31 14:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31  3:14 bug#12316: Simplify redefinition of 'abort' Paul Eggert
2012-08-31 11:39 ` Eli Zaretskii
2012-08-31 12:53   ` Paul Eggert
2012-08-31 14:29     ` Eli Zaretskii
2012-08-31 17:55       ` Paul Eggert
2012-09-04 17:36         ` Paul Eggert
2012-08-31 14:41 ` Eli Zaretskii [this message]

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=83zk5bp1ik.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12316@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=lekktu@gmail.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.
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.