comparison src/process.c @ 109145:d0090a8b66c3

Convert function definitions and declarations to standard C. * src/vm-limit.c (memory_warnings): * src/keyboard.c (modify_event_symbol): * src/floatfns.c (rounding_driver, ceiling2, floor2, truncate2) (round2, emacs_rint): * src/process.c (send_process, old_sigpipe): Convert function definitions and declarations to standard C.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 05 Jul 2010 09:29:35 -0700
parents 7dceae91724c
children f8660b83cdbf
comparison
equal deleted inserted replaced
109144:7dceae91724c 109145:d0090a8b66c3
180 180
181 #include "syssignal.h" 181 #include "syssignal.h"
182 182
183 #include "syswait.h" 183 #include "syswait.h"
184 184
185 extern char *get_operating_system_release (); 185 extern char *get_operating_system_release (void);
186 186
187 /* Serial processes require termios or Windows. */ 187 /* Serial processes require termios or Windows. */
188 #if defined (HAVE_TERMIOS) || defined (WINDOWSNT) 188 #if defined (HAVE_TERMIOS) || defined (WINDOWSNT)
189 #define HAVE_SERIAL 189 #define HAVE_SERIAL
190 #endif 190 #endif
5604 /* Use volatile to protect variables from being clobbered by longjmp. */ 5604 /* Use volatile to protect variables from being clobbered by longjmp. */
5605 struct Lisp_Process *p = XPROCESS (proc); 5605 struct Lisp_Process *p = XPROCESS (proc);
5606 int rv; 5606 int rv;
5607 struct coding_system *coding; 5607 struct coding_system *coding;
5608 struct gcpro gcpro1; 5608 struct gcpro gcpro1;
5609 SIGTYPE (*volatile old_sigpipe) (); 5609 SIGTYPE (*volatile old_sigpipe) (int);
5610 5610
5611 GCPRO1 (object); 5611 GCPRO1 (object);
5612 5612
5613 if (p->raw_status_new) 5613 if (p->raw_status_new)
5614 update_status (p); 5614 update_status (p);
5717 5717
5718 /* Send this batch, using one or more write calls. */ 5718 /* Send this batch, using one or more write calls. */
5719 while (this > 0) 5719 while (this > 0)
5720 { 5720 {
5721 int outfd = p->outfd; 5721 int outfd = p->outfd;
5722 old_sigpipe = (SIGTYPE (*) ()) signal (SIGPIPE, send_process_trap); 5722 old_sigpipe = (SIGTYPE (*) (int)) signal (SIGPIPE, send_process_trap);
5723 #ifdef DATAGRAM_SOCKETS 5723 #ifdef DATAGRAM_SOCKETS
5724 if (DATAGRAM_CHAN_P (outfd)) 5724 if (DATAGRAM_CHAN_P (outfd))
5725 { 5725 {
5726 rv = sendto (outfd, (char *) buf, this, 5726 rv = sendto (outfd, (char *) buf, this,
5727 0, datagram_address[outfd].sa, 5727 0, datagram_address[outfd].sa,