comparison src/callint.c @ 664:6e99cc8c6ca5

[xemacs-hg @ 2001-09-18 05:04:26 by ben] fileio.c: Fix various C++ compile errors in Andy's recent code. callint.c, editfns.c, emacs.c, lread.c, redisplay-x.c: Fix sign-compare warnings. scrollbar-msw.c: Fix crash under MS Windows. See comment around line 223 for explanation. font-lock.el: fix problem when you insert a comment on the line before a line of code: if we use the following char, then when you hit backspace, the following line of code turns the comment color. configure.in: Don't use -Wshadow when compiling with g++ or you get buried in silly warnings. This patch was already applied but somehow got unapplied. Stephen?
author ben
date Tue, 18 Sep 2001 05:06:57 +0000
parents 183866b06e0b
children fdefd0186b75
comparison
equal deleted inserted replaced
663:ebdebdbf3f84 664:6e99cc8c6ca5
639 const char *prompt_start = prompt_data + prompt_index + 1; 639 const char *prompt_start = prompt_data + prompt_index + 1;
640 const char *prompt_limit = (const char *) strchr (prompt_start, '\n'); 640 const char *prompt_limit = (const char *) strchr (prompt_start, '\n');
641 int prompt_length; 641 int prompt_length;
642 prompt_length = ((prompt_limit) 642 prompt_length = ((prompt_limit)
643 ? (prompt_limit - prompt_start) 643 ? (prompt_limit - prompt_start)
644 : strlen (prompt_start)); 644 : (int) strlen (prompt_start));
645 if (prompt_limit && prompt_limit[1] == 0) 645 if (prompt_limit && prompt_limit[1] == 0)
646 { 646 {
647 prompt_limit = 0; /* "sfoo:\n" -- strip tailing return */ 647 prompt_limit = 0; /* "sfoo:\n" -- strip tailing return */
648 prompt_length -= 1; 648 prompt_length -= 1;
649 } 649 }