aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog10
-rw-r--r--src/floatfns.c29
-rw-r--r--src/keyboard.c5
-rw-r--r--src/process.c6
-rw-r--r--src/vm-limit.c2
5 files changed, 26 insertions, 26 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 5c8db880e6a..7071c62b491 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,13 @@
12010-07-05 Dan Nicolaescu <dann@ics.uci.edu> 12010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2 Juanma Barranquero <lekktu@gmail.com> 2
3 * vm-limit.c (memory_warnings):
4 * keyboard.c (modify_event_symbol):
5 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
6 (round2, emacs_rint):
7 * process.c (send_process, old_sigpipe): Convert function
8 definitions and declarations to standard C.
9
102010-07-05 Juanma Barranquero <lekktu@gmail.com>
3 11
4 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c, 12 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
5 * xdisp.c: Convert function definitions to standard C. 13 * xdisp.c: Convert function definitions to standard C.
diff --git a/src/floatfns.c b/src/floatfns.c
index af82df0bf5d..96a89337c75 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -70,7 +70,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
70 70
71/* This declaration is omitted on some systems, like Ultrix. */ 71/* This declaration is omitted on some systems, like Ultrix. */
72#if !defined (HPUX) && defined (HAVE_LOGB) && !defined (logb) 72#if !defined (HPUX) && defined (HAVE_LOGB) && !defined (logb)
73extern double logb (); 73extern double logb (double);
74#endif /* not HPUX and HAVE_LOGB and no logb macro */ 74#endif /* not HPUX and HAVE_LOGB and no logb macro */
75 75
76#if defined(DOMAIN) && defined(SING) && defined(OVERFLOW) 76#if defined(DOMAIN) && defined(SING) && defined(OVERFLOW)
@@ -778,11 +778,10 @@ This is the same as the exponent of a float. */)
778/* the rounding functions */ 778/* the rounding functions */
779 779
780static Lisp_Object 780static Lisp_Object
781rounding_driver (arg, divisor, double_round, int_round2, name) 781rounding_driver (Lisp_Object arg, Lisp_Object divisor,
782 register Lisp_Object arg, divisor; 782 double (*double_round) (double),
783 double (*double_round) (); 783 EMACS_INT (*int_round2) (EMACS_INT, EMACS_INT),
784 EMACS_INT (*int_round2) (); 784 char *name)
785 char *name;
786{ 785{
787 CHECK_NUMBER_OR_FLOAT (arg); 786 CHECK_NUMBER_OR_FLOAT (arg);
788 787
@@ -832,8 +831,7 @@ rounding_driver (arg, divisor, double_round, int_round2, name)
832 integer functions. */ 831 integer functions. */
833 832
834static EMACS_INT 833static EMACS_INT
835ceiling2 (i1, i2) 834ceiling2 (EMACS_INT i1, EMACS_INT i2)
836 EMACS_INT i1, i2;
837{ 835{
838 return (i2 < 0 836 return (i2 < 0
839 ? (i1 < 0 ? ((-1 - i1) / -i2) + 1 : - (i1 / -i2)) 837 ? (i1 < 0 ? ((-1 - i1) / -i2) + 1 : - (i1 / -i2))
@@ -841,8 +839,7 @@ ceiling2 (i1, i2)
841} 839}
842 840
843static EMACS_INT 841static EMACS_INT
844floor2 (i1, i2) 842floor2 (EMACS_INT i1, EMACS_INT i2)
845 EMACS_INT i1, i2;
846{ 843{
847 return (i2 < 0 844 return (i2 < 0
848 ? (i1 <= 0 ? -i1 / -i2 : -1 - ((i1 - 1) / -i2)) 845 ? (i1 <= 0 ? -i1 / -i2 : -1 - ((i1 - 1) / -i2))
@@ -850,8 +847,7 @@ floor2 (i1, i2)
850} 847}
851 848
852static EMACS_INT 849static EMACS_INT
853truncate2 (i1, i2) 850truncate2 (EMACS_INT i1, EMACS_INT i2)
854 EMACS_INT i1, i2;
855{ 851{
856 return (i2 < 0 852 return (i2 < 0
857 ? (i1 < 0 ? -i1 / -i2 : - (i1 / -i2)) 853 ? (i1 < 0 ? -i1 / -i2 : - (i1 / -i2))
@@ -859,8 +855,7 @@ truncate2 (i1, i2)
859} 855}
860 856
861static EMACS_INT 857static EMACS_INT
862round2 (i1, i2) 858round2 (EMACS_INT i1, EMACS_INT i2)
863 EMACS_INT i1, i2;
864{ 859{
865 /* The C language's division operator gives us one remainder R, but 860 /* The C language's division operator gives us one remainder R, but
866 we want the remainder R1 on the other side of 0 if R1 is closer 861 we want the remainder R1 on the other side of 0 if R1 is closer
@@ -880,16 +875,14 @@ round2 (i1, i2)
880#define emacs_rint rint 875#define emacs_rint rint
881#else 876#else
882static double 877static double
883emacs_rint (d) 878emacs_rint (double d)
884 double d;
885{ 879{
886 return floor (d + 0.5); 880 return floor (d + 0.5);
887} 881}
888#endif 882#endif
889 883
890static double 884static double
891double_identity (d) 885double_identity (double d)
892 double d;
893{ 886{
894 return d; 887 return d;
895} 888}
diff --git a/src/keyboard.c b/src/keyboard.c
index 069ff4993d9..001ae9f7cef 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -528,8 +528,6 @@ EMACS_TIME timer_check (int do_it_now);
528 528
529extern Lisp_Object Vhistory_length, Vtranslation_table_for_input; 529extern Lisp_Object Vhistory_length, Vtranslation_table_for_input;
530 530
531extern char *x_get_keysym_name ();
532
533static void record_menu_key (Lisp_Object c); 531static void record_menu_key (Lisp_Object c);
534static int echo_length (void); 532static int echo_length (void);
535 533
@@ -611,7 +609,7 @@ Lisp_Object Venable_disabled_menus_and_buttons;
611#define READABLE_EVENTS_IGNORE_SQUEEZABLES (1 << 2) 609#define READABLE_EVENTS_IGNORE_SQUEEZABLES (1 << 2)
612 610
613/* Function for init_keyboard to call with no args (if nonzero). */ 611/* Function for init_keyboard to call with no args (if nonzero). */
614void (*keyboard_init_hook) (); 612void (*keyboard_init_hook) (void);
615 613
616static int read_avail_input (int); 614static int read_avail_input (int);
617static void get_input_pending (int *, int); 615static void get_input_pending (int *, int);
@@ -6583,6 +6581,7 @@ modify_event_symbol (int symbol_num, unsigned int modifiers, Lisp_Object symbol_
6583#ifdef HAVE_WINDOW_SYSTEM 6581#ifdef HAVE_WINDOW_SYSTEM
6584 if (NILP (value)) 6582 if (NILP (value))
6585 { 6583 {
6584 extern char *x_get_keysym_name (KeySym keysym);
6586 char *name = x_get_keysym_name (symbol_num); 6585 char *name = x_get_keysym_name (symbol_num);
6587 if (name) 6586 if (name)
6588 value = intern (name); 6587 value = intern (name);
diff --git a/src/process.c b/src/process.c
index 313663e5d42..75bc59a30ab 100644
--- a/src/process.c
+++ b/src/process.c
@@ -182,7 +182,7 @@ Lisp_Object Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtime, Qctime;
182 182
183#include "syswait.h" 183#include "syswait.h"
184 184
185extern char *get_operating_system_release (); 185extern 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)
@@ -5606,7 +5606,7 @@ send_process (volatile Lisp_Object proc, unsigned char *volatile buf,
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
@@ -5719,7 +5719,7 @@ send_process (volatile Lisp_Object proc, unsigned char *volatile buf,
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 {
diff --git a/src/vm-limit.c b/src/vm-limit.c
index 25f42d9904f..00b041d8ef8 100644
--- a/src/vm-limit.c
+++ b/src/vm-limit.c
@@ -251,7 +251,7 @@ check_memory_limits (void)
251void 251void
252memory_warnings (POINTER start, void (*warnfun) (char *)) 252memory_warnings (POINTER start, void (*warnfun) (char *))
253{ 253{
254 extern void (* __after_morecore_hook) (); /* From gmalloc.c */ 254 extern void (* __after_morecore_hook) (void); /* From gmalloc.c */
255 255
256 if (start) 256 if (start)
257 data_space_start = start; 257 data_space_start = start;