X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/322b7dab59b98b5d8625d2cd29e48f1ce605f769..1edb4a2ec657c305880901e78317daf1990b5358:/src/cm.c diff --git a/src/cm.c b/src/cm.c index 42f855f169..ad4d96313b 100644 --- a/src/cm.c +++ b/src/cm.c @@ -1,5 +1,5 @@ /* Cursor motion subroutines for GNU Emacs. - Copyright (C) 1985, 1995, 2001-2011 Free Software Foundation, Inc. + Copyright (C) 1985, 1995, 2001-2014 Free Software Foundation, Inc. based primarily on public domain code written by Chris Torek This file is part of GNU Emacs. @@ -20,7 +20,6 @@ along with GNU Emacs. If not, see . */ #include #include -#include #include "lisp.h" #include "frame.h" @@ -29,8 +28,7 @@ along with GNU Emacs. If not, see . */ #include "termchar.h" #include "tparam.h" -#define BIG 9999 /* 9999 good on VAXen. For 16 bit machines - use about 2000.... */ +#define BIG 9999 /* Good on 32-bit hosts. */ int cost; /* sums up costs */ @@ -119,7 +117,7 @@ cmcheckmagic (struct tty_display_info *tty) if (curX (tty) == FrameCols (tty)) { if (!MagicWrap (tty) || curY (tty) >= FrameRows (tty) - 1) - abort (); + emacs_abort (); if (tty->termscript) putc ('\r', tty->termscript); putc ('\r', tty->output); @@ -216,7 +214,7 @@ calccost (struct tty_display_info *tty, if (doit) do emacs_tputs (tty, p, 1, cmputc); - while (0 < --deltay); + while (--deltay > 0); x: if ((deltax = dstx - srcx) == 0) goto done; @@ -299,13 +297,14 @@ fail: if (doit) do emacs_tputs (tty, p, 1, cmputc); - while (0 < --deltax); + while (--deltax > 0); done: return totalcost; } #if 0 -losecursor () +void +losecursor (void) { curY = -1; }