aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-12-08 14:53:04 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-08 14:53:04 -0800
commit8841922689769960fa074fbb053cb8507f2f3ed9 (patch)
tree65f97aec1079a6814d48198fea787f51cb77e83b
parentfa00fe882f719351fdf7a4c4100baf4f3eab4d61 (diff)
downloaduemacs-8841922689769960fa074fbb053cb8507f2f3ed9.tar.gz
Don't use 'char' for number of lines
Heh. My new UHD monitor makes it easy to have more than 127 lines of text. I guess the 'char' could be an unsigned char, but quite frankly, trying to save a couple of bytes per open editor window seems a bit excessive these days. So just make it 'int'. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--Makefile2
-rw-r--r--estruct.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 76a8122..ed9d81c 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ HDR=ebind.h edef.h efunc.h epath.h estruct.h evar.h util.h version.h
CC=gcc
WARNINGS=-Wall -Wstrict-prototypes
-CFLAGS=-O2 $(WARNINGS)
+CFLAGS=-O2 $(WARNINGS) -g
#CC=c89 +O3 # HP
#CFLAGS= -D_HPUX_SOURCE -DSYSV
#CFLAGS=-O4 -DSVR4 # Sun
diff --git a/estruct.h b/estruct.h
index 3c382ce..8240f78 100644
--- a/estruct.h
+++ b/estruct.h
@@ -415,8 +415,8 @@ struct window {
struct line *w_markp; /* Line containing "mark" */
int w_doto; /* Byte offset for "." */
int w_marko; /* Byte offset for "mark" */
- char w_toprow; /* Origin 0 top row of window */
- char w_ntrows; /* # of rows of text in window */
+ int w_toprow; /* Origin 0 top row of window */
+ int w_ntrows; /* # of rows of text in window */
char w_force; /* If NZ, forcing row. */
char w_flag; /* Flags. */
#if COLOR