aboutsummaryrefslogtreecommitdiffstats
path: root/src/xselect.c
diff options
context:
space:
mode:
authorRichard M. Stallman1996-01-25 22:00:11 +0000
committerRichard M. Stallman1996-01-25 22:00:11 +0000
commit002bbc0ed3bd99ce2f0ba5a9c796a56f725dd465 (patch)
tree0f7b66b5bb98eec1a6d7720c027b98c4c40ec58c /src/xselect.c
parent0158abbc71d93126d98c7a534013e5dc735dc438 (diff)
downloademacs-002bbc0ed3bd99ce2f0ba5a9c796a56f725dd465.tar.gz
emacs-002bbc0ed3bd99ce2f0ba5a9c796a56f725dd465.zip
(xfree): Macro deleted.
Callers changed to use `free' directly.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c38
1 files changed, 18 insertions, 20 deletions
diff --git a/src/xselect.c b/src/xselect.c
index ead207aedf3..9e4681f5dc4 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1,5 +1,5 @@
1/* X Selection processing for Emacs. 1/* X Selection processing for Emacs.
2 Copyright (C) 1993, 1994, 1995 Free Software Foundation. 2 Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -28,8 +28,6 @@ Boston, MA 02111-1307, USA. */
28#include "frame.h" /* Need this to get the X window of selected_frame */ 28#include "frame.h" /* Need this to get the X window of selected_frame */
29#include "blockinput.h" 29#include "blockinput.h"
30 30
31#define xfree free
32
33#define CUT_BUFFER_SUPPORT 31#define CUT_BUFFER_SUPPORT
34 32
35Lisp_Object QPRIMARY, QSECONDARY, QSTRING, QINTEGER, QCLIPBOARD, QTIMESTAMP, 33Lisp_Object QPRIMARY, QSECONDARY, QSTRING, QINTEGER, QCLIPBOARD, QTIMESTAMP,
@@ -721,10 +719,10 @@ x_handle_selection_request (event)
721 /* Indicate we have successfully processed this event. */ 719 /* Indicate we have successfully processed this event. */
722 x_selection_current_request = 0; 720 x_selection_current_request = 0;
723 721
724 /* Use xfree, not XFree, because lisp_data_to_selection_data 722 /* Use free, not XFree, because lisp_data_to_selection_data
725 calls xmalloc itself. */ 723 calls xmalloc itself. */
726 if (!nofree) 724 if (!nofree)
727 xfree (data); 725 free (data);
728 } 726 }
729 unbind_to (count, Qnil); 727 unbind_to (count, Qnil);
730 728
@@ -921,7 +919,7 @@ unexpect_property_change (location)
921 prev->next = rest->next; 919 prev->next = rest->next;
922 else 920 else
923 property_change_wait_list = rest->next; 921 property_change_wait_list = rest->next;
924 xfree (rest); 922 free (rest);
925 return; 923 return;
926 } 924 }
927 prev = rest; 925 prev = rest;
@@ -1010,7 +1008,7 @@ x_handle_property_notify (event)
1010 prev->next = rest->next; 1008 prev->next = rest->next;
1011 else 1009 else
1012 property_change_wait_list = rest->next; 1010 property_change_wait_list = rest->next;
1013 xfree (rest); 1011 free (rest);
1014 return; 1012 return;
1015 } 1013 }
1016 prev = rest; 1014 prev = rest;
@@ -1155,7 +1153,7 @@ x_get_foreign_selection (selection_symbol, target_type)
1155 1153
1156/* Subroutines of x_get_window_property_as_lisp_data */ 1154/* Subroutines of x_get_window_property_as_lisp_data */
1157 1155
1158/* Use xfree, not XFree, to free the data obtained with this function. */ 1156/* Use free, not XFree, to free the data obtained with this function. */
1159 1157
1160static void 1158static void
1161x_get_window_property (display, window, property, data_ret, bytes_ret, 1159x_get_window_property (display, window, property, data_ret, bytes_ret,
@@ -1238,7 +1236,7 @@ x_get_window_property (display, window, property, data_ret, bytes_ret,
1238 *bytes_ret = offset; 1236 *bytes_ret = offset;
1239} 1237}
1240 1238
1241/* Use xfree, not XFree, to free the data obtained with this function. */ 1239/* Use free, not XFree, to free the data obtained with this function. */
1242 1240
1243static void 1241static void
1244receive_incremental_selection (display, window, property, target_type, 1242receive_incremental_selection (display, window, property, target_type,
@@ -1300,9 +1298,9 @@ receive_incremental_selection (display, window, property, target_type,
1300 if (! waiting_for_other_props_on_window (display, window)) 1298 if (! waiting_for_other_props_on_window (display, window))
1301 XSelectInput (display, window, STANDARD_EVENT_SET); 1299 XSelectInput (display, window, STANDARD_EVENT_SET);
1302 unexpect_property_change (wait_object); 1300 unexpect_property_change (wait_object);
1303 /* Use xfree, not XFree, because x_get_window_property 1301 /* Use free, not XFree, because x_get_window_property
1304 calls xmalloc itself. */ 1302 calls xmalloc itself. */
1305 if (tmp_data) xfree (tmp_data); 1303 if (tmp_data) free (tmp_data);
1306 break; 1304 break;
1307 } 1305 }
1308 1306
@@ -1327,9 +1325,9 @@ receive_incremental_selection (display, window, property, target_type,
1327 } 1325 }
1328 bcopy (tmp_data, (*data_ret) + offset, tmp_size_bytes); 1326 bcopy (tmp_data, (*data_ret) + offset, tmp_size_bytes);
1329 offset += tmp_size_bytes; 1327 offset += tmp_size_bytes;
1330 /* Use xfree, not XFree, because x_get_window_property 1328 /* Use free, not XFree, because x_get_window_property
1331 calls xmalloc itself. */ 1329 calls xmalloc itself. */
1332 xfree (tmp_data); 1330 free (tmp_data);
1333 } 1331 }
1334} 1332}
1335 1333
@@ -1385,9 +1383,9 @@ x_get_window_property_as_lisp_data (display, window, property, target_type,
1385 1383
1386 unsigned int min_size_bytes = * ((unsigned int *) data); 1384 unsigned int min_size_bytes = * ((unsigned int *) data);
1387 BLOCK_INPUT; 1385 BLOCK_INPUT;
1388 /* Use xfree, not XFree, because x_get_window_property 1386 /* Use free, not XFree, because x_get_window_property
1389 calls xmalloc itself. */ 1387 calls xmalloc itself. */
1390 xfree ((char *) data); 1388 free ((char *) data);
1391 UNBLOCK_INPUT; 1389 UNBLOCK_INPUT;
1392 receive_incremental_selection (display, window, property, target_type, 1390 receive_incremental_selection (display, window, property, target_type,
1393 min_size_bytes, &data, &bytes, 1391 min_size_bytes, &data, &bytes,
@@ -1405,9 +1403,9 @@ x_get_window_property_as_lisp_data (display, window, property, target_type,
1405 val = selection_data_to_lisp_data (display, data, bytes, 1403 val = selection_data_to_lisp_data (display, data, bytes,
1406 actual_type, actual_format); 1404 actual_type, actual_format);
1407 1405
1408 /* Use xfree, not XFree, because x_get_window_property 1406 /* Use free, not XFree, because x_get_window_property
1409 calls xmalloc itself. */ 1407 calls xmalloc itself. */
1410 xfree ((char *) data); 1408 free ((char *) data);
1411 return val; 1409 return val;
1412} 1410}
1413 1411
@@ -1509,7 +1507,7 @@ selection_data_to_lisp_data (display, data, size, type, format)
1509} 1507}
1510 1508
1511 1509
1512/* Use xfree, not XFree, to free the data obtained with this function. */ 1510/* Use free, not XFree, to free the data obtained with this function. */
1513 1511
1514static void 1512static void
1515lisp_data_to_selection_data (display, obj, 1513lisp_data_to_selection_data (display, obj,
@@ -1996,9 +1994,9 @@ DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal,
1996 Fcons (make_number (format), Qnil)))); 1994 Fcons (make_number (format), Qnil))));
1997 1995
1998 ret = (bytes ? make_string ((char *) data, bytes) : Qnil); 1996 ret = (bytes ? make_string ((char *) data, bytes) : Qnil);
1999 /* Use xfree, not XFree, because x_get_window_property 1997 /* Use free, not XFree, because x_get_window_property
2000 calls xmalloc itself. */ 1998 calls xmalloc itself. */
2001 xfree (data); 1999 free (data);
2002 return ret; 2000 return ret;
2003} 2001}
2004 2002