Changeset 221
- Timestamp:
- 04/21/08 15:16:55 (7 months ago)
- Files:
-
- xsel/trunk/xsel.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
xsel/trunk/xsel.c
r210 r221 30 30 #include <setjmp.h> 31 31 #include <signal.h> 32 #include <X11/StringDefs.h>33 32 #include <X11/Xlib.h> 34 #include <X11/Intrinsic.h>35 33 #include <X11/Xatom.h> 36 34 … … 74 72 75 73 /* do_follow: Follow mode for output */ 76 static Bool eando_follow = False;74 static Bool do_follow = False; 77 75 78 76 /* nodaemon: Disable daemon mode if True. */ 79 static Bool eanno_daemon = False;77 static Bool no_daemon = False; 80 78 81 79 /* logfile: name of file to log error messages to when detached */ … … 490 488 * If an error is encountered, the buffer is free'd. 491 489 */ 492 static Bool ean490 static Bool 493 491 get_append_property (XSelectionEvent * xsl, unsigned char ** buffer, 494 492 int * offset, int * alloc) … … 547 545 unsigned char * incr_base = NULL, * incr_ptr = NULL; 548 546 int incr_alloc = 0, incr_xfer = 0; 549 Bool eanwait_prop = True;547 Bool wait_prop = True; 550 548 551 549 print_debug (D_TRACE, "Initialising incremental retrieval of at least %d bytes\n", init_alloc); … … 601 599 unsigned long bytesafter, length; 602 600 unsigned char * value, * retval = NULL; 603 Bool eankeep_waiting = True;601 Bool keep_waiting = True; 604 602 605 603 while (keep_waiting) { … … 777 775 */ 778 776 static unsigned char * 779 read_input (unsigned char * read_buffer, Bool eando_select)777 read_input (unsigned char * read_buffer, Bool do_select) 780 778 { 781 779 int insize = in_statbuf.st_blksize; … … 917 915 * granted, and False otherwise. 918 916 */ 919 static Bool ean917 static Bool 920 918 own_selection (Atom selection) 921 919 { … … 1027 1025 /* Forward declaration of process_multiple() */ 1028 1026 static HandleResult 1029 process_multiple (MultTrack * mt, Bool eando_parent);1027 process_multiple (MultTrack * mt, Bool do_parent); 1030 1028 1031 1029 /* … … 1139 1137 */ 1140 1138 static void 1141 complete_multiple (MultTrack * mt, Bool eando_parent, HandleResult hr)1139 complete_multiple (MultTrack * mt, Bool do_parent, HandleResult hr) 1142 1140 { 1143 1141 MultTrack * mparent = mt->mparent; … … 1368 1366 */ 1369 1367 static HandleResult 1370 process_multiple (MultTrack * mt, Bool eando_parent)1368 process_multiple (MultTrack * mt, Bool do_parent) 1371 1369 { 1372 1370 HandleResult retval = HANDLE_OK; … … 1507 1505 * Returns True otherwise. 1508 1506 */ 1509 static Bool ean1507 static Bool 1510 1508 handle_selection_request (XEvent event, unsigned char * sel) 1511 1509 { … … 1513 1511 XSelectionEvent ev; 1514 1512 HandleResult hr = HANDLE_OK; 1515 Bool eanretval = True;1513 Bool retval = True; 1516 1514 1517 1515 print_debug (D_TRACE, "handle_selection_request, property=0x%x (%s), target=0x%x (%s)", … … 1900 1898 main(int argc, char *argv[]) 1901 1899 { 1902 Bool eanshow_version = False;1903 Bool eanshow_help = False;1904 Bool eando_append = False, do_clear = False;1905 Bool eando_keep = False, do_exchange = False;1906 Bool eando_input = False, do_output = False;1907 Bool eandont_input = True, dont_output = False;1908 Bool eanwant_clipboard = False, do_delete = False;1900 Bool show_version = False; 1901 Bool show_help = False; 1902 Bool do_append = False, do_clear = False; 1903 Bool do_keep = False, do_exchange = False; 1904 Bool do_input = False, do_output = False; 1905 Bool dont_input = True, dont_output = False; 1906 Bool want_clipboard = False, do_delete = False; 1909 1907 Window root; 1910 1908 Atom selection = XA_PRIMARY, test_atom;
