Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use the right var to access the mysqlStubLibNames array. Closes [f3c6ec0369]. I think functional changes and whitespace cleanups should be done seperately. It's easy for something small to slip by in a big diff. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
6313038acfb861436562d7954201cc23 |
User & Date: | stu 2017-05-26 06:05:11 |
References
2017-05-26
| ||
06:13 | • Closed ticket [f3c6ec0369]: segfault on Linux when no mysql libs available plus 7 other changes artifact: d31195c185 user: stu | |
Context
2017-05-26
| ||
14:35 | Give the (U)INT2PTR / PTR2(U)INT macros .h file a more descriptive name and fully integrate them into the configure/build/dist. Tidy some CPP bits to make them like the other tdbc-* modules. Closes ticket [60999d7b92]. check-in: 5dd83c8551 user: stu tags: trunk | |
06:05 | Use the right var to access the mysqlStubLibNames array. Closes [f3c6ec0369]. I think functional changes and whitespace cleanups should be done seperately. It's easy for something small to slip by in a big diff. check-in: 6313038acf user: stu tags: trunk | |
2017-05-23
| ||
18:49 | merge tdbcmysql-stwo check-in: 11877bd0a9 user: stu tags: trunk | |
Changes
Changes to generic/mysqlStubInit.c.
1 2 3 4 5 6 | /* * mysqlStubInit.c -- * * Stubs tables for the foreign MySQL libraries so that * Tcl extensions can use them without the linker's knowing about them. * | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | /* * mysqlStubInit.c -- * * Stubs tables for the foreign MySQL libraries so that * Tcl extensions can use them without the linker's knowing about them. * * @CREATED@ 2017-05-26 05:57:32Z by genExtStubs.tcl from ../generic/mysqlStubDefs.txt * * Copyright (c) 2010 by Kevin B. Kenny. * * Please refer to the file, 'license.terms' for the conditions on * redistribution of this file and for a DISCLAIMER OF ALL WARRANTIES. * *----------------------------------------------------------------------------- |
︙ | ︙ | |||
138 139 140 141 142 143 144 | /* Walk the list of possible library names to find an MySQL client */ status = TCL_ERROR; for (i = 0; status == TCL_ERROR && mysqlStubLibNames[i] != NULL; ++i) { for (j = 0; status == TCL_ERROR && (j < sizeof(mysqlSuffixes)/sizeof(mysqlSuffixes[0])); ++j) { path = Tcl_NewStringObj(LIBPREFIX, -1); | | | 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | /* Walk the list of possible library names to find an MySQL client */ status = TCL_ERROR; for (i = 0; status == TCL_ERROR && mysqlStubLibNames[i] != NULL; ++i) { for (j = 0; status == TCL_ERROR && (j < sizeof(mysqlSuffixes)/sizeof(mysqlSuffixes[0])); ++j) { path = Tcl_NewStringObj(LIBPREFIX, -1); Tcl_AppendToObj(path, mysqlStubLibNames[i], -1); #ifdef __CYGWIN__ if (*mysqlSuffixes[j]) { Tcl_AppendToObj(path, "-", -1); Tcl_AppendToObj(path, mysqlSuffixes[j]+1, -1); } #endif Tcl_AppendObjToObj(path, shlibext); |
︙ | ︙ |
Changes to generic/mysqlStubs.h.
1 2 3 4 5 6 7 8 | /* *----------------------------------------------------------------------------- * * ../generic/mysqlStubs.h -- * * Stubs for procedures in mysqlStubDefs.txt * * Generated by genExtStubs.tcl: DO NOT EDIT | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /* *----------------------------------------------------------------------------- * * ../generic/mysqlStubs.h -- * * Stubs for procedures in mysqlStubDefs.txt * * Generated by genExtStubs.tcl: DO NOT EDIT * 2017-05-26 05:57:32Z * *----------------------------------------------------------------------------- */ typedef struct mysqlStubDefs { /* Functions from libraries: mysqlclient_r mysqlclient mysql */ |
︙ | ︙ |