[hackers] [st] Moving the alt declaration to the beginning of the function. || Christoph Lohmann
changeset: 395:4b5737547d04
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Thu Nov 08 17:22:48 2012 +0100
files: st.c
description:
Moving the alt declaration to the beginning of the function.
diff -r 45bb15b917b6 -r 4b5737547d04 st.c
--- a/st.c Thu Nov 08 17:22:04 2012 +0100
+++ b/st.c Thu Nov 08 17:22:48 2012 +0100
_AT_@ -1459,6 +1459,7 @@
void
tsetmode(bool priv, bool set, int *args, int narg) {
int *lim, mode;
+ bool alt;
for(lim = args + narg; args < lim; ++args) {
if(priv) {
_AT_@ -1502,7 +1503,7 @@
case 1049: /* = 1047 and 1048 */
case 47:
case 1047: {
- bool alt = IS_SET(MODE_ALTSCREEN) != 0;
+ alt = IS_SET(MODE_ALTSCREEN) != 0;
if(alt)
tclearregion(0, 0, term.col-1, term.row-1);
if(set ^ alt) /* set is always 1 or 0 */
Received on Thu Nov 08 2012 - 17:24:48 CET
This archive was generated by hypermail 2.3.0
: Thu Nov 08 2012 - 17:36:13 CET