[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/process.c,v
From: |
Kim F. Storm |
Subject: |
[Emacs-diffs] Changes to emacs/src/process.c,v |
Date: |
Mon, 04 Dec 2006 12:26:51 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Kim F. Storm <kfstorm> 06/12/04 12:26:50
Index: process.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/process.c,v
retrieving revision 1.490
retrieving revision 1.491
diff -u -b -r1.490 -r1.491
--- process.c 12 Nov 2006 22:32:14 -0000 1.490
+++ process.c 4 Dec 2006 12:26:50 -0000 1.491
@@ -149,7 +149,8 @@
#include "atimer.h"
Lisp_Object Qprocessp;
-Lisp_Object Qrun, Qstop, Qsignal;
+Lisp_Object Qrun, Qstop;
+extern Lisp_Object Qsignal;
Lisp_Object Qopen, Qclosed, Qconnect, Qfailed, Qlisten;
Lisp_Object Qlocal, Qipv4, Qdatagram;
#ifdef AF_INET6
@@ -5139,6 +5140,9 @@
}
carryover = nbytes - coding->consumed;
+ if (carryover < 0)
+ abort ();
+
if (SCHARS (p->decoding_buf) < carryover)
p->decoding_buf = make_uninit_string (carryover);
bcopy (chars + coding->consumed, SDATA (p->decoding_buf),
@@ -5249,11 +5253,15 @@
}
}
carryover = nbytes - coding->consumed;
+ if (carryover < 0)
+ abort ();
+
if (SCHARS (p->decoding_buf) < carryover)
p->decoding_buf = make_uninit_string (carryover);
bcopy (chars + coding->consumed, SDATA (p->decoding_buf),
carryover);
XSETINT (p->decoding_carryover, carryover);
+
/* Adjust the multibyteness of TEXT to that of the buffer. */
if (NILP (current_buffer->enable_multibyte_characters)
!= ! STRING_MULTIBYTE (text))
@@ -6997,8 +7005,6 @@
staticpro (&Qrun);
Qstop = intern ("stop");
staticpro (&Qstop);
- Qsignal = intern ("signal");
- staticpro (&Qsignal);
/* Qexit is already staticpro'd by syms_of_eval; don't staticpro it
here again.
- [Emacs-diffs] Changes to emacs/src/process.c,v,
Kim F. Storm <=
- [Emacs-diffs] Changes to emacs/src/process.c,v, Kim F. Storm, 2006/12/04
- [Emacs-diffs] Changes to emacs/src/process.c,v, Kim F. Storm, 2006/12/07
- [Emacs-diffs] Changes to emacs/src/process.c,v, Eli Zaretskii, 2006/12/09
- [Emacs-diffs] Changes to emacs/src/process.c,v, Kim F. Storm, 2006/12/19
- [Emacs-diffs] Changes to emacs/src/process.c,v, Kim F. Storm, 2006/12/27