Dr. Hipp,
I did the "port" (which was easy thanks to your excellent work with
EBCDIC which is already in the base) which is being distributed via
the CBTTape (http://cbttape.org) web site. I would be happy to test
any fixes which might desired, if that is in accordance with your
policy. I can understand where it might not be, due to dependence on a
possibly unreliable source (aka "me").
The source in question is in the sqlite3.c file in the section which looks like:
SQLITE_API int sqlite3_compileoption_used(const char *zOptName){
int i, n;
if( sqlite3StrNICmp(zOptName, "SQLITE_", 7)==0 ) zOptName += 7;
n = sqlite3Strlen30(zOptName);
/* 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
&& sqlite3CtypeMap[(unsigned char)azCompileOpt[i][n]]==0
){
return 1;
}
}
return 0;
}
My modification is simple:
SQLITE_API int sqlite3_compileoption_used(const char *zOptName){
int i, n;
if( sqlite3StrNICmp(zOptName, "SQLITE_", 7)==0 ) zOptName += 7;
n = sqlite3Strlen30(zOptName);
/* 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;
}
The OP is welcome to the above. I will look at regenerating the z/OS
version to update the CBTTape site. I was really waiting for the
latest release to come out because it is not far off.
On Wed, Sep 24, 2014 at 7:04 PM, Richard Hipp <[email protected]> wrote:
> On Wed, Sep 24, 2014 at 10:27 AM, k <[email protected]> wrote:
>
>> SQLite team,
>> compile of sqlite3 v3.8.6 amalgamation failed on zOS 2.1 with err CCN3045
>> undeclared identifier sqlite3CtypeMap in function
>> sqlite3_compileoption_used. I notice that this was raised previously to the
>> mailing list by John McKown. Please consider adding the necessary fixes to
>> the SQLite code.
>>
>
> Unfortunately, we do not have access to a zOS machine (real or virtual) on
> which to test the changes.
>
> --
> D. Richard Hipp
> [email protected]
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
--
There is nothing more pleasant than traveling and meeting new people!
Genghis Khan
Maranatha! <><
John McKown
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users