Remove unused CHAR type and replace SIZE_T with size_t, we check for that.

This commit is contained in:
Joachim Nilsson 2010-07-24 03:12:45 +02:00
parent a7eea67253
commit 83e4837f39
3 changed files with 15 additions and 21 deletions

View File

@ -41,10 +41,10 @@ static int FindMatches(char *dir, char *file, char ***avp)
char *p; char *p;
DIR *dp; DIR *dp;
DIRENTRY *ep; DIRENTRY *ep;
SIZE_T ac; size_t ac;
SIZE_T len; size_t len;
SIZE_T choices; size_t choices;
SIZE_T total; size_t total;
if ((dp = opendir(dir)) == NULL) if ((dp = opendir(dir)) == NULL)
return 0; return 0;
@ -159,11 +159,11 @@ char *el_filename_complete(char *pathname, int *match)
char *file; char *file;
char *new; char *new;
char *p; char *p;
SIZE_T ac; size_t ac;
SIZE_T end; size_t end;
SIZE_T i; size_t i;
SIZE_T j; size_t j;
SIZE_T len; size_t len;
if (SplitPath(pathname, &dir, &file) < 0) if (SplitPath(pathname, &dir, &file) < 0)
return NULL; return NULL;

View File

@ -99,9 +99,9 @@ static int Pushed;
static int Signal; static int Signal;
static el_keymap_t Map[]; static el_keymap_t Map[];
static el_keymap_t MetaMap[]; static el_keymap_t MetaMap[];
static SIZE_T Length; static size_t Length;
static SIZE_T ScreenCount; static size_t ScreenCount;
static SIZE_T ScreenSize; static size_t ScreenSize;
static char *backspace; static char *backspace;
static int tty_cols; static int tty_cols;
static int tty_rows; static int tty_rows;
@ -447,7 +447,7 @@ static void clear_line(void)
static el_status_t insert_string(const char *p) static el_status_t insert_string(const char *p)
{ {
SIZE_T len; size_t len;
int i; int i;
char *new; char *new;
char *q; char *q;
@ -1105,7 +1105,7 @@ static char *find_word(void)
{ {
char *p, *q; char *p, *q;
char *new; char *new;
SIZE_T len; size_t len;
p = &rl_line_buffer[rl_point]; p = &rl_line_buffer[rl_point];
while (p > rl_line_buffer) { while (p > rl_line_buffer) {
@ -1164,7 +1164,7 @@ static el_status_t c_complete(void)
{ {
char *p, *q; char *p, *q;
char *word, *new; char *word, *new;
SIZE_T len; size_t len;
int unique; int unique;
el_status_t s = 0; el_status_t s = 0;

View File

@ -53,12 +53,6 @@
# include <sys/ioctl.h> # include <sys/ioctl.h>
#endif #endif
#ifndef SIZE_T
#define SIZE_T unsigned int
#endif
typedef unsigned char CHAR;
#define MEM_INC 64 #define MEM_INC 64
#define SCREEN_INC 256 #define SCREEN_INC 256