*** /home/trentm/main/contrib/python/dist/src/Modules/_localemodule.c Thu Jun 1 00:13:39 2000 --- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/_localemodule.c Fri Jun 2 15:53:42 2000 *************** *** 281,287 **** PyObject* args; { char *s,*buf; ! int n1,n2; PyObject *result; if(!PyArg_ParseTuple(args,"s:strxfrm",&s)) return NULL; --- 281,287 ---- PyObject* args; { char *s,*buf; ! size_t n1,n2; PyObject *result; if(!PyArg_ParseTuple(args,"s:strxfrm",&s)) return NULL; *** /home/trentm/main/contrib/python/dist/src/Modules/arraymodule.c Thu Jun 1 01:38:58 2000 --- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/arraymodule.c Fri Jun 2 15:53:42 2000 *************** *** 1022,1028 **** if (n > 0) { char *item = self->ob_item; int itemsize = self->ob_descr->itemsize; ! int nread; int newlength; size_t newbytes; /* Be careful here about overflow */ --- 1022,1028 ---- if (n > 0) { char *item = self->ob_item; int itemsize = self->ob_descr->itemsize; ! size_t nread; int newlength; size_t newbytes; /* Be careful here about overflow */ *************** *** 1040,1046 **** self->ob_size += n; nread = fread(item + (self->ob_size - n) * itemsize, itemsize, n, fp); ! if (nread < n) { self->ob_size -= (n - nread); PyMem_RESIZE(item, char, self->ob_size*itemsize); self->ob_item = item; --- 1040,1046 ---- self->ob_size += n; nread = fread(item + (self->ob_size - n) * itemsize, itemsize, n, fp); ! if (nread < (size_t)n) { self->ob_size -= (n - nread); PyMem_RESIZE(item, char, self->ob_size*itemsize); self->ob_item = item; *** /home/trentm/main/contrib/python/dist/src/Modules/getpath.c Thu Jun 1 00:13:39 2000 --- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/getpath.c Fri Jun 2 15:53:43 2000 *************** *** 163,169 **** reduce(dir) char *dir; { ! int i = strlen(dir); while (i > 0 && dir[i] != SEP) --i; dir[i] = '\0'; --- 163,169 ---- reduce(dir) char *dir; { ! size_t i = strlen(dir); while (i > 0 && dir[i] != SEP) --i; dir[i] = '\0'; *************** *** 241,247 **** char *buffer; char *stuff; { ! int n, k; if (stuff[0] == SEP) n = 0; else { --- 241,247 ---- char *buffer; char *stuff; { ! size_t n, k; if (stuff[0] == SEP) n = 0; else { *************** *** 262,268 **** char *argv0_path; char *home; { ! int n; char *vpath; /* If PYTHONHOME is set, we believe it unconditionally */ --- 262,268 ---- char *argv0_path; char *home; { ! size_t n; char *vpath; /* If PYTHONHOME is set, we believe it unconditionally */ *************** *** 331,337 **** char *argv0_path; char *home; { ! int n; /* If PYTHONHOME is set, we believe it unconditionally */ if (home) { --- 331,337 ---- char *argv0_path; char *home; { ! size_t n; /* If PYTHONHOME is set, we believe it unconditionally */ if (home) { *************** *** 393,400 **** char argv0_path[MAXPATHLEN+1]; int pfound, efound; /* 1 if found; -1 if found build directory */ char *buf; ! int bufsz; ! int prefixsz; char *defpath = pythonpath; #ifdef WITH_NEXT_FRAMEWORK NSModule pythonModule; --- 393,400 ---- char argv0_path[MAXPATHLEN+1]; int pfound, efound; /* 1 if found; -1 if found build directory */ char *buf; ! size_t bufsz; ! size_t prefixsz; char *defpath = pythonpath; #ifdef WITH_NEXT_FRAMEWORK NSModule pythonModule; *************** *** 429,435 **** char *delim = strchr(path, DELIM); if (delim) { ! int len = delim - path; strncpy(progpath, path, len); *(progpath + len) = '\0'; } --- 429,435 ---- char *delim = strchr(path, DELIM); if (delim) { ! size_t len = delim - path; strncpy(progpath, path, len); *(progpath + len) = '\0'; } *************** *** 557,564 **** } if (delim) { ! int len = delim - defpath + 1; ! int end = strlen(buf) + len; strncat(buf, defpath, len); *(buf + end) = '\0'; } --- 557,564 ---- } if (delim) { ! size_t len = delim - defpath + 1; ! size_t end = strlen(buf) + len; strncat(buf, defpath, len); *(buf + end) = '\0'; } *** /home/trentm/main/contrib/python/dist/src/Modules/mpzmodule.c Fri Jun 2 11:21:14 2000 --- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/mpzmodule.c Fri Jun 2 15:53:43 2000 *************** *** 143,149 **** { mpzobject *mpzp = (mpzobject *)objp; PyStringObject *strobjp; ! int i; int cmpres; int taglong; char *cp; --- 143,149 ---- { mpzobject *mpzp = (mpzobject *)objp; PyStringObject *strobjp; ! size_t i; int cmpres; int taglong; char *cp; *** /home/trentm/main/contrib/python/dist/src/Modules/readline.c Thu Jun 1 00:13:39 2000 --- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/readline.c Fri Jun 2 15:53:43 2000 *************** *** 376,382 **** call_readline(prompt) char *prompt; { ! int n; char *p, *q; RETSIGTYPE (*old_inthandler)(); old_inthandler = signal(SIGINT, onintr); --- 376,382 ---- call_readline(prompt) char *prompt; { ! size_t n; char *p, *q; RETSIGTYPE (*old_inthandler)(); old_inthandler = signal(SIGINT, onintr); *** /home/trentm/main/contrib/python/dist/src/Modules/rotormodule.c Thu Jun 1 00:13:39 2000 --- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/rotormodule.c Fri Jun 2 15:53:43 2000 *************** *** 147,154 **** char *key; { unsigned long k1=995, k2=576, k3=767, k4=671, k5=463; ! int i; ! int len = strlen(key); for (i = 0; i < len; i++) { unsigned short ki = Py_CHARMASK(key[i]); --- 147,154 ---- char *key; { unsigned long k1=995, k2=576, k3=767, k4=671, k5=463; ! size_t i; ! size_t len = strlen(key); for (i = 0; i < len; i++) { unsigned short ki = Py_CHARMASK(key[i]); *** /home/trentm/main/contrib/python/dist/src/Modules/timemodule.c Thu Jun 1 19:34:28 2000 --- /home/trentm/main/Apps/Perlium/Python/dist/src/Modules/timemodule.c Fri Jun 2 15:53:43 2000 *************** *** 379,387 **** PyObject *tup; struct tm buf; const char *fmt; ! int fmtlen, buflen; char *outbuf = 0; ! int i; memset((ANY *) &buf, '\0', sizeof(buf)); --- 379,387 ---- PyObject *tup; struct tm buf; const char *fmt; ! size_t fmtlen, buflen; char *outbuf = 0; ! size_t i; memset((ANY *) &buf, '\0', sizeof(buf));