Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Unified Diff: third_party/sqlite/src/test/wordcount.c

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/without_rowid6.test ('k') | third_party/sqlite/src/test/zeroblob.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/wordcount.c
diff --git a/third_party/sqlite/src/test/wordcount.c b/third_party/sqlite/src/test/wordcount.c
index cf63e983c253e6f63071eabaa6801145151c863a..72aa6b2f0b0ad26809abc58effc28814a01e215f 100644
--- a/third_party/sqlite/src/test/wordcount.c
+++ b/third_party/sqlite/src/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. */
« no previous file with comments | « third_party/sqlite/src/test/without_rowid6.test ('k') | third_party/sqlite/src/test/zeroblob.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698