summaryrefslogtreecommitdiffstats
path: root/generic/regc_locale.c
diff options
context:
space:
mode:
authordas <das>2006-07-20 06:17:38 (GMT)
committerdas <das>2006-07-20 06:17:38 (GMT)
commitf2a1ea5dbae4b3440723227e75a0c9da1d88ff93 (patch)
treeb705c8427d769d47111756d48dc62a7053128fac /generic/regc_locale.c
parent475cf649d6dfe709736b11ba805cba2827753363 (diff)
downloadtcl-f2a1ea5dbae4b3440723227e75a0c9da1d88ff93.zip
tcl-f2a1ea5dbae4b3440723227e75a0c9da1d88ff93.tar.gz
tcl-f2a1ea5dbae4b3440723227e75a0c9da1d88ff93.tar.bz2
* generic/regc_locale.c (cclass):
* generic/tclExecute.c (TclExecuteByteCode): * generic/tclIOCmd.c (Tcl_ExecObjCmd): * generic/tclListObj.c (NewListIntRep): * generic/tclObj.c (Tcl_GetLongFromObj, Tcl_GetWideIntFromObj, FreeBignum, Tcl_SetBignumObj): * generic/tclParseExpr.c (Tcl_ParseExpr): * generic/tclStrToD.c (TclParseNumber): * generic/tclStringObj.c (TclAppendFormattedObjs): * unix/tclUnixPipe.c (TclpCreateProcess): fix signed-with-unsigned comparison and other warnings from gcc4 -Wextra.
Diffstat (limited to 'generic/regc_locale.c')
-rw-r--r--generic/regc_locale.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/generic/regc_locale.c b/generic/regc_locale.c
index 1b573d8..e6eb12a 100644
--- a/generic/regc_locale.c
+++ b/generic/regc_locale.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: regc_locale.c,v 1.13 2006/04/12 14:13:30 dkf Exp $
+ * RCS: @(#) $Id: regc_locale.c,v 1.14 2006/07/20 06:17:38 das Exp $
*/
/* ASCII character-name table */
@@ -891,10 +891,10 @@ cclass(
case CC_PRINT:
cv = getcvec(v, NUM_PRINT_CHAR, NUM_PRINT_RANGE, 0);
if (cv) {
- for (i=0 ; i<NUM_PRINT_CHAR ; i++) {
+ for (i=0 ; (size_t)i<NUM_PRINT_CHAR ; i++) {
addchr(cv, printCharTable[i]);
}
- for (i=0 ; i<NUM_PRINT_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_PRINT_RANGE ; i++) {
addrange(cv, printRangeTable[i].start,
printRangeTable[i].end);
}
@@ -903,14 +903,14 @@ cclass(
case CC_ALNUM:
cv = getcvec(v, NUM_ALPHA_CHAR, NUM_DIGIT_RANGE + NUM_ALPHA_RANGE, 0);
if (cv) {
- for (i=0 ; i<NUM_ALPHA_CHAR ; i++) {
+ for (i=0 ; (size_t)i<NUM_ALPHA_CHAR ; i++) {
addchr(cv, alphaCharTable[i]);
}
- for (i=0 ; i<NUM_ALPHA_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_ALPHA_RANGE ; i++) {
addrange(cv, alphaRangeTable[i].start,
alphaRangeTable[i].end);
}
- for (i=0 ; i<NUM_DIGIT_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_DIGIT_RANGE ; i++) {
addrange(cv, digitRangeTable[i].start,
digitRangeTable[i].end);
}
@@ -919,11 +919,11 @@ cclass(
case CC_ALPHA:
cv = getcvec(v, NUM_ALPHA_CHAR, NUM_ALPHA_RANGE, 0);
if (cv) {
- for (i=0 ; i<NUM_ALPHA_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_ALPHA_RANGE ; i++) {
addrange(cv, alphaRangeTable[i].start,
alphaRangeTable[i].end);
}
- for (i=0 ; i<NUM_ALPHA_CHAR ; i++) {
+ for (i=0 ; (size_t)i<NUM_ALPHA_CHAR ; i++) {
addchr(cv, alphaCharTable[i]);
}
}
@@ -947,7 +947,7 @@ cclass(
case CC_DIGIT:
cv = getcvec(v, 0, NUM_DIGIT_RANGE, 0);
if (cv) {
- for (i=0 ; i<NUM_DIGIT_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_DIGIT_RANGE ; i++) {
addrange(cv, digitRangeTable[i].start,
digitRangeTable[i].end);
}
@@ -956,11 +956,11 @@ cclass(
case CC_PUNCT:
cv = getcvec(v, NUM_PUNCT_CHAR, NUM_PUNCT_RANGE, 0);
if (cv) {
- for (i=0 ; i<NUM_PUNCT_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_PUNCT_RANGE ; i++) {
addrange(cv, punctRangeTable[i].start,
punctRangeTable[i].end);
}
- for (i=0 ; i<NUM_PUNCT_CHAR ; i++) {
+ for (i=0 ; (size_t)i<NUM_PUNCT_CHAR ; i++) {
addchr(cv, punctCharTable[i]);
}
}
@@ -985,11 +985,11 @@ cclass(
case CC_SPACE:
cv = getcvec(v, NUM_SPACE_CHAR, NUM_SPACE_RANGE, 0);
if (cv) {
- for (i=0 ; i<NUM_SPACE_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_SPACE_RANGE ; i++) {
addrange(cv, spaceRangeTable[i].start,
spaceRangeTable[i].end);
}
- for (i=0 ; i<NUM_SPACE_CHAR ; i++) {
+ for (i=0 ; (size_t)i<NUM_SPACE_CHAR ; i++) {
addchr(cv, spaceCharTable[i]);
}
}
@@ -997,11 +997,11 @@ cclass(
case CC_LOWER:
cv = getcvec(v, NUM_LOWER_CHAR, NUM_LOWER_RANGE, 0);
if (cv) {
- for (i=0 ; i<NUM_LOWER_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_LOWER_RANGE ; i++) {
addrange(cv, lowerRangeTable[i].start,
lowerRangeTable[i].end);
}
- for (i=0 ; i<NUM_LOWER_CHAR ; i++) {
+ for (i=0 ; (size_t)i<NUM_LOWER_CHAR ; i++) {
addchr(cv, lowerCharTable[i]);
}
}
@@ -1009,11 +1009,11 @@ cclass(
case CC_UPPER:
cv = getcvec(v, NUM_UPPER_CHAR, NUM_UPPER_RANGE, 0);
if (cv) {
- for (i=0 ; i<NUM_UPPER_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_UPPER_RANGE ; i++) {
addrange(cv, upperRangeTable[i].start,
upperRangeTable[i].end);
}
- for (i=0 ; i<NUM_UPPER_CHAR ; i++) {
+ for (i=0 ; (size_t)i<NUM_UPPER_CHAR ; i++) {
addchr(cv, upperCharTable[i]);
}
}
@@ -1021,11 +1021,11 @@ cclass(
case CC_GRAPH:
cv = getcvec(v, NUM_GRAPH_CHAR, NUM_GRAPH_RANGE, 0);
if (cv) {
- for (i=0 ; i<NUM_GRAPH_RANGE ; i++) {
+ for (i=0 ; (size_t)i<NUM_GRAPH_RANGE ; i++) {
addrange(cv, graphRangeTable[i].start,
graphRangeTable[i].end);
}
- for (i=0 ; i<NUM_GRAPH_CHAR ; i++) {
+ for (i=0 ; (size_t)i<NUM_GRAPH_CHAR ; i++) {
addchr(cv, graphCharTable[i]);
}
}