repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: ec807860bb9e95c0112b3f49863da68a3c4e8962: path_to: revision_to:
commit ec807860bb9e95c0112b3f49863da68a3c4e8962 Author: Marc LehmannDate: 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
--- 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
--- 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-----