mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Remove value serialization.
Note - this compiles, but you cannot run Bro anymore - it crashes immediately with a 0-pointer access. The reason behind it is that the required clone functionality does not work anymore.
This commit is contained in:
parent
9b49c7cbc6
commit
474efe9e69
78 changed files with 58 additions and 9185 deletions
21
src/Obj.h
21
src/Obj.h
|
@ -7,12 +7,8 @@
|
|||
|
||||
#include "input.h"
|
||||
#include "Desc.h"
|
||||
#include "SerialObj.h"
|
||||
|
||||
class Serializer;
|
||||
class SerialInfo;
|
||||
|
||||
class Location : SerialObj {
|
||||
class Location {
|
||||
public:
|
||||
Location(const char* fname, int line_f, int line_l, int col_f, int col_l)
|
||||
{
|
||||
|
@ -36,7 +32,7 @@ public:
|
|||
text = 0;
|
||||
}
|
||||
|
||||
~Location() override
|
||||
virtual ~Location()
|
||||
{
|
||||
if ( delete_data )
|
||||
delete [] filename;
|
||||
|
@ -44,9 +40,6 @@ public:
|
|||
|
||||
void Describe(ODesc* d) const;
|
||||
|
||||
bool Serialize(SerialInfo* info) const;
|
||||
static Location* Unserialize(UnserialInfo* info);
|
||||
|
||||
bool operator==(const Location& l) const;
|
||||
bool operator!=(const Location& l) const
|
||||
{ return ! (*this == l); }
|
||||
|
@ -59,8 +52,6 @@ public:
|
|||
// Timestamp and text for compatibility with Bison's default yyltype.
|
||||
int timestamp;
|
||||
char* text;
|
||||
protected:
|
||||
DECLARE_SERIAL(Location);
|
||||
};
|
||||
|
||||
#define YYLTYPE yyltype
|
||||
|
@ -86,7 +77,7 @@ inline void set_location(const Location start, const Location end)
|
|||
end_location = end;
|
||||
}
|
||||
|
||||
class BroObj : public SerialObj {
|
||||
class BroObj {
|
||||
public:
|
||||
BroObj()
|
||||
{
|
||||
|
@ -112,7 +103,7 @@ public:
|
|||
SetLocationInfo(&start_location, &end_location);
|
||||
}
|
||||
|
||||
~BroObj() override;
|
||||
virtual ~BroObj();
|
||||
|
||||
// Report user warnings/errors. If obj2 is given, then it's
|
||||
// included in the message, though if pinpoint_only is non-zero,
|
||||
|
@ -168,10 +159,6 @@ public:
|
|||
bool in_ser_cache;
|
||||
|
||||
protected:
|
||||
friend class SerializationCache;
|
||||
|
||||
DECLARE_ABSTRACT_SERIAL(BroObj);
|
||||
|
||||
Location* location; // all that matters in real estate
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue