Remove using util.h in various headers in favor of util-types.h

This commit is contained in:
Tim Wojtulewicz 2025-06-06 15:33:47 -07:00
parent 9928403b0b
commit f8c04998af
14 changed files with 22 additions and 16 deletions

View file

@ -2,9 +2,14 @@
#pragma once
#include "zeek/Type.h"
#include "zeek/util-types.h"
namespace zeek::detail {
namespace zeek {
class Type;
class Val;
namespace detail {
inline bool double_to_count_would_overflow(double v) { return v < 0.0 || v > static_cast<double>(UINT64_MAX); }
@ -18,4 +23,5 @@ inline bool count_to_int_would_overflow(zeek_uint_t v) { return v > INT64_MAX; }
extern bool would_overflow(const zeek::Type* from_type, const zeek::Type* to_type, const Val* val);
} // namespace zeek::detail
} // namespace detail
} // namespace zeek