mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/etyp/print-type-const'
* origin/topic/etyp/print-type-const: Fix printing type constants like `double`
This commit is contained in:
commit
c8f8bbaccb
5 changed files with 13 additions and 2 deletions
6
CHANGES
6
CHANGES
|
@ -1,3 +1,9 @@
|
||||||
|
7.2.0-dev.280 | 2025-03-07 13:13:39 -0500
|
||||||
|
|
||||||
|
* GH-4268: Fix printing type constants like `double` (Evan Typanski, Corelight)
|
||||||
|
|
||||||
|
Fixes #4268
|
||||||
|
|
||||||
7.2.0-dev.278 | 2025-03-07 11:02:12 -0700
|
7.2.0-dev.278 | 2025-03-07 11:02:12 -0700
|
||||||
|
|
||||||
* Fix indentation in .clang-tidy (Tim Wojtulewicz, Corelight)
|
* Fix indentation in .clang-tidy (Tim Wojtulewicz, Corelight)
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
7.2.0-dev.278
|
7.2.0-dev.280
|
||||||
|
|
|
@ -3202,7 +3202,7 @@ ValPtr EnumVal::DoClone(CloneState* state) {
|
||||||
return {NewRef{}, this};
|
return {NewRef{}, this};
|
||||||
}
|
}
|
||||||
|
|
||||||
void TypeVal::ValDescribe(ODesc* d) const { d->Add(type->AsTypeType()->GetType()->GetName()); }
|
void TypeVal::ValDescribe(ODesc* d) const { type->AsTypeType()->GetType()->Describe(d); }
|
||||||
|
|
||||||
ValPtr TypeVal::DoClone(CloneState* state) {
|
ValPtr TypeVal::DoClone(CloneState* state) {
|
||||||
// Immutable.
|
// Immutable.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||||
[v=aoeu, valid=T]
|
[v=aoeu, valid=T]
|
||||||
type
|
type
|
||||||
|
double
|
||||||
|
vector of int
|
||||||
|
|
|
@ -7,4 +7,7 @@ event zeek_init()
|
||||||
# Try a couple of functions that take types
|
# Try a couple of functions that take types
|
||||||
print from_json("\"aoeu\"", string);
|
print from_json("\"aoeu\"", string);
|
||||||
print type_name(string);
|
print type_name(string);
|
||||||
|
|
||||||
|
print double;
|
||||||
|
print vector of int;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue