mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Deprecate bro_int_t and bro_uint_t
This commit is contained in:
parent
d066013793
commit
f624c18383
67 changed files with 331 additions and 320 deletions
|
@ -77,8 +77,10 @@ extern "C"
|
|||
|
||||
#include "zeek/3rdparty/ghc/filesystem.hpp"
|
||||
|
||||
using bro_int_t = int64_t;
|
||||
using bro_uint_t = uint64_t;
|
||||
using zeek_int_t = int64_t;
|
||||
using zeek_uint_t = uint64_t;
|
||||
using bro_int_t [[deprecated("Remove in v6.1. Use zeek_int_t.")]] = zeek_int_t;
|
||||
using bro_uint_t [[deprecated("Remove in v6.1. Use zeek_uint_t.")]] = zeek_uint_t;
|
||||
|
||||
#ifndef HAVE_STRCASESTR
|
||||
extern char* strcasestr(const char* s, const char* find);
|
||||
|
@ -509,7 +511,7 @@ inline char* safe_strncpy(char* dest, const char* src, size_t n)
|
|||
|
||||
// Memory alignment helpers.
|
||||
|
||||
inline bool is_power_of_2(bro_uint_t x)
|
||||
inline bool is_power_of_2(zeek_uint_t x)
|
||||
{
|
||||
return ((x - 1) & x) == 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue