aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan D2010-07-02 14:55:51 +0200
committerJan D2010-07-02 14:55:51 +0200
commit9e892c8d8b52fbc4bc484fb8a185496f34bff805 (patch)
tree400ce560093ff37b9e6fc7619e99384d8a52b7a6 /src
parentbaeb2564f75037efa9066dfeada25670f60e5079 (diff)
downloademacs-9e892c8d8b52fbc4bc484fb8a185496f34bff805.tar.gz
emacs-9e892c8d8b52fbc4bc484fb8a185496f34bff805.zip
Remove __P.
Diffstat (limited to 'src')
-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
6 files changed, 24 insertions, 46 deletions
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