Fossil

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

14 check-ins tagged with "fossil-spawn"

2021-06-22
16:36
Initialized a pointer to 0 to squish a bogus complaint from GCC 11 on MinGW 9. The code passes ASAN on macOS Clang without this, so I believe GCC is just doing over-eager static analysis across function calls, not realizing that the pointer *will* be initialized before it's used. Closed-Leaf check-in: 54febc1f72 user: wyoung tags: fossil-spawn
16:29
Removed a few bits of src/carray.c that are only needed to allow building the module as a loadable extension. This goes beyond code minimalism, because one of the lines referenced a header we don't provide within Fossil, sqlite3ext.h, which means the only reason this branch compiled before is that it was picking up thje system version, risking a version mismatch when building against the internal SQLite. Build bug caught by initial work on the MinGW port, which doesn't provide that header. check-in: 202ea753e4 user: wyoung tags: fossil-spawn
08:46
[ead1432af9 | An earlier refactoring on this branch] broke the new array-based setting method: got a little too clever with my use of DB handles. check-in: 3bcf3abd56 user: wyoung tags: fossil-spawn
08:45
Comment clarification check-in: c625c259a1 user: wyoung tags: fossil-spawn
08:34
Converted "fossil diff" and "fossil gdiff" to the new array-based setting mechanism. The legacy system(3) style shell command string methods are still available for use with --command and legacy single-string settings, but if you pass 2+ values to "fossil setting diff-command VALUES..." (ditto gdiff-command) it's now stored as an array, triggering this new mechanism. This permits old settings to continue working, letting you upgrade to the new mechanism at will. check-in: 68055fd3ed user: wyoung tags: fossil-spawn
07:56
Constness fix to the new fossil_spawn() function to avoid compiler complaints on current macOS. check-in: eefb8e64ed user: wyoung tags: fossil-spawn
07:52
Changed the new json_deserialize_array() interface to make it easier to call correctly. check-in: 765acbc080 user: wyoung tags: fossil-spawn
05:25
Added a JSON array deserializer function and a test-json-deserialize-array command to test it. check-in: dac496b300 user: wyoung tags: fossil-spawn
03:52
Renamed the test-* wrapper for the new JSON array serializer to better match its internal implementation function. NFC. check-in: 06d27250d5 user: wyoung tags: fossil-spawn
03:45
Extracted json_serialize_array() function common to both test-json-carray and settings commands, reducing redundant code. check-in: ead1432af9 user: wyoung tags: fossil-spawn
02:37
Taught "fossil settings" how to accept multiple ?VALUES? parameters, storing the result as a JSON-encoded array in the config table. Nothing uses this yet, but the resulting SQL DB manipulation appears to work correctly. check-in: ca069402f8 user: wyoung tags: fossil-spawn
01:38
Added the carray() virtual table extension from SQLite and added the test-json-carray command to test it. This is needed for the next step on this branch. check-in: 4223fe8cb5 user: wyoung tags: fossil-spawn
2021-06-21
23:03
Added more test cases to test-spawn-* and gave the test cases human-readable names rather than numbers. check-in: 27cdcbbb49 user: wyoung tags: fossil-spawn
22:37
Created fossil_spawn() as a dumb-as-rocks wrapper for posix_spawnp(2) and created tests to prove that it doesn't double-interpret its args as fossil_system() does. This isn't portable yet; it's just a seed we can use to bring this branch to a PoC state. check-in: fb7c579736 user: wyoung tags: fossil-spawn