Skip to content

Commit

Permalink
libcbor: update test
Browse files Browse the repository at this point in the history
`CBOR_CUSTOM_ALLOC` got deprecated

relates to PJK/libcbor#237

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 committed Dec 29, 2022
1 parent 4cb6eac commit 2ef48b8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Formula/libcbor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ def install
#include <stdio.h>
int main(int argc, char * argv[])
{
printf("Hello from libcbor %s\\n", CBOR_VERSION);
printf("Custom allocation support: %s\\n", CBOR_CUSTOM_ALLOC ? "yes" : "no");
printf("Pretty-printer support: %s\\n", CBOR_PRETTY_PRINTER ? "yes" : "no");
printf("Buffer growth factor: %f\\n", (float) CBOR_BUFFER_GROWTH);
printf("Hello from libcbor %s\\n", CBOR_VERSION);
printf("Pretty-printer support: %s\\n", CBOR_PRETTY_PRINTER ? "yes" : "no");
printf("Buffer growth factor: %f\\n", (float) CBOR_BUFFER_GROWTH);
}
EOS

Expand Down

0 comments on commit 2ef48b8

Please sign in to comment.