| Index: third_party/sqlite/sqlite-src-3100200/test/wordcount.c
|
| diff --git a/third_party/sqlite/src/test/wordcount.c b/third_party/sqlite/sqlite-src-3100200/test/wordcount.c
|
| similarity index 99%
|
| copy from third_party/sqlite/src/test/wordcount.c
|
| copy to third_party/sqlite/sqlite-src-3100200/test/wordcount.c
|
| index cf63e983c253e6f63071eabaa6801145151c863a..72aa6b2f0b0ad26809abc58effc28814a01e215f 100644
|
| --- a/third_party/sqlite/src/test/wordcount.c
|
| +++ b/third_party/sqlite/sqlite-src-3100200/test/wordcount.c
|
| @@ -80,6 +80,7 @@
|
| #include <stdlib.h>
|
| #include <stdarg.h>
|
| #include "sqlite3.h"
|
| +#define ISALPHA(X) isalpha((unsigned char)(X))
|
|
|
| /* Return the current wall-clock time */
|
| static sqlite3_int64 realTime(void){
|
| @@ -392,8 +393,8 @@ int main(int argc, char **argv){
|
| /* Process the input file */
|
| while( fgets(zInput, sizeof(zInput), in) ){
|
| for(i=0; zInput[i]; i++){
|
| - if( !isalpha(zInput[i]) ) continue;
|
| - for(j=i+1; isalpha(zInput[j]); j++){}
|
| + if( !ISALPHA(zInput[i]) ) continue;
|
| + for(j=i+1; ISALPHA(zInput[j]); j++){}
|
|
|
| /* Found a new word at zInput[i] that is j-i bytes long.
|
| ** Process it into the wordcount table. */
|
|
|