aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32select.c
diff options
context:
space:
mode:
authorJuanma Barranquero2010-07-07 11:45:28 +0200
committerJuanma Barranquero2010-07-07 11:45:28 +0200
commited3751c8245cbf523caf4975f654d459f070ea9a (patch)
tree1bc6a7e69181867c76389dbaca292f8d29af351a /src/w32select.c
parentcf84bb53567cf64b3dade9e9abeaef289371f0cc (diff)
downloademacs-ed3751c8245cbf523caf4975f654d459f070ea9a.tar.gz
emacs-ed3751c8245cbf523caf4975f654d459f070ea9a.zip
Fix whitespace to follow coding guidelines.
Diffstat (limited to 'src/w32select.c')
-rw-r--r--src/w32select.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/w32select.c b/src/w32select.c
index 4ecd926ed79..020d272479c 100644
--- a/src/w32select.c
+++ b/src/w32select.c
@@ -224,7 +224,7 @@ convert_to_handle_as_coded (Lisp_Object coding_system)
224 SDATA (SYMBOL_NAME (coding_system)))); 224 SDATA (SYMBOL_NAME (coding_system))));
225 225
226 setup_windows_coding_system (coding_system, &coding); 226 setup_windows_coding_system (coding_system, &coding);
227 coding.dst_bytes = SBYTES(current_text) * 2; 227 coding.dst_bytes = SBYTES (current_text) * 2;
228 coding.destination = (unsigned char *) xmalloc (coding.dst_bytes); 228 coding.destination = (unsigned char *) xmalloc (coding.dst_bytes);
229 encode_coding_object (&coding, current_text, 0, 0, 229 encode_coding_object (&coding, current_text, 0, 0,
230 SCHARS (current_text), SBYTES (current_text), Qnil); 230 SCHARS (current_text), SBYTES (current_text), Qnil);
@@ -290,7 +290,7 @@ render (Lisp_Object oformat)
290 290
291 if (SetClipboardData (format, htext) == NULL) 291 if (SetClipboardData (format, htext) == NULL)
292 { 292 {
293 GlobalFree(htext); 293 GlobalFree (htext);
294 return Qnil; 294 return Qnil;
295 } 295 }
296 296
@@ -314,7 +314,7 @@ render_locale (void)
314 314
315 if ((lcid_ptr = (LCID *) GlobalLock (hlocale)) == NULL) 315 if ((lcid_ptr = (LCID *) GlobalLock (hlocale)) == NULL)
316 { 316 {
317 GlobalFree(hlocale); 317 GlobalFree (hlocale);
318 return Qnil; 318 return Qnil;
319 } 319 }
320 320
@@ -323,7 +323,7 @@ render_locale (void)
323 323
324 if (SetClipboardData (CF_LOCALE, hlocale) == NULL) 324 if (SetClipboardData (CF_LOCALE, hlocale) == NULL)
325 { 325 {
326 GlobalFree(hlocale); 326 GlobalFree (hlocale);
327 return Qnil; 327 return Qnil;
328 } 328 }
329 329
@@ -380,7 +380,7 @@ render_all (Lisp_Object ignore)
380 automatic conversions anywhere else, so to get consistent 380 automatic conversions anywhere else, so to get consistent
381 results, we probably don't want to rely on it here either. */ 381 results, we probably don't want to rely on it here either. */
382 382
383 render_locale(); 383 render_locale ();
384 384
385 if (current_clipboard_type == CF_UNICODETEXT) 385 if (current_clipboard_type == CF_UNICODETEXT)
386 render (make_number (CF_TEXT)); 386 render (make_number (CF_TEXT));
@@ -744,7 +744,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data,
744 /* If we have something non-ASCII we may want to set a locale. We 744 /* If we have something non-ASCII we may want to set a locale. We
745 do that directly (non-delayed), as it's just a small bit. */ 745 do that directly (non-delayed), as it's just a small bit. */
746 if (ok) 746 if (ok)
747 ok = !NILP(render_locale()); 747 ok = !NILP (render_locale ());
748 748
749 if (ok) 749 if (ok)
750 { 750 {
@@ -753,7 +753,7 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data,
753 /* If for some reason we don't have a clipboard_owner, we 753 /* If for some reason we don't have a clipboard_owner, we
754 just set the text format as chosen by the configuration 754 just set the text format as chosen by the configuration
755 and than forget about the whole thing. */ 755 and than forget about the whole thing. */
756 ok = !NILP(render (make_number (current_clipboard_type))); 756 ok = !NILP (render (make_number (current_clipboard_type)));
757 current_text = Qnil; 757 current_text = Qnil;
758 current_coding_system = Qnil; 758 current_coding_system = Qnil;
759 } 759 }