Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | KWSys: Remove unused environ declaration from SystemTools | Brad King | 2012-05-23 | 1 | -4/+0 |
| | | | | | | | | | | Commit "KWSys: Fix SystemTools environment memory handling" (2012-04-26) added a _WIN32 case inside !KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H to dllimport the "environ" global. Howver, KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H is true on every Windows toolchain we support so the case is never reached. Furthermore, even if it were reached the use of dllimport is incorrect because the toolchain might not be compiling with a dynamic runtime library. Remove the unused incorrect line and supporting conditionals. | ||||
* | KWSys: Remove dependencies on FundamentalType | Brad King | 2012-05-02 | 4 | -36/+50 |
| | | | | | | | | | The hash_fun.hxx header is configured whether FundamentalType is enabled or not and so cannot depend on it. Run the relevant platform tests whether or not FundamentalType is on and configure the result directly into hash_fun. While at it, remove the dependence of SystemInformation on FundamentalType too since it needs only information that we now always compute. | ||||
* | Merge topic 'kwsys-environ-cleanup' | David Cole | 2012-05-01 | 5 | -25/+310 |
|\ | | | | | | | | | | | e48796b KWSys: Fix SystemTools environment memory handling (#13156) b10c5cb CTest: Simplify environment save/restore | ||||
| * | KWSys: Fix SystemTools environment memory handling (#13156) | Brad King | 2012-04-27 | 5 | -25/+310 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SystemTools::PutEnv function tries to provide the "putenv" API without leaking memory. However, the kwsysDeletingCharVector singleton frees memory that may still be referenced by the environment table, having been placed there by putenv. If any static destruction or processing by an external tool happens after the singleton is destroyed and accesses the environment it will read invalid memory. Replace use of putenv with setenv/unsetenv when available. The latter manage internal copies of the values passed instead of referencing the original memory. When setenv/unsetenv are not available use putenv with a singleton that removes its values from the environment before freeing their memory. This requires an "unputenv" implementation. On at least some platforms it must be written in terms of "putenv" because other APIs are not available and direct modification of the "environ" global is not safe (e.g. on Windows there is interaction with "wenviron"). Fortunately either putenv("A=") or putenv("A") will remove "A" from the environment on these platforms. On other platforms fall back to direct manipulation of "environ". Also add UnPutEnv to the API and add a test for the behavior of both. | ||||
* | | KWSys: Remove DateStamp | Brad King | 2012-04-25 | 4 | -119/+1 |
|/ | | | | | | | | | KWSys is no longer shared in projects via a server-side directory symlink in CVS. An automated nightly date stamp commit can no longer be shared by multiple projects directly. It needs a per-project replay robot so the nightly commits end up needing N+1 robots instead of N. Remove the DateStamp feature because it is no longer useful or maintained by nightly commits. | ||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-20 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-19 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-18 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-17 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-16 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-15 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-14 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-13 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-12 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-11 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-10 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-09 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-08 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-07 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-06 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-05 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-04 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-03 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-02 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-04-01 | 1 | -2/+2 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-31 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-30 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-29 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-28 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-27 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-26 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-25 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-24 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-23 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-22 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-21 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-20 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-19 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-18 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-17 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-16 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-15 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-14 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-13 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-12 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-11 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-10 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-09 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-08 | 1 | -1/+1 |
| | |||||
* | KWSys Nightly Date Stamp | KWSys Robot | 2012-03-07 | 1 | -1/+1 |
| |