diff options
| author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2025-08-27 18:36:12 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2025-10-02 07:28:58 +0000 |
| commit | 0a8d8b0c878f85462f52fe5faebfb07678fc2c34 (patch) | |
| tree | 0f70e125055b93632b36645ae65cf006d116fb85 /contrib/libucl/examples/ucl_cpp.cc | |
| parent | 3d91e5d58581e000932854e4acb9cc722f01826a (diff) | |
MFV: libucl: Update to 0.9.2
- Add FREEBSD-upgrade instructions
- Add FREEBSD-Xlist file
- Remove all unnecessary files which are not required for in-tree build
Approved by: bapt
Differential Revision: https://reviews.freebsd.org/D50472
Event: Oslo Hackathon 202508
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 2326db40a1d2dd98631d70aae200ca52575139fb)
Diffstat (limited to 'contrib/libucl/examples/ucl_cpp.cc')
| -rw-r--r-- | contrib/libucl/examples/ucl_cpp.cc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/contrib/libucl/examples/ucl_cpp.cc b/contrib/libucl/examples/ucl_cpp.cc deleted file mode 100644 index 2d15d84a6c8d..000000000000 --- a/contrib/libucl/examples/ucl_cpp.cc +++ /dev/null @@ -1,26 +0,0 @@ -#include <iostream> -#include <string> -#include "ucl++.h" - -int main(int argc, char **argv) -{ - std::string input, err; - - input.assign((std::istreambuf_iterator<char>(std::cin)), - std::istreambuf_iterator<char>()); - - auto obj = ucl::Ucl::parse(input, err); - - if (obj) { - std::cout << obj.dump(UCL_EMIT_CONFIG) << std::endl; - - for (const auto &o : obj) { - std::cout << o.dump(UCL_EMIT_CONFIG) << std::endl; - } - } - else { - std::cerr << "Error: " << err << std::endl; - - return 1; - } -} |
