mirror of
				https://github.com/troglobit/editline.git
				synced 2025-11-04 03:08:06 +08:00 
			
		
		
		
	Remove unused CHAR type and replace SIZE_T with size_t, we check for that.
This commit is contained in:
		@@ -41,10 +41,10 @@ static int FindMatches(char *dir, char *file, char ***avp)
 | 
			
		||||
    char        *p;
 | 
			
		||||
    DIR         *dp;
 | 
			
		||||
    DIRENTRY    *ep;
 | 
			
		||||
    SIZE_T      ac;
 | 
			
		||||
    SIZE_T      len;
 | 
			
		||||
    SIZE_T      choices;
 | 
			
		||||
    SIZE_T      total;
 | 
			
		||||
    size_t      ac;
 | 
			
		||||
    size_t      len;
 | 
			
		||||
    size_t      choices;
 | 
			
		||||
    size_t      total;
 | 
			
		||||
 | 
			
		||||
    if ((dp = opendir(dir)) == NULL)
 | 
			
		||||
        return 0;
 | 
			
		||||
@@ -159,11 +159,11 @@ char *el_filename_complete(char *pathname, int *match)
 | 
			
		||||
    char        *file;
 | 
			
		||||
    char        *new;
 | 
			
		||||
    char        *p;
 | 
			
		||||
    SIZE_T      ac;
 | 
			
		||||
    SIZE_T      end;
 | 
			
		||||
    SIZE_T      i;
 | 
			
		||||
    SIZE_T      j;
 | 
			
		||||
    SIZE_T      len;
 | 
			
		||||
    size_t      ac;
 | 
			
		||||
    size_t      end;
 | 
			
		||||
    size_t      i;
 | 
			
		||||
    size_t      j;
 | 
			
		||||
    size_t      len;
 | 
			
		||||
 | 
			
		||||
    if (SplitPath(pathname, &dir, &file) < 0)
 | 
			
		||||
        return NULL;
 | 
			
		||||
 
 | 
			
		||||
@@ -99,9 +99,9 @@ static int        Pushed;
 | 
			
		||||
static int        Signal;
 | 
			
		||||
static el_keymap_t Map[];
 | 
			
		||||
static el_keymap_t MetaMap[];
 | 
			
		||||
static SIZE_T     Length;
 | 
			
		||||
static SIZE_T     ScreenCount;
 | 
			
		||||
static SIZE_T     ScreenSize;
 | 
			
		||||
static size_t     Length;
 | 
			
		||||
static size_t     ScreenCount;
 | 
			
		||||
static size_t     ScreenSize;
 | 
			
		||||
static char       *backspace;
 | 
			
		||||
static int        tty_cols;
 | 
			
		||||
static int        tty_rows;
 | 
			
		||||
@@ -447,7 +447,7 @@ static void clear_line(void)
 | 
			
		||||
 | 
			
		||||
static el_status_t insert_string(const char *p)
 | 
			
		||||
{
 | 
			
		||||
    SIZE_T      len;
 | 
			
		||||
    size_t      len;
 | 
			
		||||
    int         i;
 | 
			
		||||
    char        *new;
 | 
			
		||||
    char        *q;
 | 
			
		||||
@@ -1105,7 +1105,7 @@ static char *find_word(void)
 | 
			
		||||
{
 | 
			
		||||
    char        *p, *q;
 | 
			
		||||
    char        *new;
 | 
			
		||||
    SIZE_T      len;
 | 
			
		||||
    size_t      len;
 | 
			
		||||
 | 
			
		||||
    p = &rl_line_buffer[rl_point];
 | 
			
		||||
    while (p > rl_line_buffer) {
 | 
			
		||||
@@ -1164,7 +1164,7 @@ static el_status_t c_complete(void)
 | 
			
		||||
{
 | 
			
		||||
    char        *p, *q;
 | 
			
		||||
    char        *word, *new;
 | 
			
		||||
    SIZE_T      len;
 | 
			
		||||
    size_t      len;
 | 
			
		||||
    int         unique;
 | 
			
		||||
    el_status_t s = 0;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -53,12 +53,6 @@
 | 
			
		||||
# include <sys/ioctl.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifndef SIZE_T
 | 
			
		||||
#define SIZE_T	unsigned int
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
typedef unsigned char	CHAR;
 | 
			
		||||
 | 
			
		||||
#define MEM_INC		64
 | 
			
		||||
#define SCREEN_INC	256
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user