diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-08 14:53:04 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-08 14:53:04 -0800 |
commit | 8841922689769960fa074fbb053cb8507f2f3ed9 (patch) | |
tree | 65f97aec1079a6814d48198fea787f51cb77e83b | |
parent | fa00fe882f719351fdf7a4c4100baf4f3eab4d61 (diff) | |
download | uemacs-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-- | Makefile | 2 | ||||
-rw-r--r-- | estruct.h | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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 |