Jon Siwek
f729247778
Deprecate RecordVal::Lookup(int), replace with GetField(int)
2020-05-19 18:19:58 -07:00
Jon Siwek
377779bb2a
Change BroValUnion to use IntrusivePtr for record field storage
...
This also changes the AsRecord() and AsNonConstRecord() accessors
to return std::vector<IntrusivePtr<Val>>* instead of val_list*
2020-05-19 17:15:13 -07:00
Jon Siwek
cda4738407
Switch RecordVal::CoerceTo() to use IntrusivePtr
2020-05-18 17:52:54 -07:00
Jon Siwek
fcaade6e31
Deprecate TableEntryVal::Value(), replace with GetVal()
2020-05-18 17:09:27 -07:00
Johanna Amann
e7f25aa2ff
Merge remote-tracking branch 'origin/master' into topic/johanna/table-changes
...
Includes code-changes needed to make this compile again.
2020-05-18 16:12:21 -07:00
Jon Siwek
83f1a911d7
Deprecate FuncType::ArgTypes(), replace with ParamList()
2020-05-15 19:15:24 -07:00
Jon Siwek
40153cc5cb
Deprecate FuncType::Args(), replace with Params()
2020-05-15 19:04:31 -07:00
Jon Siwek
6aa1d0468d
Deprecate BroFile::FType(), replace with GetType()
2020-05-15 18:25:45 -07:00
Jon Siwek
688bed97bc
Deprecate Func::FType(), replace with Func::GetType()
2020-05-15 18:21:06 -07:00
Jon Siwek
65aad4922d
Deprecate Val(BroFile*) ctor, replace with one using IntrusivePtr
2020-05-15 17:11:05 -07:00
Jon Siwek
a031f5b727
Deprecate Val(Func*) ctor, replace with one using IntrusivePtr
2020-05-15 16:24:53 -07:00
Jon Siwek
440b0623ac
Deprecate RecordVal(RecordType*) ctor
...
Replaced with one that takes IntrusivePtr
2020-05-14 19:31:43 -07:00
Jon Siwek
4debad8caf
Switch zeek: 🆔 :lookup to zeek: 🆔 :find
...
For parity with Scope since it now uses Find instead of Lookup
2020-05-14 18:00:18 -07:00
Jon Siwek
eedeb07550
Deprecate all BroType* in BifType:: namespace
...
Replaced with equivalently named IntrusivePtr in zeek::BifType::
2020-05-14 17:25:35 -07:00
Jon Siwek
8f95a2a0bb
Deprecate Scope::Lookup(), replace with Scope::Find()
2020-05-14 17:24:21 -07:00
Jon Siwek
a5762c12cc
Move various elements into ID.h and zeek::id namespace
...
* A handful of generic/useful/common global type pointers that used
to be in NetVar.h
* Lookup functions that used to be Var.h
2020-05-14 17:24:20 -07:00
Jon Siwek
9210d443d3
Trim the list of "global type pointers" from NetVar.h further
...
Most of them are deprecated now, with usage sites now doing the lookup
themselves.
2020-05-14 17:23:20 -07:00
Jon Siwek
4351a26710
Add RecordVal ctor that takes IntrusivePtr
2020-05-14 17:23:20 -07:00
Jon Siwek
e3f7b38890
Deprecate Expr::Type(), replace with GetType()
2020-05-14 17:23:20 -07:00
Jon Siwek
1eb723fc9d
Deprecate Val::Type(), replace with GetType()
2020-05-14 17:23:20 -07:00
Jon Siwek
737420c359
Change Val to store IntrusivePtr
2020-05-14 17:23:20 -07:00
Jon Siwek
afd939ceb1
Remove VectorVal::vector_type member
2020-05-14 17:23:20 -07:00
Jon Siwek
d4dba40727
Deprecate VectorVal(VectorType*) ctora
...
Adds a new one taking an IntrusivePtr.
2020-05-14 17:23:20 -07:00
Jon Siwek
ac06259eec
Deprecate internal_type(), replace with zeek::lookup_type()
2020-05-14 17:22:26 -07:00
Jon Siwek
f26904e031
Deprecate BroType::YieldType(), replace with Yield()
2020-05-14 17:18:00 -07:00
Jon Siwek
bb25f5d568
Change base_type() to return const-ref, deprecate base_type_no_ref()
2020-05-14 17:18:00 -07:00
Jon Siwek
103fed9f01
Deprecate RecordType::FieldType(), replace with GetFieldType()
2020-05-14 17:18:00 -07:00
Jon Siwek
455fc29b1a
Migrate TypeList to store IntrusivePtrs
...
This changes return types of TypeList::Types() and
IndexType::IndexTypes() to return std::vector instead of type_list*
2020-05-14 17:18:00 -07:00
Jon Siwek
011866a908
Deprecate TypeList::PureType(), replace with TypeList::GetPureType()
2020-05-14 17:18:00 -07:00
Jon Siwek
b096e552d3
Deprecate TableVal::ConvertToList() and TableVal::ConvertToPureList()
...
Replaced with ToListVal() and ToPureListVal() that return IntrusivePtr
2020-05-14 17:18:00 -07:00
Jon Siwek
5f57ceb70a
Switch ListVal to store IntrusivePtrs
...
* Deprecates ListVal::Index() methods and replaces with ListVal::Idx()
* Replaces ListVal::Vals() method with one that returns
std::vector<IntrusivePtr<Val>> rather than val_list
2020-05-14 17:18:00 -07:00
Jon Siwek
b422f68b88
Deprecant ListVal::Append(Val*) and add IntrusivePtr version
2020-05-14 17:18:00 -07:00
Jon Siwek
df65d1e829
Deprecate ListVal::ConvertToSet(), add ListVal::ToSetVal()
2020-05-14 17:18:00 -07:00
Jon Siwek
b776f17cea
Merge remote-tracking branch 'origin/topic/vern/any-typetype-when-fix'
...
- Minor whitespace adjutment in merge
* origin/topic/vern/any-typetype-when-fix:
bug fixes for using "when" in functions that have a local of type "any"
2020-04-27 13:33:40 -07:00
Vern Paxson
b86d5b4424
bug fixes for using "when" in functions that have a local of type "any"
2020-04-25 16:56:24 -07:00
Jon Siwek
094d6de979
Update all BIFs to return IntrusivePtr instead of Val*
2020-04-16 17:00:01 -07:00
Jon Siwek
93f4c5871b
Update deprecated ValManager::GetCount usages
2020-04-16 16:46:36 -07:00
Jon Siwek
0ddac4abcf
Update deprecated ValManager::GetInt usages
2020-04-16 16:44:35 -07:00
Jon Siwek
202b3f877d
Deprecate all ValManager "Get" methods
...
Alternate methods that return IntrusivePtr are available in similarly
named methods that omit the "Get" prefix.
2020-04-16 16:40:57 -07:00
Jon Siwek
f70ecccc34
Fix a confusing variable name shadowing
2020-04-14 15:30:15 -07:00
Johanna Amann
876c803d75
Merge remote-tracking branch 'origin/topic/timw/776-using-statements'
...
* origin/topic/timw/776-using-statements:
Remove 'using namespace std' from SerialTypes.h
Remove other using statements from headers
GH-776: Remove using statements added by PR 770
Includes small fixes in files that changed since the merge request was
made.
Also includes a few small indentation fixes.
2020-04-09 13:31:07 -07:00
Tim Wojtulewicz
0a47588d0b
The remaining nulls
2020-04-07 16:08:34 -07:00
Tim Wojtulewicz
d53c1454c0
Remove 'using namespace std' from SerialTypes.h
...
This unfortunately cuases a ton of flow-down changes because a lot of other
code was depending on that definition existing. This has a fairly large chance
to break builds of external plugins, considering how many internal ones it broke.
2020-04-07 15:59:59 -07:00
Tim Wojtulewicz
fd5e15b116
The Great Embooleanating
...
A large number of functions had return values and/or arguments changed
to use ``bool`` types instead of ``int``.
2020-03-31 06:41:54 +00:00
Jon Siwek
599dda9ae9
Fix missing IntrusivePtr.h include and ambiguous ODesc::Add call
2020-03-25 19:37:06 -07:00
Jon Siwek
b667c637df
Deprecate Func::Call(val_list*, ...)
...
The version taking a vector of intrusive pointers should be used
instead. A variadic version is also added that forwards all arguments.
2020-03-24 20:48:32 -07:00
Jon Siwek
4e1ac4e124
Use vector<IntrusivePtr<Val>> for Func::Call and Event queuing args
...
This change may break BIFs that use @ARGS@, @ARG@, or @ARGC@ since their
types have changed.
2020-03-24 16:50:18 -07:00
Jon Siwek
b045ce4bb3
Change TableVal::RecoverIndex() to return IntrusivePtr
2020-03-23 22:01:03 -07:00
Jon Siwek
0b5a18495d
Use IntrusivePtr in TableVal::CallExpireFunc
2020-03-23 22:01:03 -07:00
Jon Siwek
427150b27a
Merge remote-tracking branch 'origin/topic/jsiwek/gh-857-rebuild-tables-on-record-redef'
...
* origin/topic/jsiwek/gh-857-rebuild-tables-on-record-redef:
Initialize RecordVal default fields when redef'd
GH-857: fix redefining record types used to index tables
Change RecordVals to get resized at time of RecordType redef
2020-03-20 11:31:11 -07:00