-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 1a698c4664be3735ffec83ba2ff0548f93f88e9f:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 1a698c4664be3735ffec83ba2ff0548f93f88e9f
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Sun Aug 26 16:55:58 2007 +0000

    Make the PrivMode macro a method.

diff --git a/src/rxvt.h b/src/rxvt.h

index 4a2a4d0f6db5be00c44ca4c139952153f04ec272..

index ..3e4632bb3b1084690d49afb127ee7e22500b1075 100644

--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -698,11 +698,6 @@ enum {
 /* #define PrivMode_MouseX11Track       (1LU<<20) */

 #define PrivMode_mouse_report   (PrivMode_MouseX10|PrivMode_MouseX11)
-#define PrivMode(test,bit)              \
-    if (test)                           \
-        priv_modes |= (bit);            \
-    else                                \
-        priv_modes &= ~(bit)

 #ifdef ALLOW_132_MODE
 # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK)
@@ -1399,6 +1394,14 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
       options[opt >> 3] &= ~(1 << (opt & 7));
   }

+  void PrivMode (int set, unsigned bit) NOTHROW
+  {
+    if (set)
+      priv_modes |= bit;
+    else
+      priv_modes &= ~bit;
+  }
+
   void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW;
   void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW;
   int scr_scroll_text (int row1, int row2, int count) NOTHROW;

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 09:50:55 2024