repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: ec807860bb9e95c0112b3f49863da68a3c4e8962:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit ec807860bb9e95c0112b3f49863da68a3c4e8962
Author: Marc Lehmann 
Date:   Tue Dec 7 19:10:00 2010 +0000

    make set_options non-inline for total win-win-win-lose

diff --git a/src/main.C b/src/main.C
index c33f9f2050635ea722ae053e7a1bc9ebf02f6790..
index ..6cff2591135c4b0dbb04422d3182e3ebde9273d5 100644
--- a/src/main.C
+++ b/src/main.C
@@ -363,6 +363,18 @@ rxvt_term::destroy_cb (ev::idle &w, int revents)
   delete this;
 }

+void
+rxvt_term::set_option (uint8_t opt, bool set)
+{
+  if (!opt)
+    return;
+
+  uint8_t mask = 1 << (opt & 7);
+  uint8_t &val = options [opt >> 3];
+
+  val = val & ~mask | (set ? 0 : mask);
+}
+
 /*----------------------------------------------------------------------*/
 /*
  * Exit gracefully, clearing the utmp entry and restoring tty attributes
diff --git a/src/rxvt.h b/src/rxvt.h
index 5962780f797c7a19b74d14f34206088f740bc511..
index ..c20ec3f5aa687252063d289cd31749eb9c271434 100644
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -1385,16 +1385,7 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen
     return options[opt >> 3] & (1 << (opt & 7));
   }

-  void set_option (uint8_t opt, bool set = true) NOTHROW
-  {
-    if (!opt)
-      return;
-
-    uint8_t mask = 1 << (opt & 7);
-    uint8_t &val = options [opt >> 3];
-
-    val = val & ~mask | (set ? 0 : mask);
-  }
+  void set_option (uint8_t opt, bool set = true) NOTHROW;

   void set_privmode (unsigned bit, int set) NOTHROW
   {

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