mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
updates to ZAM operations / gen-zam regularization, other than the operations themselves
This commit is contained in:
parent
1d7e71b499
commit
5fc2c601b4
17 changed files with 422 additions and 294 deletions
|
@ -48,8 +48,7 @@ FixedCatArg::FixedCatArg(TypePtr _t) : t(std::move(_t)) {
|
|||
}
|
||||
}
|
||||
|
||||
void FixedCatArg::RenderInto(ZVal* zframe, int slot, char*& res) {
|
||||
auto& z = zframe[slot];
|
||||
void FixedCatArg::RenderInto(const ZVal& z, char*& res) {
|
||||
int n;
|
||||
const char* text;
|
||||
std::string str;
|
||||
|
@ -140,8 +139,8 @@ void FixedCatArg::RenderInto(ZVal* zframe, int slot, char*& res) {
|
|||
}
|
||||
}
|
||||
|
||||
size_t PatternCatArg::ComputeMaxSize(ZVal* zframe, int slot) {
|
||||
text = zframe[slot].AsPattern()->AsPattern()->PatternText();
|
||||
size_t PatternCatArg::ComputeMaxSize(const ZVal& zv) {
|
||||
text = zv.AsPattern()->AsPattern()->PatternText();
|
||||
n = strlen(text);
|
||||
return n;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue