Jef Roosens Chewing_Bever
Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

Vieter doesn't only supports zstd-compressed archives. Currently it also accepts xz- or gzip-compressed archives, so this should be accounted for.

Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

Returning NULL when a function fails doesn't say anything about why the function failed. A better API imo (which I also use in the heap module) is for the function to return an enum value intead, indicating the success of the function. The output is written to a pointer-to-pointer that is passed as the first argument of the function.

Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

Oh smart, no array indexing required, didn't even think of that ;p

Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

This check is not safe, the dynarray code doesn't make any guarantees about empty fields being NULL, they're simply malloc'ed and not initialised.

Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

General note for snprintf usage: what happens if the value is larger than the buffer? Is it simply cut off? Cuz if so, we shouldn't be making assumptions about the length of the input.

Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

As mentioned on matrix, this function should become a streaming one.

Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

Shouldn't this be sizeof(a package)?

Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

This should also use SMALL_BUFF_SIZE I think, just for consistency.

Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

I'm not quite sure yet where I'd like to place third-party code (in case we start adding more stuff like this), but considering this is the only place this is used, just leaving it here for now is fine.

Jef Roosens suggested changes for vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

In general, the code isn't formatted at all, but that can be fixed by a simple make fmt.

Jef Roosens commented on pull request vieter-v/libvieter#6 2023-01-29 13:42:07 +01:00
Refactor package module into C

Same here

Jef Roosens pushed to red-black-tree at Chewing_Bever/libvieter 2023-01-28 19:28:48 +01:00
3fb027715c test(tree): validation function to use in testing
Jef Roosens pushed to dev at Chewing_Bever/vieter 2023-01-28 17:35:47 +01:00
e10b450abd fix: metrics no longer bloat memory
Jef Roosens pushed to dev at vieter-v/vieter 2023-01-28 17:35:19 +01:00
e10b450abd fix: metrics no longer bloat memory
Jef Roosens pushed to main at vieter-v/metrics 2023-01-28 17:33:55 +01:00
0df06647b3 fix: i'm dumb
Jef Roosens pushed to main at vieter-v/metrics 2023-01-28 17:33:16 +01:00
ae2eeeb974 fix: add buckets_set function to interface
Jef Roosens pushed to main at vieter-v/metrics 2023-01-28 17:29:31 +01:00
bf1385ee6d feat: only store bucket values for histogram
116b85e039 refactor: make Gauge own struct
Compare 2 commits »
Jef Roosens created branch mem-usage in vieter-v/metrics 2023-01-28 17:23:00 +01:00
Jef Roosens pushed to mem-usage at vieter-v/metrics 2023-01-28 17:23:00 +01:00
bf1385ee6d feat: only store bucket values for histogram
116b85e039 refactor: make Gauge own struct
Compare 2 commits »
Jef Roosens pushed to dev at Chewing_Bever/vieter 2023-01-28 16:00:42 +01:00
8f32888dff fix: i'm too lazy to test these
da370f42fd fix: update md5sums in pkgbuild
0d6ca8d3e4 Merge pull request 'Cron implementation in C' (#341) from Chewing_Bever/vieter:c-cron into dev
434c4eb558 chore: updated changelog
3b320ac7c3 fix: accidentally changed submodule commit
Compare 10 commits »