aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2017-02-18 18:16:37 -0800
committerPaul Eggert2017-02-18 18:17:03 -0800
commitb2a83eed23d540b4b0ab9e0bf5605821011bfd7d (patch)
tree20545c597c19d213252bcdba7076a807ec633867 /src
parent7f89c208bf4bb256c67cc59351f4171c7a6b63aa (diff)
downloademacs-b2a83eed23d540b4b0ab9e0bf5605821011bfd7d.tar.gz
emacs-b2a83eed23d540b4b0ab9e0bf5605821011bfd7d.zip
Use 'char *FOO' instead of 'char* FOO'
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c6
-rw-r--r--src/callproc.c2
-rw-r--r--src/data.c2
-rw-r--r--src/dbusbind.c2
-rw-r--r--src/emacsgtkfixed.c6
-rw-r--r--src/gnutls.c14
-rw-r--r--src/gtkutil.c2
-rw-r--r--src/inotify.c2
-rw-r--r--src/intervals.h2
-rw-r--r--src/keymap.c2
-rw-r--r--src/menu.c2
-rw-r--r--src/nsfns.m6
-rw-r--r--src/nsfont.m2
-rw-r--r--src/nsterm.h4
-rw-r--r--src/nsterm.m6
-rw-r--r--src/process.c2
-rw-r--r--src/regex.c26
-rw-r--r--src/term.c11
-rw-r--r--src/widget.c12
-rw-r--r--src/widget.h2
-rw-r--r--src/widgetprv.h4
21 files changed, 60 insertions, 57 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 62f43669f2a..deb1ca32500 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -7237,9 +7237,9 @@ find_suspicious_object_in_range (void *begin, void *end)
7237} 7237}
7238 7238
7239static void 7239static void
7240note_suspicious_free (void* ptr) 7240note_suspicious_free (void *ptr)
7241{ 7241{
7242 struct suspicious_free_record* rec; 7242 struct suspicious_free_record *rec;
7243 7243
7244 rec = &suspicious_free_history[suspicious_free_history_index++]; 7244 rec = &suspicious_free_history[suspicious_free_history_index++];
7245 if (suspicious_free_history_index == 7245 if (suspicious_free_history_index ==
@@ -7254,7 +7254,7 @@ note_suspicious_free (void* ptr)
7254} 7254}
7255 7255
7256static void 7256static void
7257detect_suspicious_free (void* ptr) 7257detect_suspicious_free (void *ptr)
7258{ 7258{
7259 int i; 7259 int i;
7260 7260
diff --git a/src/callproc.c b/src/callproc.c
index 84324c48dcf..08fa6e97722 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1381,7 +1381,7 @@ getenv_internal (const char *var, ptrdiff_t varlen, char **value,
1381 without recording them in Vprocess_environment. */ 1381 without recording them in Vprocess_environment. */
1382#ifdef WINDOWSNT 1382#ifdef WINDOWSNT
1383 { 1383 {
1384 char* tmpval = getenv (var); 1384 char *tmpval = getenv (var);
1385 if (tmpval) 1385 if (tmpval)
1386 { 1386 {
1387 *value = tmpval; 1387 *value = tmpval;
diff --git a/src/data.c b/src/data.c
index ba5bdc5df3a..32ec89871a8 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1426,7 +1426,7 @@ set_internal (Lisp_Object symbol, Lisp_Object newval, Lisp_Object where,
1426static void 1426static void
1427set_symbol_trapped_write (Lisp_Object symbol, enum symbol_trapped_write trap) 1427set_symbol_trapped_write (Lisp_Object symbol, enum symbol_trapped_write trap)
1428{ 1428{
1429 struct Lisp_Symbol* sym = XSYMBOL (symbol); 1429 struct Lisp_Symbol *sym = XSYMBOL (symbol);
1430 if (sym->trapped_write == SYMBOL_NOWRITE) 1430 if (sym->trapped_write == SYMBOL_NOWRITE)
1431 xsignal1 (Qtrapping_constant, symbol); 1431 xsignal1 (Qtrapping_constant, symbol);
1432 sym->trapped_write = trap; 1432 sym->trapped_write = trap;
diff --git a/src/dbusbind.c b/src/dbusbind.c
index 077e8fdc06d..e7c3251c14b 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -941,7 +941,7 @@ xd_get_connection_references (DBusConnection *connection)
941} 941}
942 942
943/* Convert a Lisp D-Bus object to a pointer. */ 943/* Convert a Lisp D-Bus object to a pointer. */
944static DBusConnection* 944static DBusConnection *
945xd_lisp_dbus_to_dbus (Lisp_Object bus) 945xd_lisp_dbus_to_dbus (Lisp_Object bus)
946{ 946{
947 return (DBusConnection *) XSAVE_POINTER (bus, 0); 947 return (DBusConnection *) XSAVE_POINTER (bus, 0);
diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c
index 64b74ea24ce..75cb3c1c727 100644
--- a/src/emacsgtkfixed.c
+++ b/src/emacsgtkfixed.c
@@ -148,7 +148,7 @@ emacs_fixed_class_init (EmacsFixedClass *klass)
148{ 148{
149 GtkWidgetClass *widget_class; 149 GtkWidgetClass *widget_class;
150 150
151 widget_class = (GtkWidgetClass*) klass; 151 widget_class = (GtkWidgetClass *) klass;
152 152
153 widget_class->get_preferred_width = emacs_fixed_get_preferred_width; 153 widget_class->get_preferred_width = emacs_fixed_get_preferred_width;
154 widget_class->get_preferred_height = emacs_fixed_get_preferred_height; 154 widget_class->get_preferred_height = emacs_fixed_get_preferred_height;
@@ -205,9 +205,9 @@ emacs_fixed_get_preferred_height (GtkWidget *widget,
205 (Bug#8919), and so users can resize our frames as they wish. */ 205 (Bug#8919), and so users can resize our frames as they wish. */
206 206
207void 207void
208XSetWMSizeHints (Display* d, 208XSetWMSizeHints (Display *d,
209 Window w, 209 Window w,
210 XSizeHints* hints, 210 XSizeHints *hints,
211 Atom prop) 211 Atom prop)
212{ 212{
213 struct x_display_info *dpyinfo = x_display_info_for_display (d); 213 struct x_display_info *dpyinfo = x_display_info_for_display (d);
diff --git a/src/gnutls.c b/src/gnutls.c
index d0d7f2dfc84..28ab10de05c 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -142,7 +142,7 @@ DEF_DLL_FN (int, gnutls_x509_crt_get_dn,
142 (gnutls_x509_crt_t, char *, size_t *)); 142 (gnutls_x509_crt_t, char *, size_t *));
143DEF_DLL_FN (int, gnutls_x509_crt_get_pk_algorithm, 143DEF_DLL_FN (int, gnutls_x509_crt_get_pk_algorithm,
144 (gnutls_x509_crt_t, unsigned int *)); 144 (gnutls_x509_crt_t, unsigned int *));
145DEF_DLL_FN (const char*, gnutls_pk_algorithm_get_name, 145DEF_DLL_FN (const char *, gnutls_pk_algorithm_get_name,
146 (gnutls_pk_algorithm_t)); 146 (gnutls_pk_algorithm_t));
147DEF_DLL_FN (int, gnutls_pk_bits_to_sec_param, 147DEF_DLL_FN (int, gnutls_pk_bits_to_sec_param,
148 (gnutls_pk_algorithm_t, unsigned int)); 148 (gnutls_pk_algorithm_t, unsigned int));
@@ -154,22 +154,22 @@ DEF_DLL_FN (int, gnutls_x509_crt_get_signature_algorithm,
154 (gnutls_x509_crt_t)); 154 (gnutls_x509_crt_t));
155DEF_DLL_FN (int, gnutls_x509_crt_get_key_id, 155DEF_DLL_FN (int, gnutls_x509_crt_get_key_id,
156 (gnutls_x509_crt_t, unsigned int, unsigned char *, size_t *_size)); 156 (gnutls_x509_crt_t, unsigned int, unsigned char *, size_t *_size));
157DEF_DLL_FN (const char*, gnutls_sec_param_get_name, (gnutls_sec_param_t)); 157DEF_DLL_FN (const char *, gnutls_sec_param_get_name, (gnutls_sec_param_t));
158DEF_DLL_FN (const char*, gnutls_sign_get_name, (gnutls_sign_algorithm_t)); 158DEF_DLL_FN (const char *, gnutls_sign_get_name, (gnutls_sign_algorithm_t));
159DEF_DLL_FN (int, gnutls_server_name_set, 159DEF_DLL_FN (int, gnutls_server_name_set,
160 (gnutls_session_t, gnutls_server_name_type_t, 160 (gnutls_session_t, gnutls_server_name_type_t,
161 const void *, size_t)); 161 const void *, size_t));
162DEF_DLL_FN (gnutls_kx_algorithm_t, gnutls_kx_get, (gnutls_session_t)); 162DEF_DLL_FN (gnutls_kx_algorithm_t, gnutls_kx_get, (gnutls_session_t));
163DEF_DLL_FN (const char*, gnutls_kx_get_name, (gnutls_kx_algorithm_t)); 163DEF_DLL_FN (const char *, gnutls_kx_get_name, (gnutls_kx_algorithm_t));
164DEF_DLL_FN (gnutls_protocol_t, gnutls_protocol_get_version, 164DEF_DLL_FN (gnutls_protocol_t, gnutls_protocol_get_version,
165 (gnutls_session_t)); 165 (gnutls_session_t));
166DEF_DLL_FN (const char*, gnutls_protocol_get_name, (gnutls_protocol_t)); 166DEF_DLL_FN (const char *, gnutls_protocol_get_name, (gnutls_protocol_t));
167DEF_DLL_FN (gnutls_cipher_algorithm_t, gnutls_cipher_get, 167DEF_DLL_FN (gnutls_cipher_algorithm_t, gnutls_cipher_get,
168 (gnutls_session_t)); 168 (gnutls_session_t));
169DEF_DLL_FN (const char*, gnutls_cipher_get_name, 169DEF_DLL_FN (const char *, gnutls_cipher_get_name,
170 (gnutls_cipher_algorithm_t)); 170 (gnutls_cipher_algorithm_t));
171DEF_DLL_FN (gnutls_mac_algorithm_t, gnutls_mac_get, (gnutls_session_t)); 171DEF_DLL_FN (gnutls_mac_algorithm_t, gnutls_mac_get, (gnutls_session_t));
172DEF_DLL_FN (const char*, gnutls_mac_get_name, (gnutls_mac_algorithm_t)); 172DEF_DLL_FN (const char *, gnutls_mac_get_name, (gnutls_mac_algorithm_t));
173 173
174 174
175static bool 175static bool
diff --git a/src/gtkutil.c b/src/gtkutil.c
index b028254a51a..3a00e362221 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1694,7 +1694,7 @@ pop_down_dialog (void *arg)
1694} 1694}
1695 1695
1696/* If there are any emacs timers pending, add a timeout to main loop in DATA. 1696/* If there are any emacs timers pending, add a timeout to main loop in DATA.
1697 We pass in DATA as gpointer* so we can use this as a callback. */ 1697 Pass DATA as gpointer so we can use this as a callback. */
1698 1698
1699static gboolean 1699static gboolean
1700xg_maybe_add_timer (gpointer data) 1700xg_maybe_add_timer (gpointer data)
diff --git a/src/inotify.c b/src/inotify.c
index 701d8ff3b32..61ef6153286 100644
--- a/src/inotify.c
+++ b/src/inotify.c
@@ -145,7 +145,7 @@ inotify_callback (int fd, void *_)
145 i = 0; 145 i = 0;
146 while (i < (size_t)n) 146 while (i < (size_t)n)
147 { 147 {
148 struct inotify_event *ev = (struct inotify_event*)&buffer[i]; 148 struct inotify_event *ev = (struct inotify_event *) &buffer[i];
149 149
150 watch_object = Fassoc (make_watch_descriptor (ev->wd), watch_list); 150 watch_object = Fassoc (make_watch_descriptor (ev->wd), watch_list);
151 if (!NILP (watch_object)) 151 if (!NILP (watch_object))
diff --git a/src/intervals.h b/src/intervals.h
index cd0ba9ad70a..db91b3f21a0 100644
--- a/src/intervals.h
+++ b/src/intervals.h
@@ -290,7 +290,7 @@ Lisp_Object text_property_list (Lisp_Object, Lisp_Object, Lisp_Object,
290void add_text_properties_from_list (Lisp_Object, Lisp_Object, Lisp_Object); 290void add_text_properties_from_list (Lisp_Object, Lisp_Object, Lisp_Object);
291Lisp_Object extend_property_ranges (Lisp_Object, Lisp_Object, Lisp_Object); 291Lisp_Object extend_property_ranges (Lisp_Object, Lisp_Object, Lisp_Object);
292Lisp_Object get_char_property_and_overlay (Lisp_Object, Lisp_Object, 292Lisp_Object get_char_property_and_overlay (Lisp_Object, Lisp_Object,
293 Lisp_Object, Lisp_Object*); 293 Lisp_Object, Lisp_Object *);
294extern int text_property_stickiness (Lisp_Object prop, Lisp_Object pos, 294extern int text_property_stickiness (Lisp_Object prop, Lisp_Object pos,
295 Lisp_Object buffer); 295 Lisp_Object buffer);
296 296
diff --git a/src/keymap.c b/src/keymap.c
index 9caf55f98fb..b568f47cba7 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -93,7 +93,7 @@ static void describe_command (Lisp_Object, Lisp_Object);
93static void describe_translation (Lisp_Object, Lisp_Object); 93static void describe_translation (Lisp_Object, Lisp_Object);
94static void describe_map (Lisp_Object, Lisp_Object, 94static void describe_map (Lisp_Object, Lisp_Object,
95 void (*) (Lisp_Object, Lisp_Object), 95 void (*) (Lisp_Object, Lisp_Object),
96 bool, Lisp_Object, Lisp_Object*, bool, bool); 96 bool, Lisp_Object, Lisp_Object *, bool, bool);
97static void describe_vector (Lisp_Object, Lisp_Object, Lisp_Object, 97static void describe_vector (Lisp_Object, Lisp_Object, Lisp_Object,
98 void (*) (Lisp_Object, Lisp_Object), bool, 98 void (*) (Lisp_Object, Lisp_Object), bool,
99 Lisp_Object, Lisp_Object, bool, bool); 99 Lisp_Object, Lisp_Object, bool, bool);
diff --git a/src/menu.c b/src/menu.c
index 14272dc0c35..99a2ce8f7ef 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -603,7 +603,7 @@ free_menubar_widget_value_tree (widget_value *wv)
603 603
604 wv->name = wv->value = wv->key = (char *) 0xDEADBEEF; 604 wv->name = wv->value = wv->key = (char *) 0xDEADBEEF;
605 605
606 if (wv->contents && (wv->contents != (widget_value*)1)) 606 if (wv->contents && (wv->contents != (widget_value *) 1))
607 { 607 {
608 free_menubar_widget_value_tree (wv->contents); 608 free_menubar_widget_value_tree (wv->contents);
609 wv->contents = (widget_value *) 0xDEADBEEF; 609 wv->contents = (widget_value *) 0xDEADBEEF;
diff --git a/src/nsfns.m b/src/nsfns.m
index a709935db96..9e904c68382 100644
--- a/src/nsfns.m
+++ b/src/nsfns.m
@@ -2074,10 +2074,10 @@ static int
2074ns_do_applescript (Lisp_Object script, Lisp_Object *result) 2074ns_do_applescript (Lisp_Object script, Lisp_Object *result)
2075{ 2075{
2076 NSAppleEventDescriptor *desc; 2076 NSAppleEventDescriptor *desc;
2077 NSDictionary* errorDict; 2077 NSDictionary *errorDict;
2078 NSAppleEventDescriptor* returnDescriptor = NULL; 2078 NSAppleEventDescriptor *returnDescriptor = NULL;
2079 2079
2080 NSAppleScript* scriptObject = 2080 NSAppleScript *scriptObject =
2081 [[NSAppleScript alloc] initWithSource: 2081 [[NSAppleScript alloc] initWithSource:
2082 [NSString stringWithUTF8String: SSDATA (script)]]; 2082 [NSString stringWithUTF8String: SSDATA (script)]];
2083 2083
diff --git a/src/nsfont.m b/src/nsfont.m
index d9cae8c27d1..1bfc3df1469 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -855,7 +855,7 @@ nsfont_open (struct frame *f, Lisp_Object font_entity, int pixel_size)
855 ((CFStringRef)@"Monaco", kATSOptionFlagsDefault); 855 ((CFStringRef)@"Monaco", kATSOptionFlagsDefault);
856 } 856 }
857 } 857 }
858 font_info->cgfont = CGFontCreateWithPlatformFont ((void*)&atsFont); 858 font_info->cgfont = CGFontCreateWithPlatformFont ((void *) &atsFont);
859 } 859 }
860#endif 860#endif
861 861
diff --git a/src/nsterm.h b/src/nsterm.h
index 534ec68c22b..53d9344cc78 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -53,7 +53,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53 53
54/* CGFloat on GNUstep may be 4 or 8 byte, but functions expect float* for some 54/* CGFloat on GNUstep may be 4 or 8 byte, but functions expect float* for some
55 versions. 55 versions.
56 On Cocoa >= 10.5, functions expect CGFloat*. Make compatible type. */ 56 On Cocoa >= 10.5, functions expect CGFloat *. Make compatible type. */
57#ifdef NS_IMPL_COCOA 57#ifdef NS_IMPL_COCOA
58typedef CGFloat EmacsCGFloat; 58typedef CGFloat EmacsCGFloat;
59#elif GNUSTEP_GUI_MAJOR_VERSION > 0 || GNUSTEP_GUI_MINOR_VERSION >= 22 59#elif GNUSTEP_GUI_MAJOR_VERSION > 0 || GNUSTEP_GUI_MINOR_VERSION >= 22
@@ -1198,7 +1198,7 @@ extern void ns_finish_events (void);
1198#ifdef __OBJC__ 1198#ifdef __OBJC__
1199/* Needed in nsfns.m. */ 1199/* Needed in nsfns.m. */
1200extern void 1200extern void
1201ns_set_represented_filename (NSString* fstr, struct frame *f); 1201ns_set_represented_filename (NSString *fstr, struct frame *f);
1202 1202
1203#endif 1203#endif
1204 1204
diff --git a/src/nsterm.m b/src/nsterm.m
index 63f1b15b24e..28764c8a4fb 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -423,14 +423,14 @@ static void ns_judge_scroll_bars (struct frame *f);
423 ========================================================================== */ 423 ========================================================================== */
424 424
425void 425void
426ns_set_represented_filename (NSString* fstr, struct frame *f) 426ns_set_represented_filename (NSString *fstr, struct frame *f)
427{ 427{
428 represented_filename = [fstr retain]; 428 represented_filename = [fstr retain];
429 represented_frame = f; 429 represented_frame = f;
430} 430}
431 431
432void 432void
433ns_init_events (struct input_event* ev) 433ns_init_events (struct input_event *ev)
434{ 434{
435 EVENT_INIT (*ev); 435 EVENT_INIT (*ev);
436 emacs_event = ev; 436 emacs_event = ev;
@@ -5817,7 +5817,7 @@ not_in_argv (NSString *arg)
5817 Handle uchrHandle = GetResource 5817 Handle uchrHandle = GetResource
5818 ('uchr', GetScriptVariable (smv, smScriptKeys)); 5818 ('uchr', GetScriptVariable (smv, smScriptKeys));
5819 UInt32 dummy = 0; 5819 UInt32 dummy = 0;
5820 UCKeyTranslate ((UCKeyboardLayout*)*uchrHandle, 5820 UCKeyTranslate ((UCKeyboardLayout *) *uchrHandle,
5821 [[theEvent characters] characterAtIndex: 0], 5821 [[theEvent characters] characterAtIndex: 0],
5822 kUCKeyActionDisplay, 5822 kUCKeyActionDisplay,
5823 (flags & ~NSEventModifierFlagCommand) >> 8, 5823 (flags & ~NSEventModifierFlagCommand) >> 8,
diff --git a/src/process.c b/src/process.c
index 434a3955b2c..2f2e5c1b251 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4379,7 +4379,7 @@ network_interface_info (Lisp_Object ifname)
4379 4379
4380 for (it = ifap; it != NULL; it = it->ifa_next) 4380 for (it = ifap; it != NULL; it = it->ifa_next)
4381 { 4381 {
4382 struct sockaddr_dl *sdl = (struct sockaddr_dl*) it->ifa_addr; 4382 struct sockaddr_dl *sdl = (struct sockaddr_dl *) it->ifa_addr;
4383 unsigned char linkaddr[6]; 4383 unsigned char linkaddr[6];
4384 int n; 4384 int n;
4385 4385
diff --git a/src/regex.c b/src/regex.c
index 796f868d1c2..8e38a920cdb 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -1421,7 +1421,7 @@ do { \
1421 { \ 1421 { \
1422 /* It's a counter. */ \ 1422 /* It's a counter. */ \
1423 /* Here, we discard `const', making re_match non-reentrant. */ \ 1423 /* Here, we discard `const', making re_match non-reentrant. */ \
1424 unsigned char *ptr = (unsigned char*) POP_FAILURE_POINTER (); \ 1424 unsigned char *ptr = (unsigned char *) POP_FAILURE_POINTER (); \
1425 pfreg = POP_FAILURE_INT (); \ 1425 pfreg = POP_FAILURE_INT (); \
1426 STORE_NUMBER (ptr, pfreg); \ 1426 STORE_NUMBER (ptr, pfreg); \
1427 DEBUG_PRINT (" Pop counter %p = %ld\n", ptr, pfreg); \ 1427 DEBUG_PRINT (" Pop counter %p = %ld\n", ptr, pfreg); \
@@ -4220,8 +4220,8 @@ re_search_2 (struct re_pattern_buffer *bufp, const char *str1, size_t size1,
4220 struct re_registers *regs, ssize_t stop) 4220 struct re_registers *regs, ssize_t stop)
4221{ 4221{
4222 regoff_t val; 4222 regoff_t val;
4223 re_char *string1 = (re_char*) str1; 4223 re_char *string1 = (re_char *) str1;
4224 re_char *string2 = (re_char*) str2; 4224 re_char *string2 = (re_char *) str2;
4225 register char *fastmap = bufp->fastmap; 4225 register char *fastmap = bufp->fastmap;
4226 register RE_TRANSLATE_TYPE translate = bufp->translate; 4226 register RE_TRANSLATE_TYPE translate = bufp->translate;
4227 size_t total_size = size1 + size2; 4227 size_t total_size = size1 + size2;
@@ -4887,7 +4887,7 @@ regoff_t
4887re_match (struct re_pattern_buffer *bufp, const char *string, 4887re_match (struct re_pattern_buffer *bufp, const char *string,
4888 size_t size, ssize_t pos, struct re_registers *regs) 4888 size_t size, ssize_t pos, struct re_registers *regs)
4889{ 4889{
4890 regoff_t result = re_match_2_internal (bufp, NULL, 0, (re_char*) string, 4890 regoff_t result = re_match_2_internal (bufp, NULL, 0, (re_char *) string,
4891 size, pos, regs, size); 4891 size, pos, regs, size);
4892 return result; 4892 return result;
4893} 4893}
@@ -4921,8 +4921,8 @@ re_match_2 (struct re_pattern_buffer *bufp, const char *string1,
4921 SETUP_SYNTAX_TABLE_FOR_OBJECT (re_match_object, charpos, 1); 4921 SETUP_SYNTAX_TABLE_FOR_OBJECT (re_match_object, charpos, 1);
4922#endif 4922#endif
4923 4923
4924 result = re_match_2_internal (bufp, (re_char*) string1, size1, 4924 result = re_match_2_internal (bufp, (re_char *) string1, size1,
4925 (re_char*) string2, size2, 4925 (re_char *) string2, size2,
4926 pos, regs, stop); 4926 pos, regs, stop);
4927 return result; 4927 return result;
4928} 4928}
@@ -5785,8 +5785,8 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1,
5785 { 5785 {
5786 re_char *p1 = p; /* Next operation. */ 5786 re_char *p1 = p; /* Next operation. */
5787 /* Here, we discard `const', making re_match non-reentrant. */ 5787 /* Here, we discard `const', making re_match non-reentrant. */
5788 unsigned char *p2 = (unsigned char*) p + mcnt; /* Jump dest. */ 5788 unsigned char *p2 = (unsigned char *) p + mcnt; /* Jump dest. */
5789 unsigned char *p3 = (unsigned char*) p - 3; /* opcode location. */ 5789 unsigned char *p3 = (unsigned char *) p - 3; /* opcode location. */
5790 5790
5791 p -= 3; /* Reset so that we will re-execute the 5791 p -= 3; /* Reset so that we will re-execute the
5792 instruction once it's been changed. */ 5792 instruction once it's been changed. */
@@ -5837,7 +5837,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1,
5837 if (mcnt != 0) 5837 if (mcnt != 0)
5838 { 5838 {
5839 /* Here, we discard `const', making re_match non-reentrant. */ 5839 /* Here, we discard `const', making re_match non-reentrant. */
5840 unsigned char *p2 = (unsigned char*) p + 2; /* counter loc. */ 5840 unsigned char *p2 = (unsigned char *) p + 2; /* counter loc. */
5841 mcnt--; 5841 mcnt--;
5842 p += 4; 5842 p += 4;
5843 PUSH_NUMBER (p2, mcnt); 5843 PUSH_NUMBER (p2, mcnt);
@@ -5856,7 +5856,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1,
5856 if (mcnt != 0) 5856 if (mcnt != 0)
5857 { 5857 {
5858 /* Here, we discard `const', making re_match non-reentrant. */ 5858 /* Here, we discard `const', making re_match non-reentrant. */
5859 unsigned char *p2 = (unsigned char*) p + 2; /* counter loc. */ 5859 unsigned char *p2 = (unsigned char *) p + 2; /* counter loc. */
5860 mcnt--; 5860 mcnt--;
5861 PUSH_NUMBER (p2, mcnt); 5861 PUSH_NUMBER (p2, mcnt);
5862 goto unconditional_jump; 5862 goto unconditional_jump;
@@ -5873,7 +5873,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1,
5873 5873
5874 EXTRACT_NUMBER_AND_INCR (mcnt, p); 5874 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5875 /* Here, we discard `const', making re_match non-reentrant. */ 5875 /* Here, we discard `const', making re_match non-reentrant. */
5876 p2 = (unsigned char*) p + mcnt; 5876 p2 = (unsigned char *) p + mcnt;
5877 /* Signedness doesn't matter since we only copy MCNT's bits. */ 5877 /* Signedness doesn't matter since we only copy MCNT's bits. */
5878 EXTRACT_NUMBER_AND_INCR (mcnt, p); 5878 EXTRACT_NUMBER_AND_INCR (mcnt, p);
5879 DEBUG_PRINT (" Setting %p to %d.\n", p2, mcnt); 5879 DEBUG_PRINT (" Setting %p to %d.\n", p2, mcnt);
@@ -6283,7 +6283,7 @@ re_compile_pattern (const char *pattern, size_t length,
6283 setting no_sub. */ 6283 setting no_sub. */
6284 bufp->no_sub = 0; 6284 bufp->no_sub = 0;
6285 6285
6286 ret = regex_compile ((re_char*) pattern, length, 6286 ret = regex_compile ((re_char *) pattern, length,
6287#ifdef emacs 6287#ifdef emacs
6288 posix_backtracking, 6288 posix_backtracking,
6289 whitespace_regexp, 6289 whitespace_regexp,
@@ -6446,7 +6446,7 @@ regcomp (regex_t *_Restrict_ preg, const char *_Restrict_ pattern,
6446 6446
6447 /* POSIX says a null character in the pattern terminates it, so we 6447 /* POSIX says a null character in the pattern terminates it, so we
6448 can use strlen here in compiling the pattern. */ 6448 can use strlen here in compiling the pattern. */
6449 ret = regex_compile ((re_char*) pattern, strlen (pattern), syntax, preg); 6449 ret = regex_compile ((re_char *) pattern, strlen (pattern), syntax, preg);
6450 6450
6451 /* POSIX doesn't distinguish between an unmatched open-group and an 6451 /* POSIX doesn't distinguish between an unmatched open-group and an
6452 unmatched close-group: both are REG_EPAREN. */ 6452 unmatched close-group: both are REG_EPAREN. */
diff --git a/src/term.c b/src/term.c
index 35fa8c931c1..8770aff8a92 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2536,7 +2536,8 @@ term_mouse_click (struct input_event *result, Gpm_Event *event,
2536} 2536}
2537 2537
2538int 2538int
2539handle_one_term_event (struct tty_display_info *tty, Gpm_Event *event, struct input_event* hold_quit) 2539handle_one_term_event (struct tty_display_info *tty, Gpm_Event *event,
2540 struct input_event *hold_quit)
2540{ 2541{
2541 struct frame *f = XFRAME (tty->top_frame); 2542 struct frame *f = XFRAME (tty->top_frame);
2542 struct input_event ie; 2543 struct input_event ie;
@@ -4134,9 +4135,11 @@ use the Bourne shell command 'TERM=...; export TERM' (C-shell:\n\
4134#ifdef TERMINFO 4135#ifdef TERMINFO
4135 /* Non-standard support for 24-bit colors. */ 4136 /* Non-standard support for 24-bit colors. */
4136 { 4137 {
4137 const char* fg = tigetstr ("setf24"); 4138 const char *fg = tigetstr ("setf24");
4138 const char* bg = tigetstr ("setb24"); 4139 const char *bg = tigetstr ("setb24");
4139 if (fg && bg && fg != (char *)-1 && bg != (char *)-1) 4140 if (fg && bg
4141 && fg != (char *) (intptr_t) -1
4142 && bg != (char *) (intptr_t) -1)
4140 { 4143 {
4141 tty->TS_set_foreground = fg; 4144 tty->TS_set_foreground = fg;
4142 tty->TS_set_background = bg; 4145 tty->TS_set_background = bg;
diff --git a/src/widget.c b/src/widget.c
index b05fd8310ab..96555ed2ac7 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -148,7 +148,7 @@ WidgetClass emacsFrameClass = (WidgetClass) &emacsFrameClassRec;
148static void 148static void
149get_default_char_pixel_size (EmacsFrame ew, int *pixel_width, int *pixel_height) 149get_default_char_pixel_size (EmacsFrame ew, int *pixel_width, int *pixel_height)
150{ 150{
151 struct frame* f = ew->emacs_frame.frame; 151 struct frame *f = ew->emacs_frame.frame;
152 *pixel_width = FRAME_COLUMN_WIDTH (f); 152 *pixel_width = FRAME_COLUMN_WIDTH (f);
153 *pixel_height = FRAME_LINE_HEIGHT (f); 153 *pixel_height = FRAME_LINE_HEIGHT (f);
154} 154}
@@ -156,7 +156,7 @@ get_default_char_pixel_size (EmacsFrame ew, int *pixel_width, int *pixel_height)
156static void 156static void
157pixel_to_char_size (EmacsFrame ew, Dimension pixel_width, Dimension pixel_height, int *char_width, int *char_height) 157pixel_to_char_size (EmacsFrame ew, Dimension pixel_width, Dimension pixel_height, int *char_width, int *char_height)
158{ 158{
159 struct frame* f = ew->emacs_frame.frame; 159 struct frame *f = ew->emacs_frame.frame;
160 *char_width = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, (int) pixel_width); 160 *char_width = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, (int) pixel_width);
161 *char_height = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, (int) pixel_height); 161 *char_height = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, (int) pixel_height);
162} 162}
@@ -164,7 +164,7 @@ pixel_to_char_size (EmacsFrame ew, Dimension pixel_width, Dimension pixel_height
164static void 164static void
165pixel_to_text_size (EmacsFrame ew, Dimension pixel_width, Dimension pixel_height, int *text_width, int *text_height) 165pixel_to_text_size (EmacsFrame ew, Dimension pixel_width, Dimension pixel_height, int *text_width, int *text_height)
166{ 166{
167 struct frame* f = ew->emacs_frame.frame; 167 struct frame *f = ew->emacs_frame.frame;
168 *text_width = FRAME_PIXEL_TO_TEXT_WIDTH (f, (int) pixel_width); 168 *text_width = FRAME_PIXEL_TO_TEXT_WIDTH (f, (int) pixel_width);
169 *text_height = FRAME_PIXEL_TO_TEXT_HEIGHT (f, (int) pixel_height); 169 *text_height = FRAME_PIXEL_TO_TEXT_HEIGHT (f, (int) pixel_height);
170} 170}
@@ -172,7 +172,7 @@ pixel_to_text_size (EmacsFrame ew, Dimension pixel_width, Dimension pixel_height
172static void 172static void
173char_to_pixel_size (EmacsFrame ew, int char_width, int char_height, Dimension *pixel_width, Dimension *pixel_height) 173char_to_pixel_size (EmacsFrame ew, int char_width, int char_height, Dimension *pixel_width, Dimension *pixel_height)
174{ 174{
175 struct frame* f = ew->emacs_frame.frame; 175 struct frame *f = ew->emacs_frame.frame;
176 *pixel_width = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, char_width); 176 *pixel_width = FRAME_TEXT_COLS_TO_PIXEL_WIDTH (f, char_width);
177 *pixel_height = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, char_height); 177 *pixel_height = FRAME_TEXT_LINES_TO_PIXEL_HEIGHT (f, char_height);
178} 178}
@@ -365,8 +365,8 @@ EmacsFrameInitialize (Widget request, Widget new, ArgList dum1, Cardinal *dum2)
365static void 365static void
366resize_cb (Widget widget, 366resize_cb (Widget widget,
367 XtPointer closure, 367 XtPointer closure,
368 XEvent* event, 368 XEvent *event,
369 Boolean* continue_to_dispatch) 369 Boolean *continue_to_dispatch)
370{ 370{
371 EmacsFrameResize (widget); 371 EmacsFrameResize (widget);
372} 372}
diff --git a/src/widget.h b/src/widget.h
index bb36f61a8f0..2c5fb61df2f 100644
--- a/src/widget.h
+++ b/src/widget.h
@@ -92,7 +92,7 @@ typedef struct _EmacsFrameClassRec *EmacsFrameClass;
92 92
93extern WidgetClass emacsFrameClass; 93extern WidgetClass emacsFrameClass;
94 94
95extern struct _DisplayContext* display_context; 95extern struct _DisplayContext *display_context;
96 96
97/* Special entry points */ 97/* Special entry points */
98void EmacsFrameSetCharSize (Widget, int, int); 98void EmacsFrameSetCharSize (Widget, int, int);
diff --git a/src/widgetprv.h b/src/widgetprv.h
index 9d31bddbe78..309aed779da 100644
--- a/src/widgetprv.h
+++ b/src/widgetprv.h
@@ -25,11 +25,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
25#include <X11/CoreP.h> 25#include <X11/CoreP.h>
26 26
27typedef struct { 27typedef struct {
28 struct frame* frame; /* the *emacs* frame object */ 28 struct frame *frame; /* the *emacs* frame object */
29 29
30 /* Resources that can't be done from lisp. 30 /* Resources that can't be done from lisp.
31 */ 31 */
32 char* geometry; /* geometry spec of this frame */ 32 char * geometry; /* geometry spec of this frame */
33 Boolean iconic; /* whether this frame is iconic */ 33 Boolean iconic; /* whether this frame is iconic */
34 34
35 /* The rest of this is crap and should be deleted. 35 /* The rest of this is crap and should be deleted.