aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--configure.in8
-rw-r--r--lib-src/etags.c5
-rw-r--r--lib-src/pop.c8
-rw-r--r--src/ChangeLog2
-rw-r--r--src/config.in8
-rw-r--r--src/dosfns.h4
-rw-r--r--src/mktime.c8
-rw-r--r--src/strftime.c8
-rw-r--r--src/w32font.h40
10 files changed, 28 insertions, 67 deletions
diff --git a/ChangeLog b/ChangeLog
index 819b6ebfa7e..a04fceaa5bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2
3 * configure.in: Remove define __P.
4
12010-07-02 Dan Nicolaescu <dann@ics.uci.edu> 52010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2 6
3 * configure.in (--enable-use-lisp-union-type): New flag. 7 * configure.in (--enable-use-lisp-union-type): New flag.
diff --git a/configure.in b/configure.in
index b04bf6ea744..673674b5d88 100644
--- a/configure.in
+++ b/configure.in
@@ -3574,14 +3574,6 @@ extern char *getenv ();
3574/* Define if the compiler supports function prototypes. It may do so but 3574/* Define if the compiler supports function prototypes. It may do so but
3575 not define __STDC__ (e.g. DEC C by default) or may define it as zero. */ 3575 not define __STDC__ (e.g. DEC C by default) or may define it as zero. */
3576#undef PROTOTYPES 3576#undef PROTOTYPES
3577/* For mktime.c: */
3578#ifndef __P
3579# if defined PROTOTYPES
3580# define __P(args) args
3581# else
3582# define __P(args) ()
3583# endif /* GCC. */
3584#endif /* __P */
3585 3577
3586#ifdef HAVE_STRING_H 3578#ifdef HAVE_STRING_H
3587#include <string.h> 3579#include <string.h>
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 53c878ec723..34d1a2ba341 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -100,15 +100,10 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
100# ifndef PTR /* for XEmacs */ 100# ifndef PTR /* for XEmacs */
101# define PTR void * 101# define PTR void *
102# endif 102# endif
103# ifndef __P /* for XEmacs */
104# define __P(args) args
105# endif
106#else /* no config.h */ 103#else /* no config.h */
107# if defined(__STDC__) && (__STDC__ || defined(__SUNPRO_C)) 104# if defined(__STDC__) && (__STDC__ || defined(__SUNPRO_C))
108# define __P(args) args /* use prototypes */
109# define PTR void * /* for generic pointers */ 105# define PTR void * /* for generic pointers */
110# else /* not standard C */ 106# else /* not standard C */
111# define __P(args) () /* no prototypes */
112# define const /* remove const for old compilers' sake */ 107# define const /* remove const for old compilers' sake */
113# define PTR long * /* don't use void* */ 108# define PTR long * /* don't use void* */
114# endif 109# endif
diff --git a/lib-src/pop.c b/lib-src/pop.c
index 974ae784794..59ec84c627c 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -108,14 +108,6 @@ extern int h_errno;
108#endif 108#endif
109#endif 109#endif
110 110
111#ifndef __P
112# ifdef __STDC__
113# define __P(a) a
114# else
115# define __P(a) ()
116# endif /* __STDC__ */
117#endif /* ! __P */
118
119static int socket_connection (char *, int); 111static int socket_connection (char *, int);
120static int pop_getline (popserver, char **); 112static int pop_getline (popserver, char **);
121static int sendline (popserver, char *); 113static int sendline (popserver, char *);
diff --git a/src/ChangeLog b/src/ChangeLog
index b36953e23f3..cac04c6909d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -79,6 +79,7 @@
79 * composite.h: 79 * composite.h:
80 * dispextern.h: 80 * dispextern.h:
81 * disptab.h: 81 * disptab.h:
82 * dosfns.h:
82 * font.h: 83 * font.h:
83 * fontset.h: 84 * fontset.h:
84 * frame.h: 85 * frame.h:
@@ -99,6 +100,7 @@
99 * syssignal.h: 100 * syssignal.h:
100 * systime.h: 101 * systime.h:
101 * termhooks.h: 102 * termhooks.h:
103 * w32font.h:
102 * w32term.h: 104 * w32term.h:
103 * widget.h: 105 * widget.h:
104 * window.h: 106 * window.h:
diff --git a/src/config.in b/src/config.in
index b1370dcbb95..cfbae052c1a 100644
--- a/src/config.in
+++ b/src/config.in
@@ -1141,14 +1141,6 @@ extern char *getenv ();
1141/* Define if the compiler supports function prototypes. It may do so but 1141/* Define if the compiler supports function prototypes. It may do so but
1142 not define __STDC__ (e.g. DEC C by default) or may define it as zero. */ 1142 not define __STDC__ (e.g. DEC C by default) or may define it as zero. */
1143#undef PROTOTYPES 1143#undef PROTOTYPES
1144/* For mktime.c: */
1145#ifndef __P
1146# if defined PROTOTYPES
1147# define __P(args) args
1148# else
1149# define __P(args) ()
1150# endif /* GCC. */
1151#endif /* __P */
1152 1144
1153#ifdef HAVE_STRING_H 1145#ifdef HAVE_STRING_H
1154#include <string.h> 1146#include <string.h>
diff --git a/src/dosfns.h b/src/dosfns.h
index 1759ffd8a90..820b6b30e43 100644
--- a/src/dosfns.h
+++ b/src/dosfns.h
@@ -38,8 +38,8 @@ extern Lisp_Object Vdos_windows_version;
38#ifndef HAVE_X_WINDOWS 38#ifndef HAVE_X_WINDOWS
39extern Lisp_Object Vdos_display_scancodes; 39extern Lisp_Object Vdos_display_scancodes;
40 40
41extern int msdos_stdcolor_idx P_ ((const char *)); 41extern int msdos_stdcolor_idx (const char *);
42extern Lisp_Object msdos_stdcolor_name P_ ((int)); 42extern Lisp_Object msdos_stdcolor_name (int);
43#endif 43#endif
44 44
45/* arch-tag: a83b8c4c-63c8-451e-9e94-bc72e3e2f8bc 45/* arch-tag: a83b8c4c-63c8-451e-9e94-bc72e3e2f8bc
diff --git a/src/mktime.c b/src/mktime.c
index 20c1092a62a..3570cecd451 100644
--- a/src/mktime.c
+++ b/src/mktime.c
@@ -57,14 +57,6 @@
57# define mktime my_mktime 57# define mktime my_mktime
58#endif /* DEBUG */ 58#endif /* DEBUG */
59 59
60#ifndef __P
61# if defined __GNUC__ || (defined __STDC__ && __STDC__)
62# define __P(args) args
63# else
64# define __P(args) ()
65# endif /* GCC. */
66#endif /* Not __P. */
67
68#ifndef CHAR_BIT 60#ifndef CHAR_BIT
69# define CHAR_BIT 8 61# define CHAR_BIT 8
70#endif 62#endif
diff --git a/src/strftime.c b/src/strftime.c
index e96d8a92332..a7617427793 100644
--- a/src/strftime.c
+++ b/src/strftime.c
@@ -131,14 +131,6 @@ extern char *tzname[];
131# endif 131# endif
132#endif 132#endif
133 133
134#ifndef __P
135# if defined __GNUC__ || (defined __STDC__ && __STDC__) || defined (PROTOTYPES)
136# define __P(args) args
137# else
138# define __P(args) ()
139# endif /* GCC. */
140#endif /* Not __P. */
141
142#ifndef PTR 134#ifndef PTR
143# ifdef __STDC__ 135# ifdef __STDC__
144# define PTR void * 136# define PTR void *
diff --git a/src/w32font.h b/src/w32font.h
index 3e2345589b5..6479f95faf5 100644
--- a/src/w32font.h
+++ b/src/w32font.h
@@ -62,26 +62,26 @@ struct w32font_info
62 62
63#define CACHE_BLOCKSIZE 128 63#define CACHE_BLOCKSIZE 128
64 64
65Lisp_Object w32font_get_cache P_ ((FRAME_PTR fe)); 65Lisp_Object w32font_get_cache (FRAME_PTR fe);
66Lisp_Object w32font_list_internal P_ ((Lisp_Object frame, 66Lisp_Object w32font_list_internal (Lisp_Object frame,
67 Lisp_Object font_spec, 67 Lisp_Object font_spec,
68 int opentype_only)); 68 int opentype_only);
69Lisp_Object w32font_match_internal P_ ((Lisp_Object frame, 69Lisp_Object w32font_match_internal (Lisp_Object frame,
70 Lisp_Object font_spec, 70 Lisp_Object font_spec,
71 int opentype_only)); 71 int opentype_only);
72int w32font_open_internal P_ ((FRAME_PTR f, Lisp_Object font_entity, 72int w32font_open_internal (FRAME_PTR f, Lisp_Object font_entity,
73 int pixel_size, Lisp_Object font_object)); 73 int pixel_size, Lisp_Object font_object);
74void w32font_close P_ ((FRAME_PTR f, struct font *font)); 74void w32font_close (FRAME_PTR f, struct font *font);
75int w32font_has_char P_ ((Lisp_Object entity, int c)); 75int w32font_has_char (Lisp_Object entity, int c);
76int w32font_text_extents P_ ((struct font *font, unsigned *code, int nglyphs, 76int w32font_text_extents (struct font *font, unsigned *code, int nglyphs,
77 struct font_metrics *metrics)); 77 struct font_metrics *metrics);
78int w32font_draw P_ ((struct glyph_string *s, int from, int to, 78int w32font_draw (struct glyph_string *s, int from, int to,
79 int x, int y, int with_background)); 79 int x, int y, int with_background);
80 80
81 81
82int uniscribe_check_otf P_ ((LOGFONT *font, Lisp_Object otf_spec)); 82int uniscribe_check_otf (LOGFONT *font, Lisp_Object otf_spec);
83 83
84Lisp_Object intern_font_name P_ ((char *)); 84Lisp_Object intern_font_name (char *);
85 85
86#endif 86#endif
87 87