I had to make a slight patch to ctime.c because sqlite3CtypeMap does not
exist in an EBCDIC environment. This is for my project of getting sqlite
working on z/OS UNIX. Which is doing very well. Everything compiles and I
can run the sqlite3 interactive program as well as one of my test programs.

$fossil diff
Index: src/ctime.c
==================================================================
--- src/ctime.c
+++ src/ctime.c
@@ -381,11 +381,13 @@

   /* Since ArraySize(azCompileOpt) is normally in single digits, a
   ** linear search is adequate.  No need for a binary search. */
   for(i=0; i<ArraySize(azCompileOpt); i++){
     if( sqlite3StrNICmp(zOptName, azCompileOpt[i], n)==0
+#ifdef SQLITE_ASCII
      && sqlite3CtypeMap[(unsigned char)azCompileOpt[i][n]]==0
+#endif
     ){
       return 1;
     }
   }
   return 0;


-- 
As of next week, passwords will be entered in Morse code.

Maranatha! <><
John McKown
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to