mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
binpac: Add final keyword to class definitions
This commit is contained in:
parent
613ffef4a2
commit
45ef19049c
1 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ void TypeDecl::GenCode(Output* out_h, Output* out_cc)
|
||||||
|
|
||||||
// The first line of class definition
|
// The first line of class definition
|
||||||
out_h->println("");
|
out_h->println("");
|
||||||
out_h->print("class %s", class_name().c_str());
|
out_h->print("class %s final", class_name().c_str());
|
||||||
bool first = true;
|
bool first = true;
|
||||||
vector<string>::iterator i;
|
vector<string>::iterator i;
|
||||||
for ( i = (&base_classes)->begin(); i != (&base_classes)->end(); ++i )
|
for ( i = (&base_classes)->begin(); i != (&base_classes)->end(); ++i )
|
||||||
|
@ -334,8 +334,8 @@ void TypeDecl::GenParseFunc(Output* out_h, Output* out_cc)
|
||||||
out_h->println("// 2. If the input is not complete but the type supports");
|
out_h->println("// 2. If the input is not complete but the type supports");
|
||||||
out_h->println("// incremental input, returns number of input bytes + 1");
|
out_h->println("// incremental input, returns number of input bytes + 1");
|
||||||
out_h->println("// (%s - %s + 1).",
|
out_h->println("// (%s - %s + 1).",
|
||||||
env->LValue(end_of_data),
|
env->LValue(end_of_data),
|
||||||
env->LValue(begin_of_data));
|
env->LValue(begin_of_data));
|
||||||
out_h->println("// 3. An exception will be thrown on error.");
|
out_h->println("// 3. An exception will be thrown on error.");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue