Skip to content

Commit

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

  relates to PJK/libcbor#237

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 authored and BrewTestBot committed Dec 29, 2022
1 parent d96a588 commit bfa066c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Formula/libcbor.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Libcbor < Formula
desc "CBOR protocol implementation for C and others"
homepage "https://github.com/PJK/libcbor"
url "https://github.com/PJK/libcbor/archive/v0.9.0.tar.gz"
sha256 "da81e4f9333e0086d4e2745183c7052f04ecc4dbcffcf910029df24f103c15d1"
url "https://github.com/PJK/libcbor/archive/v0.10.0.tar.gz"
sha256 "4f79c6a9e587aaf877f1c4e74a842a599f2b56b5afb6bf59e51bc643b4f69ba0"
license "MIT"

bottle do
Expand Down 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 bfa066c

Please sign in to comment.