From bfa066ce87907a4b512eff11b41874d03f57c72b Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 29 Dec 2022 15:14:07 -0500 Subject: [PATCH] libcbor 0.10.0 * libcbor 0.10.0 * libcbor: update test `CBOR_CUSTOM_ALLOC` got deprecated relates to https://github.com/PJK/libcbor/pull/237 Signed-off-by: Rui Chen --- Formula/libcbor.rb | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Formula/libcbor.rb b/Formula/libcbor.rb index e2c80afc4e59c..3ac6fca8618c8 100644 --- a/Formula/libcbor.rb +++ b/Formula/libcbor.rb @@ -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 @@ -32,10 +32,9 @@ def install #include 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