diff --git a/CHANGES b/CHANGES index 2f27a53b46..49e9bfe968 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,8 @@ +2.6-378 | 2019-06-05 16:23:04 -0700 + + * Rename BRO_DEPRECATED macro to ZEEK_DEPRECATED (Jon Siwek, Corelight) + 2.6-377 | 2019-06-05 16:15:58 -0700 * Deprecate functions with "bro" in them. (Jon Siwek, Corelight) diff --git a/VERSION b/VERSION index 8bf897ac13..459107e51a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.6-377 +2.6-378 diff --git a/src/Val.h b/src/Val.h index 41ad6b654c..2890c4c5e8 100644 --- a/src/Val.h +++ b/src/Val.h @@ -87,7 +87,7 @@ typedef union { class Val : public BroObj { public: - BRO_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") + ZEEK_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") Val(bool b, TypeTag t) { val.int_val = b; @@ -97,7 +97,7 @@ public: #endif } - BRO_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") + ZEEK_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") Val(int32 i, TypeTag t) { val.int_val = bro_int_t(i); @@ -107,7 +107,7 @@ public: #endif } - BRO_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") + ZEEK_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") Val(uint32 u, TypeTag t) { val.uint_val = bro_uint_t(u); @@ -117,7 +117,7 @@ public: #endif } - BRO_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") + ZEEK_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") Val(int64 i, TypeTag t) { val.int_val = i; @@ -127,7 +127,7 @@ public: #endif } - BRO_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") + ZEEK_DEPRECATED("use val_mgr->GetBool, GetFalse/GetTrue, GetInt, or GetCount instead") Val(uint64 u, TypeTag t) { val.uint_val = u; @@ -454,15 +454,15 @@ protected: class PortManager { public: // Port number given in host order. - BRO_DEPRECATED("use val_mgr->GetPort() instead") + ZEEK_DEPRECATED("use val_mgr->GetPort() instead") PortVal* Get(uint32 port_num, TransportProto port_type) const; // Host-order port number already masked with port space protocol mask. - BRO_DEPRECATED("use val_mgr->GetPort() instead") + ZEEK_DEPRECATED("use val_mgr->GetPort() instead") PortVal* Get(uint32 port_num) const; // Returns a masked port number - BRO_DEPRECATED("use PortVal::Mask() instead") + ZEEK_DEPRECATED("use PortVal::Mask() instead") uint32 Mask(uint32 port_num, TransportProto port_type) const; }; @@ -619,11 +619,11 @@ protected: class PortVal : public Val { public: // Port number given in host order. - BRO_DEPRECATED("use val_mgr->GetPort() instead") + ZEEK_DEPRECATED("use val_mgr->GetPort() instead") PortVal(uint32 p, TransportProto port_type); // Host-order port number already masked with port space protocol mask. - BRO_DEPRECATED("use val_mgr->GetPort() instead") + ZEEK_DEPRECATED("use val_mgr->GetPort() instead") explicit PortVal(uint32 p); Val* SizeVal() const override { return val_mgr->GetInt(val.uint_val); } @@ -1120,7 +1120,7 @@ protected: class EnumVal : public Val { public: - BRO_DEPRECATED("use t->GetVal(i) instead") + ZEEK_DEPRECATED("use t->GetVal(i) instead") EnumVal(int i, EnumType* t) : Val(t) { val.int_val = i; diff --git a/src/util.h b/src/util.h index 6a08ebe1ea..388cbe3079 100644 --- a/src/util.h +++ b/src/util.h @@ -4,12 +4,12 @@ #define util_h #ifdef __GNUC__ - #define BRO_DEPRECATED(msg) __attribute__ ((deprecated(msg))) + #define ZEEK_DEPRECATED(msg) __attribute__ ((deprecated(msg))) #elif defined(_MSC_VER) - #define BRO_DEPRECATED(msg) __declspec(deprecated(msg)) func + #define ZEEK_DEPRECATED(msg) __declspec(deprecated(msg)) func #else - #pragma message("Warning: BRO_DEPRECATED macro not implemented") - #define BRO_DEPRECATED(msg) + #pragma message("Warning: ZEEK_DEPRECATED macro not implemented") + #define ZEEK_DEPRECATED(msg) #endif // Expose C99 functionality from inttypes.h, which would otherwise not be