mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 00:34:01 +02:00
Squashed 'src/ipc/libmultiprocess/' changes from b4120d34bad2..1b8d4a6f1e54
1b8d4a6f1e54 Merge bitcoin-core/libmultiprocess#194: mpgen: Work around c++20 / capnproto 0.8 incompatibility f1fad396bf5f Merge bitcoin-core/libmultiprocess#195: ci: Add openbsd eed42f210d17 ci: Bump all tasks to actions/checkout@v5 486a510bbeff ci: Remove ancient and problematic -lstdc++fs in mpexample dd40897efe79 Add missing thread include 98414e7d2867 ci: Add openbsd dc3ba2204606 cmake, doc: Add check for CVE-2022-46149 cb170d4913a2 Merge bitcoin-core/libmultiprocess#193: build: require CapnProto 0.7.0 or better 8ceeaa6ae401 ci: Add olddeps job to test old dependencies versions c4cb758eccb5 mpgen: Work around c++20 / capnproto 0.8 incompatibility 30930dff7b06 build: require CapnProto 0.7.0 or better git-subtree-dir: src/ipc/libmultiprocess git-subtree-split: 1b8d4a6f1e54b92708bd2ad627ec6d440a1daf3d
This commit is contained in:
@@ -146,7 +146,7 @@ static void Generate(kj::StringPtr src_prefix,
|
||||
const std::vector<kj::Own<const kj::ReadableDirectory>>& import_dirs)
|
||||
{
|
||||
std::string output_path;
|
||||
if (src_prefix == ".") {
|
||||
if (src_prefix == kj::StringPtr{"."}) {
|
||||
output_path = src_file;
|
||||
} else if (!src_file.startsWith(src_prefix) || src_file.size() <= src_prefix.size() ||
|
||||
src_file[src_prefix.size()] != '/') {
|
||||
@@ -156,7 +156,7 @@ static void Generate(kj::StringPtr src_prefix,
|
||||
}
|
||||
|
||||
std::string include_path;
|
||||
if (include_prefix == ".") {
|
||||
if (include_prefix == kj::StringPtr{"."}) {
|
||||
include_path = src_file;
|
||||
} else if (!src_file.startsWith(include_prefix) || src_file.size() <= include_prefix.size() ||
|
||||
src_file[include_prefix.size()] != '/') {
|
||||
@@ -425,8 +425,8 @@ static void Generate(kj::StringPtr src_prefix,
|
||||
|
||||
const std::string method_prefix = Format() << message_namespace << "::" << method_interface.getShortDisplayName()
|
||||
<< "::" << Cap(method_name);
|
||||
const bool is_construct = method_name == "construct";
|
||||
const bool is_destroy = method_name == "destroy";
|
||||
const bool is_construct = method_name == kj::StringPtr{"construct"};
|
||||
const bool is_destroy = method_name == kj::StringPtr{"destroy"};
|
||||
|
||||
struct Field
|
||||
{
|
||||
@@ -465,7 +465,7 @@ static void Generate(kj::StringPtr src_prefix,
|
||||
field.result_is_set = true;
|
||||
}
|
||||
|
||||
if (!param && field_name == "result") {
|
||||
if (!param && field_name == kj::StringPtr{"result"}) {
|
||||
field.retval = true;
|
||||
has_result = true;
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <sys/wait.h>
|
||||
#include <system_error>
|
||||
#include <thread> // NOLINT(misc-include-cleaner) // IWYU pragma: keep
|
||||
#include <unistd.h>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
Reference in New Issue
Block a user