Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
732 commits
Select commit Hold shift + click to select a range
3ed1540
update tests for store contract change
hroederld Mar 19, 2019
8050063
don't free json in test if it does not exist
hroederld Mar 19, 2019
0765dc0
fix memory leak of bucketable in error case
hroederld Mar 19, 2019
f55fbd4
remove explicit deletion checks across codebase
hroederld Mar 19, 2019
3292363
fix brace line
hroederld Mar 19, 2019
594b7e0
remove user key checks that are done at a higher level
hroederld Mar 19, 2019
a6cd125
add explanation struct (not used) and switch to dedicated events para…
hroederld Mar 20, 2019
d6c5f65
partially convert to use struct instead of json for explanations
hroederld Mar 20, 2019
41bad40
partially convert eval tests to new struct system
hroederld Mar 20, 2019
2a646d0
convert rest of evaluation tests
hroederld Mar 20, 2019
8bdb274
fix double free of eval value in allFlags
hroederld Mar 20, 2019
89b936c
convert offline tests to new api
hroederld Mar 20, 2019
4998767
passing all unit tests
hroederld Mar 20, 2019
cddb5ca
add detail related enums to static string conversion routines
hroederld Mar 20, 2019
9d68175
add routine to convert explanations to json
hroederld Mar 20, 2019
332c509
fix schema in reason serialization
hroederld Mar 20, 2019
fb40108
convert details to json to reason to json and integrate into event se…
hroederld Mar 20, 2019
6024f5e
don't assert on value in ldevents
hroederld Mar 21, 2019
0b91219
don't add variation to event if not requested
hroederld Mar 21, 2019
b34b07c
precheck for miss
hroederld Mar 21, 2019
76a6d8b
misplaced freeflag
hroederld Mar 21, 2019
267c006
swap key and user parameters of track to make more consistent with ot…
hroederld Mar 21, 2019
64abe97
prepare replacement event and summary counter storage allocation befo…
hroederld Mar 21, 2019
cddc61e
make test declaration styling more consistent
hroederld Mar 21, 2019
9f4e07e
make test styling more consistent
hroederld Mar 21, 2019
5411768
finish up making test declaration styling consistent
hroederld Mar 21, 2019
b1d6c5d
merge fallback and error goto blocks in internal variation handler as…
hroederld Mar 21, 2019
67559f4
remove assert on client in internal variation as null client is handl…
hroederld Mar 21, 2019
cc4c081
rename object to clause in maybeNegate
hroederld Mar 21, 2019
59b782b
update add event to not allocate
hroederld Mar 21, 2019
50f4672
ensure events are not leaked after being added
hroederld Mar 21, 2019
8947420
ensure array holding events is not leaked (event objects themselves w…
hroederld Mar 21, 2019
a77d5f4
assign event to null after ownership transfer to ensure not freed
hroederld Mar 21, 2019
1a07a50
rename to ldserverapidynamic
hroederld Mar 21, 2019
6268367
update circle config for new library names
hroederld Mar 21, 2019
83407a3
forgot to save for last commit
hroederld Mar 21, 2019
2e4ad86
assert on client and remove client null eval error case
hroederld Mar 21, 2019
4bed1a2
reduce memory allocation and convert getIndexForVariationOrRollout to…
hroederld Mar 21, 2019
f3398d4
replace hasId with NULL string
hroederld Mar 21, 2019
df6f51a
remove extra check of iterator
hroederld Mar 21, 2019
ef8b997
rename kind to reason
hroederld Mar 21, 2019
5a7d31f
free rule id on detail clear if rule type
hroederld Mar 21, 2019
8f03e9c
ensure sub events correctly skip reasons
hroederld Mar 21, 2019
ba34b2e
check events capacity with >= instead of >
hroederld Mar 21, 2019
0c58aa3
operatorInFn simplification, add LD_SDK_VERSION #define
hroederld Mar 21, 2019
69e74c6
remove duplicate line
hroederld Mar 22, 2019
62c84a5
add mutex support (unused)
hroederld Mar 22, 2019
cf07cee
partial convert to use reference counting
hroederld Mar 22, 2019
ecfd9fc
update streaming tests
hroederld Mar 22, 2019
047085a
fix memoryInit (currently unsafe handling of error state)
hroederld Mar 22, 2019
6d16aca
add uthash dep
hroederld Mar 22, 2019
d9c900b
convert rest of tests to new api
hroederld Mar 22, 2019
0358617
replace segment free with segment rc decrement
hroederld Mar 22, 2019
656c245
convert allFlags store api to use reference counting
hroederld Mar 22, 2019
c98ed20
ensure prequisiteKey gets freed in details cleanup, simplify evaluati…
hroederld Mar 22, 2019
bae2e2e
fix reference count decrement
hroederld Mar 22, 2019
82f80ec
ensure subevents always get freed
hroederld Mar 22, 2019
4553f10
cleanup leaks in error conditions and generally reduce allocations
hroederld Mar 22, 2019
e7c620f
remove allocation from parse path
hroederld Mar 22, 2019
ae83d78
use new detach function instead of duplicate
hroederld Mar 22, 2019
814378b
rename FeatureCollection to FeatureCollectionItem
hroederld Mar 25, 2019
10db64a
convert ldstore interface to use static strings instead of enum
hroederld Mar 25, 2019
c7b70de
update streaming to rename flags to features
hroederld Mar 25, 2019
600733b
replace two instance of free with LDFree
hroederld Mar 25, 2019
88c7ca9
replace two unrelated instances of malloc with LDAlloc
hroederld Mar 25, 2019
3b184f8
rename flags to features in polling update
hroederld Mar 25, 2019
1effcdb
DRY up with featureKindToString
hroederld Mar 25, 2019
f7973c6
more logically organize ldstore
hroederld Mar 25, 2019
b5c88d6
update doxygen header for RC related functions
hroederld Mar 25, 2019
3bee424
correctly return NULL when RC lock construction fails
hroederld Mar 25, 2019
115e145
add sanity check assertion that current reference count is > 0 when d…
hroederld Mar 25, 2019
c686b9a
make some routines static and some parameters const
hroederld Mar 25, 2019
ea51017
replace free with LDFree in store destroy
hroederld Mar 25, 2019
7e50771
add const to ptr for addHidden
hroederld Mar 26, 2019
f64845a
rename and make jsonrc destruction static
hroederld Mar 26, 2019
2ac8b08
makeFeatureCollection -> makeFeatureCollectionItem, replacementcollec…
hroederld Mar 26, 2019
39ca5e3
Merge pull request #7 from launchdarkly/hr/refcount
hroederld Mar 27, 2019
359d26d
1.0.0 beta.1 (#8)
hroederld Mar 27, 2019
a08df4f
Merge github.com:launchdarkly/c-client-server-side
hroederld Mar 28, 2019
aef0203
update readme to refer to better distinguish between server-side and …
bwoskow-ld Mar 28, 2019
0cdb5dd
Merge pull request #10 from launchdarkly/bw/readme-updates
bwoskow-ld Mar 28, 2019
1a7c009
Merge github.com:launchdarkly/c-client-server-side
hroederld Mar 28, 2019
97bac37
Add jitter to networking backoff (#9)
hroederld Mar 28, 2019
ad113ab
Remove GMP dep (#12)
hroederld Apr 1, 2019
9f60af9
Add support for debugEventsUntilDate (#11)
hroederld Apr 2, 2019
5c93f25
Windows C++ compatibility (#13)
hroederld Apr 3, 2019
9cfae31
Window specific time parsing (#14)
hroederld Apr 4, 2019
ac06b3a
Windows CI (#15)
hroederld Apr 5, 2019
9d46358
Dynamic library symbol hygiene (#16)
hroederld Apr 5, 2019
618bb3b
Prepare 1.0.0 beta.2 (#17)
hroederld Apr 5, 2019
584a375
Merge branch 'master' of github.com:launchdarkly/c-client-server-side
hroederld Apr 5, 2019
9924f89
add back ifdef cplusplus (#18)
hroederld Apr 5, 2019
c92c603
Merge branch 'master' of github.com:launchdarkly/c-client-server-side
hroederld Apr 5, 2019
202e531
Extra build documentation (#19)
hroederld Apr 8, 2019
8b47c0c
Merge branch 'master' of github.com:launchdarkly/c-client-server-side
hroederld Apr 8, 2019
8f4e101
reorganize headers (#21)
hroederld Apr 26, 2019
061e5aa
Fix doxygen and add docgen infra (#22)
hroederld Apr 30, 2019
34da394
cmake cleanup (#24)
hroederld May 3, 2019
a68ed94
Complete doxygen coverage (#23)
hroederld May 3, 2019
9d07f90
applying markdown templates (#25)
bwoskow-ld May 13, 2019
3759bc8
bump version and update changelog (#26)
hroederld May 17, 2019
61aed0c
free subevents as append does not transfer ownership (#27)
hroederld Jun 11, 2019
d6fd94e
bump version and add memory leak info to changelog (#28)
hroederld Jun 11, 2019
a6c21b4
merge in public
hroederld Jun 11, 2019
0e73f2a
Merge branch 'master' of github.com:launchdarkly/c-server-sdk
hroederld Jun 11, 2019
e063402
Update to handle index events (#29)
hroederld Jun 25, 2019
7ae5129
switch to using milliseconds everywhere internally (#30)
hroederld Jun 26, 2019
c56eac1
adding a circleci badge to the readme (#31)
bwoskow-ld Jun 27, 2019
8a5f961
switch from checking for header end within size (usually one) to tota…
hroederld Jul 5, 2019
5c793f2
bump version constant, document changes, remove beta warning (#33)
hroederld Jul 5, 2019
c479a06
Merge github.com:launchdarkly/c-server-sdk
hroederld Jul 5, 2019
2fbdbd0
add /usr/local/include for osx (#34)
hroederld Jul 11, 2019
1ec7b98
bump version, append changelog (#35)
hroederld Jul 11, 2019
d1bbf58
Merge github.com:launchdarkly/c-server-sdk
hroederld Jul 11, 2019
0a555ce
Merge branch 'master' of github.com:launchdarkly/c-server-sdk
bwoskow-ld Jul 18, 2019
1f7569a
memset time struct (#36)
hroederld Jul 26, 2019
2616be0
bump version, document changes (#37)
hroederld Jul 26, 2019
b9bbca4
Merge github.com:launchdarkly/c-server-sdk
hroederld Jul 26, 2019
58012df
update type comparison to work with object OR array detection (#38)
hroederld Sep 6, 2019
981412d
Experimention track metric (#40)
hroederld Sep 25, 2019
323fda8
prepare 1.1.0
hroederld Sep 26, 2019
e4ebf0a
bump changelog date before release
hroederld Sep 26, 2019
7abce0b
Fix rule match explanation encoding (#42)
hroederld Sep 26, 2019
bb8773c
Merge github.com:launchdarkly/c-server-sdk
hroederld Sep 26, 2019
2e7c85a
Merge branch 'master' of github.com:launchdarkly/c-server-sdk
bwoskow-ld Oct 11, 2019
6bfe2de
Double to int variation tests, and document behavior. (#43)
hroederld Oct 22, 2019
d1804af
Merge github.com:launchdarkly/c-server-sdk
hroederld Oct 23, 2019
93937e7
Merge branch 'master' of github.com:launchdarkly/c-server-sdk
bwoskow-ld Nov 7, 2019
7228635
[ch49806] redis store (#44)
hroederld Nov 15, 2019
a6db075
[ch58854] Update cJSON to 1.7.12
hroederld Dec 11, 2019
fe02635
[ch57214] Store API v2 (#46)
hroederld Dec 23, 2019
7939622
[ch55939] add Releaser scripts, CircleCI Windows build, use custom Do…
eli-darkly Dec 23, 2019
46c1778
[ch59994] add code coverage flag
hroederld Dec 23, 2019
51fcfbb
[ch43307] put user in last bucket for a bucketing fallthrough
hroederld Dec 26, 2019
7cad004
[ch60038] dont assert on polling put failure
hroederld Dec 26, 2019
74b2f13
[ch54986] old osx clock gettime (#51)
hroederld Dec 26, 2019
e1cf4ee
[ch60053] fix redis race detection
hroederld Dec 30, 2019
79eefbc
[ch61092] Event payload ID. (#54)
hroederld Jan 14, 2020
07bbf01
[ch60589] Cache external store values (#53)
hroederld Jan 16, 2020
1aa97e9
[ch61935] Releaser for redis (#55)
hroederld Jan 17, 2020
575ff0c
merge from public after release
LaunchDarklyCI Jan 22, 2020
81f10f3
Merge github.com:launchdarkly/c-server-sdk
hroederld Feb 26, 2020
5c65559
[ch69694] reconnect consistency (#57)
hroederld Mar 25, 2020
c10b08f
[ch69694] streaming status codes (#58)
hroederld Mar 27, 2020
cdf8fbc
merge from public after release
LaunchDarklyCI Mar 31, 2020
78b1184
[ch71379] create more ideal concurrency h (#59)
hroederld Apr 1, 2020
5fc1f5a
[ch72167] api level assert (#61)
hroederld Apr 3, 2020
1721d82
[ch72078] remove higher stack assertions for system ops (#60)
hroederld Apr 3, 2020
c5a8350
[ch72307] optional asserts compilation (#62)
hroederld Apr 5, 2020
f29d338
[ch72310] cmake cleanup (#63)
hroederld Apr 5, 2020
f29e0e8
[ch72310] cleanup redis cmake
hroederld Apr 5, 2020
75f20be
[ch72763] correct find package (#65)
hroederld Apr 8, 2020
3722ccb
[ch72838] detangle headers (#66)
hroederld Apr 8, 2020
5cf420b
[ch73235] enable mock concurrency (#68)
hroederld Apr 13, 2020
e871222
[ch72863] event processing cleanup and optimization (#67)
hroederld Apr 14, 2020
aad652e
[ch73704] dedup test utils (#69)
hroederld Apr 15, 2020
42d546a
[ch73828] null user key ban (#70)
hroederld Apr 15, 2020
83d00b9
[ch73828] null user key fix (#71)
hroederld Apr 15, 2020
8f706a5
[ch73236] detach sse (#72)
hroederld Apr 17, 2020
d88c3db
[ch73698] mock backend server and polling test (#73)
hroederld Apr 21, 2020
2a27aa5
[ch74213] release bundle (#75)
hroederld Apr 26, 2020
99f0605
[ch73853] start of defensive mode (#74)
hroederld Apr 26, 2020
15826b6
[ch75034] enable and fix more warnings (#76)
hroederld Apr 26, 2020
782d374
[ch73853] add logging to existing defensive checks (#77)
hroederld Apr 26, 2020
df9e6c3
[ch75137] double for large milliseconds (#85)
hroederld Apr 28, 2020
9fffd98
[ch75136] c89 fix for loop initialization
hroederld Apr 28, 2020
f4e0cdd
[ch75131] add time.h on posix
hroederld Apr 28, 2020
ae23499
[ch75126] Fix event generation for NULL fallback
hroederld Apr 28, 2020
16b0e91
[ch73853] remove extra error channels
hroederld Apr 28, 2020
70becd6
[ch73853] Defensive JSON (#78)
hroederld Apr 28, 2020
ac1422e
[ch73853] enable defensive api by default (#81)
hroederld Apr 28, 2020
f4918da
[ch75201] custom bool type for public api (#86)
hroederld Apr 28, 2020
4932e47
[ch74995] null fallback tests (#87)
hroederld Apr 29, 2020
e61e2cb
[ch74995] basic stream mock (#88)
hroederld Apr 29, 2020
4ff7688
undelete docs directory (#91)
hroederld Apr 30, 2020
8c2fd44
Merge github.com:launchdarkly/c-server-sdk
hroederld Apr 30, 2020
3067628
Merge branch 'master' of github.com:launchdarkly/c-server-sdk-private
hroederld Apr 30, 2020
6c0e202
merge from public after release
LaunchDarklyCI Apr 30, 2020
b6aae2a
[ch76282] wrapper metadata config (#92)
hroederld May 12, 2020
77dc800
merge from public after release
LaunchDarklyCI May 12, 2020
d3d0ff4
[ch78853] Add 32 bit linux CI (#93)
hroederld Jun 5, 2020
9d29115
[ch80280] usleep error (#94)
hroederld Jun 18, 2020
2979e35
merge from public after release
LaunchDarklyCI Jun 18, 2020
460b3ed
[ch80280] skip sleep on EINTR
hroederld Jun 19, 2020
236af00
merge from public after release
LaunchDarklyCI Jun 19, 2020
8c1fc5b
[ch80617] c sdk common (#96)
hroederld Jun 22, 2020
3b51258
[ch80617] add common headers to doxygen
hroederld Jun 22, 2020
78de393
[ch81023] accept header (#98)
hroederld Jun 25, 2020
9d43c96
merge from public after release
LaunchDarklyCI Jun 25, 2020
14accbb
[ch81049] add common/include to public header export
hroederld Jun 30, 2020
94dd087
[ch81355] fix experimentation events (#100)
hroederld Jul 1, 2020
038dec6
merge from public after release
LaunchDarklyCI Jul 2, 2020
006b5ce
[ch94759] bump xcode to next circleci supported version
hroederld Nov 17, 2020
28efd98
[ch94757] cleanup staticGetValue after use in test #101
hroederld Nov 17, 2020
b58a9fb
[ch94758] run valgrind memcheck in linux ci (#103)
hroederld Nov 17, 2020
c1a53ad
[ch94776] fix helgrind warning #104
hroederld Nov 18, 2020
c5272e4
[ch94759] releaser upgrade xcode version #105
hroederld Nov 18, 2020
4344aa4
[ch95201] Update to use LDBasicLoggerThreadSafe in tests (#106)
hroederld Nov 23, 2020
fa6e7b0
merge from public after release
LaunchDarklyCI Nov 24, 2020
6bbc2ee
[ch97247] more coverage and bug fixes (#107)
hroederld Jan 8, 2021
57837a6
[ch97472] use Findhiredis (#108)
hroederld Jan 13, 2021
65acae2
merge from public after release
LaunchDarklyCI Jan 14, 2021
6c204a5
[ch99403] Add Alias method (#110)
hroederld Jan 27, 2021
d37fa42
merge from public after release
LaunchDarklyCI Jan 28, 2021
9d13969
[ch99260] Add O3 build and cleanup warnings (#109)
hroederld Jan 29, 2021
77b20b3
Update c-sdk-common (#111)
hroederld Jan 31, 2021
d66fa39
Removed the guides link
bwoskow-ld Feb 3, 2021
1e391f1
[ch100420] Hook in c-sdk-common LDUser (#112)
hroederld Feb 7, 2021
a37819e
run clang format (#113)
hroederld Feb 7, 2021
c97e586
Forgotten clang-format and C standard audit. (#114)
hroederld Feb 8, 2021
f501486
minor merge conflict in public contribution
hroederld May 13, 2021
f17458c
merge from public after release
LaunchDarklyCI May 13, 2021
39cf780
[ch109467] fix bucketBy (#115)
hroederld May 26, 2021
10e6aea
merge from public after release
LaunchDarklyCI May 26, 2021
cc1652f
[ch111014] remove stdbool.h references (#117)
hroederld Jun 9, 2021
a90bd1d
merge from public after release
LaunchDarklyCI Jun 9, 2021
8ac7180
[ch111014] Ensure modern clang passes (#118)
hroederld Jun 11, 2021
eeb6a55
[ch111482] fix OSX CI (#119)
hroederld Jun 14, 2021
4012e9d
[ch111482] fix osx releaser (#120)
hroederld Jun 14, 2021
89d5c4e
merge from public after release
LaunchDarklyCI Jun 14, 2021
c46de88
merge experimentation allocation changes
hroederld Jun 20, 2021
7405cc1
merge from public after release
LaunchDarklyCI Jun 21, 2021
e7dbe0c
[ch114396] improve flag / segment validation (#121)
hroederld Jul 20, 2021
1802b1e
merge from public after release
Jul 21, 2021
5b2497e
ch121458 Ensure that LDAllFlags returns all valid flags in the case w…
kinyoklion Sep 9, 2021
8203b89
ch121458 Handle the case where there are not any flags in the store.
kinyoklion Sep 9, 2021
22616d5
ch121458 Remove unused eval status.
kinyoklion Sep 9, 2021
6f34436
ch121458 Run test before shutting down logger.
kinyoklion Sep 10, 2021
32da843
ch121458 Address style feedback. Space after if.
kinyoklion Sep 10, 2021
20d7666
ch121458 Check that result is empty in malformed fallthrough case.
kinyoklion Sep 10, 2021
dc85aa4
ch121458 Allow for the rollout kind to be empty.
kinyoklion Sep 10, 2021
f7de8f4
ch121458 Summarize events with EVAL_SCHEMA errors.
kinyoklion Sep 13, 2021
0c357be
ch121458 Re-enable tests. Fix formatting.
kinyoklion Sep 13, 2021
4e04b92
ch121458 Remove comment about updating test.
kinyoklion Sep 13, 2021
9b61a57
Remove duplicate line.
kinyoklion Sep 14, 2021
01cb21b
Merge pull request #122 from launchdarkly/rlamb/ch121458/LDAllFlags-s…
kinyoklion Sep 14, 2021
716805f
ch123139 Allow the c-server-sdk to build from any directory on windows.
kinyoklion Sep 17, 2021
f13cc90
Merge pull request #124 from launchdarkly/rlamb/ch123139/Allow-sdk-to…
kinyoklion Sep 17, 2021
bb260be
merge from public after release
Sep 17, 2021
fe3a302
Rlamb/ch122102/add unit testing framework (#123)
kinyoklion Sep 20, 2021
0caf25e
ch123169 Add unit test reporting for circleci. (#125)
kinyoklion Sep 21, 2021
bf8b54a
Updates docs URLs
ember-stevens Sep 26, 2021
d0c2669
Merge pull request #126 from launchdarkly/emberstevens/sc-118589/url-…
ember-stevens Sep 27, 2021
e2924be
ch124211 Make google test makefile not relative. (#127)
kinyoklion Sep 28, 2021
4e9ab6b
update Releaser config and scripts to v2 model (#128)
eli-darkly Oct 12, 2021
0429973
sc-126967 Build for windows in release. (#129)
kinyoklion Oct 18, 2021
4c73636
merge from public after release
Oct 19, 2021
93476bc
SC-130264: Update PCRE download URL [Windows] (#131)
cwaldren-ld Nov 8, 2021
620f658
Remove unused headers from various source files (#130)
cwaldren-ld Nov 9, 2021
2b99d74
Fix batch of spelling issues (#133)
cwaldren-ld Dec 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .ldrelease/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ SetupVSToolsEnv -architecture amd64
If(Test-Path "curl-7.59.0") {
Write-Host "Curl already present."
} Else {
DownloadAndUnzip -url "https://curl.haxx.se/download/curl-7.59.0.zip" -filename "curl.zip"
# NOTE: Recompute this SHA256 hash whenever the file is updated. This way we can detect
# if the file has changed.
$CurlSHA256 = "687b77fe00bc6f9dad5623742183028541b4d2c0f64bfd7e0acf7038fda27cdc"
$CurlURL = "https://curl.haxx.se/download/curl-7.59.0.zip"

DownloadAndUnzip -url $CurlURL -filename "curl.zip" -sha256 $CurlSHA256

Write-Host
Write-Host Building curl
Expand All @@ -31,7 +36,12 @@ If(Test-Path "curl-7.59.0") {
If(Test-Path "pcre-8.43") {
Write-Host "PRCE already present."
} Else {
DownloadAndUnzip -url "https://ftp.pcre.org/pub/pcre/pcre-8.43.zip" -filename "pcre.zip"
# NOTE: Recompute this SHA256 hash whenever the file is updated. This way we can detect
# if the file has changed.
$PcreSHA256 = "ae236dc25d7e0e738a94e103218e0085eb02ff9bd98f637b6e061a48decdb433"
$PcreURL = "https://iweb.dl.sourceforge.net/project/pcre/pcre/8.43/pcre-8.43.zip"

DownloadAndUnzip -url $PcreURL -filename "pcre.zip" -sha256 $PcreSHA256

Write-Host
Write-Host Building PCRE
Expand Down
10 changes: 9 additions & 1 deletion .ldrelease/helpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,18 @@ function ExecuteOrFail {
function DownloadAndUnzip {
param(
[Parameter(Mandatory)][string]$url,
[Parameter(Mandatory)][string]$filename
[Parameter(Mandatory)][string]$filename,
[Parameter(Mandatory)][string]$sha256
)
Write-Host Downloading and expanding $url
ExecuteOrFail { iwr -outf $filename $url }
$Hash = Get-FileHash $filename -Algorithm SHA256
if ($Hash.Hash -eq $sha256) {
Write-Host "SHA256($filename) = ($($Hash.Hash)) OK"
} else {
Write-Host "SHA256($filename) = ($($Hash.Hash)) MISMATCH"
throw "$filename checksum mismatch"
}
ExecuteOrFail { unzip $filename | Out-Null }
}

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cd curl-7.59.0/winbuild
nmake /f Makefile.vc mode=static
```

You can obtain the `libpcre` dependency at [ftp.pcre.org](https://ftp.pcre.org/pub/pcre/pcre-8.43.zip). Extract this archive into the SDK source directory. To build `libpcre` run:
You can obtain the `libpcre` dependency at [sourceforge.net](https://iweb.dl.sourceforge.net/project/pcre/pcre/8.43/pcre-8.43.zip). Extract this archive into the SDK source directory. To build `libpcre` run:

```bash
cd pcre-8.43
Expand Down
2 changes: 1 addition & 1 deletion include/launchdarkly/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ LDClientTrack(
* transferred. May not be `NULL`.
* @param[in] data The JSON to attach to the event. Ownership of `data` is
* transferred. May be `NULL`.
* @param[in] metric A metric to be assocated with the event.
* @param[in] metric A metric to be associated with the event.
* @return True if the event was queued, False on error.
*/
LD_EXPORT(LDBoolean)
Expand Down
6 changes: 3 additions & 3 deletions include/launchdarkly/store.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* @file store.h
* @brief Public API Interface for Store implementatons
* @brief Public API Interface for Store implementations
*/

#pragma once
Expand Down Expand Up @@ -47,7 +47,7 @@ struct LDStoreCollectionState
*
* The associated functions use a boolean result to indicate success, or error
* outside of expected functionality. For example a memory allocation error
* would return false, but `get` on a non existant item would return true.
* would return false, but `get` on a non existent item would return true.
* @{
******************************************************************************/

Expand Down Expand Up @@ -125,7 +125,7 @@ struct LDStoreInterface
* @brief Determine if the store is initialized with features yet.
* @param[in] context Implementation specific context.
* May not be NULL (assert).
* @return True if the store is intialized, false otherwise.
* @return True if the store is initialized, false otherwise.
*/
LDBoolean (*initialized)(void *const context);
/**
Expand Down
6 changes: 3 additions & 3 deletions include/launchdarkly/variations.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <launchdarkly/json.h>
#include <launchdarkly/user.h>

/** @brief The reason an evaluation occured */
/** @brief The reason an evaluation occurred */
enum LDEvalReason
{
/** @brief A default unset reason */
Expand Down Expand Up @@ -95,7 +95,7 @@ struct LDDetails
/** @brief True if there is a `variationIndex`, false if the default
* value was returned. */
LDBoolean hasVariation;
/** @brief The reason an evaluation occured */
/** @brief The reason an evaluation occurred */
enum LDEvalReason reason;
/** @brief Extra information depending on the evaluation reason */
union {
Expand Down Expand Up @@ -228,7 +228,7 @@ LDStringVariation(
* If `NULL` no explanation will be generated.
* @return The fallback will be returned on any error but may be `NULL` on
* allocation failure.
* The result must be cleanud up with `LDJSONFree`.
* The result must be cleaned up with `LDJSONFree`.
*/
LD_EXPORT(struct LDJSON *)
LDJSONVariation(
Expand Down
1 change: 0 additions & 1 deletion src/client.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <stdlib.h>
#include <string.h>

#include <launchdarkly/api.h>
Expand Down
1 change: 0 additions & 1 deletion src/config.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <stdlib.h>
#include <string.h>

#include <launchdarkly/api.h>
Expand Down
2 changes: 1 addition & 1 deletion src/evaluate.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ LDi_evaluate(
o_events,
recordReason)))
{
LD_LOG(LD_LOG_ERROR, "checkPrequisites failed");
LD_LOG(LD_LOG_ERROR, "checkPrerequisites failed");

return substatus;
}
Expand Down
6 changes: 2 additions & 4 deletions src/event_processor.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include <string.h>

#include <launchdarkly/memory.h>

#include "assertion.h"
Expand Down Expand Up @@ -522,7 +520,7 @@ LDi_possiblyQueueEvent(
event = NULL;
}

/* consume if neither debug or track */
/* consume if neither debug nor track */
LDJSONFree(event);
}

Expand Down Expand Up @@ -1544,7 +1542,7 @@ LDi_bundleEventPayload(
{
LDi_mutex_unlock(&context->lock);

/* succesful but no events to send */
/* successful but no events to send */

return LDBooleanTrue;
}
Expand Down
1 change: 0 additions & 1 deletion src/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "client.h"
#include "config.h"
#include "events.h"
#include "lru.h"
#include "network.h"
#include "user.h"
#include "utility.h"
Expand Down
1 change: 0 additions & 1 deletion src/lru.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include "assertion.h"
#include "lru.h"
#include "utility.h"

#include "uthash.h"
#include "utlist.h"
Expand Down
3 changes: 1 addition & 2 deletions src/network.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <curl/curl.h>
#include <math.h>
#include <stdio.h>

#include <launchdarkly/api.h>
Expand Down Expand Up @@ -318,7 +317,7 @@ LDi_networkthread(void *const clientref)
}

if (!active_events) {
/* if curl is not doing anything wait so we don't burn CPU */
/* if curl is not doing anything, wait, so we don't burn CPU */
LDi_sleepMilliseconds(10);
}
}
Expand Down
1 change: 0 additions & 1 deletion src/operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "assertion.h"
#include "operators.h"
#include "utility.h"

#define CHECKSTRING(uvalue, cvalue) \
if (LDJSONGetType(uvalue) != LDText || LDJSONGetType(cvalue) != LDText) { \
Expand Down