mirror of
				https://github.com/rfivet/uemacs.git
				synced 2025-11-03 10:17:36 -05:00 
			
		
		
		
	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>
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -34,7 +34,7 @@ HDR=ebind.h edef.h efunc.h epath.h estruct.h evar.h util.h version.h
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
CC=gcc
 | 
					CC=gcc
 | 
				
			||||||
WARNINGS=-Wall -Wstrict-prototypes
 | 
					WARNINGS=-Wall -Wstrict-prototypes
 | 
				
			||||||
CFLAGS=-O2 $(WARNINGS)
 | 
					CFLAGS=-O2 $(WARNINGS) -g
 | 
				
			||||||
#CC=c89 +O3			# HP
 | 
					#CC=c89 +O3			# HP
 | 
				
			||||||
#CFLAGS= -D_HPUX_SOURCE -DSYSV
 | 
					#CFLAGS= -D_HPUX_SOURCE -DSYSV
 | 
				
			||||||
#CFLAGS=-O4 -DSVR4		# Sun
 | 
					#CFLAGS=-O4 -DSVR4		# Sun
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -415,8 +415,8 @@ struct window {
 | 
				
			|||||||
	struct line *w_markp;	/* Line containing "mark"       */
 | 
						struct line *w_markp;	/* Line containing "mark"       */
 | 
				
			||||||
	int w_doto;		/* Byte offset for "."          */
 | 
						int w_doto;		/* Byte offset for "."          */
 | 
				
			||||||
	int w_marko;		/* Byte offset for "mark"       */
 | 
						int w_marko;		/* Byte offset for "mark"       */
 | 
				
			||||||
	char w_toprow;		/* Origin 0 top row of window   */
 | 
						int w_toprow;		/* Origin 0 top row of window   */
 | 
				
			||||||
	char w_ntrows;		/* # of rows of text in window  */
 | 
						int w_ntrows;		/* # of rows of text in window  */
 | 
				
			||||||
	char w_force;		/* If NZ, forcing row.          */
 | 
						char w_force;		/* If NZ, forcing row.          */
 | 
				
			||||||
	char w_flag;		/* Flags.                       */
 | 
						char w_flag;		/* Flags.                       */
 | 
				
			||||||
#if	COLOR
 | 
					#if	COLOR
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user