mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Merge remote-tracking branch 'jsoref/spelling-src'
* jsoref/spelling-src: Spelling src
This commit is contained in:
commit
2739275b88
190 changed files with 439 additions and 433 deletions
|
@ -10,7 +10,7 @@
|
|||
#include "zeek/script_opt/ScriptOpt.h"
|
||||
|
||||
// We structure the compiler for generating C++ versions of Zeek script
|
||||
// bodies maily as a single large class. While we divide the compiler's
|
||||
// bodies mainly as a single large class. While we divide the compiler's
|
||||
// functionality into a number of groups (see below), these interact with
|
||||
// one another, and in particular with various member variables, enough
|
||||
// so that it's not clear there's benefit to further splitting the
|
||||
|
@ -385,7 +385,7 @@ private:
|
|||
// then the BiF is also used in a non-call context.
|
||||
void AddBiF(const ID* b, bool is_var);
|
||||
|
||||
// Register the given global name. "suffix" distinguishs particular
|
||||
// Register the given global name. "suffix" distinguishes particular
|
||||
// types of globals, such as the names of bifs, global (non-function)
|
||||
// variables, or compiled Zeek functions.
|
||||
bool AddGlobal(const std::string& g, const char* suffix);
|
||||
|
@ -413,7 +413,7 @@ private:
|
|||
std::string LocalName(const IDPtr& l) const { return LocalName(l.get()); }
|
||||
|
||||
// Returns a canonicalized name, with various non-alphanumeric
|
||||
// characters stripped or transformed, and guananteed not to
|
||||
// characters stripped or transformed, and guaranteed not to
|
||||
// conflict with C++ keywords.
|
||||
std::string Canonicalize(const char* name) const;
|
||||
|
||||
|
@ -509,7 +509,7 @@ private:
|
|||
const IDPList* lambda_ids, const ProfileFunc* pf);
|
||||
|
||||
// Inspects the given profile to find the i'th parameter (starting
|
||||
// at 0). Returns nil if the profile indicates that that parameter
|
||||
// at 0). Returns nil if the profile indicates that the parameter
|
||||
// is not used by the function.
|
||||
const ID* FindParam(int i, const ProfileFunc* pf);
|
||||
|
||||
|
@ -595,7 +595,7 @@ private:
|
|||
std::unordered_set<std::string> compiled_funcs;
|
||||
|
||||
// "Simple" functions that we've compiled, i.e., those that have
|
||||
// a single body and thus can be called dirctly. Indexed by
|
||||
// a single body and thus can be called directly. Indexed by
|
||||
// function name, and maps to the C++ name.
|
||||
std::unordered_map<std::string, std::string> compiled_simple_funcs;
|
||||
|
||||
|
|
|
@ -1090,7 +1090,7 @@ string CPPCompile::GenAssign(const ExprPtr& lhs, const ExprPtr& rhs, const strin
|
|||
return GenListAssign(lhs, rhs);
|
||||
|
||||
default:
|
||||
reporter->InternalError("bad assigment node in CPPCompile::GenExpr");
|
||||
reporter->InternalError("bad assignment node in CPPCompile::GenExpr");
|
||||
return "XXX";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -217,7 +217,7 @@ private:
|
|||
class CPP_BasicConstInitsInfo : public CPP_CustomInitsInfo
|
||||
{
|
||||
public:
|
||||
// In the following, if "c_type" is non-empty then it specifes the
|
||||
// In the following, if "c_type" is non-empty then it specifies the
|
||||
// C++ type used to directly represent the constant. If empty, it
|
||||
// indicates that we instead use an index into a separate vector.
|
||||
CPP_BasicConstInitsInfo(std::string _tag, std::string type, std::string c_type)
|
||||
|
@ -519,7 +519,7 @@ protected:
|
|||
std::string wrapper_class;
|
||||
};
|
||||
|
||||
// Information for registering the class/function assocaited with a lambda.
|
||||
// Information for registering the class/function associated with a lambda.
|
||||
class LambdaRegistrationInfo : public CPP_InitInfo
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -52,7 +52,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
// Providse generic access to Zeek constant values based on a single
|
||||
// Provides generic access to Zeek constant values based on a single
|
||||
// index.
|
||||
ValPtr ConstVals(int offset) const
|
||||
{
|
||||
|
|
|
@ -157,7 +157,7 @@ SubNetValPtr addr_mask__CPP(const IPAddr& a, uint32_t mask)
|
|||
return make_intrusive<SubNetVal>(a, mask);
|
||||
}
|
||||
|
||||
// Helper function for reporting invalidation of interators.
|
||||
// Helper function for reporting invalidation of iterators.
|
||||
static void check_iterators__CPP(bool invalid)
|
||||
{
|
||||
if ( invalid )
|
||||
|
@ -208,7 +208,7 @@ void remove_element__CPP(TableValPtr aggr, ListValPtr indices)
|
|||
// A helper function that takes a parallel vectors of attribute tags
|
||||
// and values and returns a collective AttributesPtr corresponding to
|
||||
// those instantiated attributes. For attributes that don't have
|
||||
// associated expressions, the correspoinding value should be nil.
|
||||
// associated expressions, the corresponding value should be nil.
|
||||
static AttributesPtr build_attrs__CPP(vector<int> attr_tags, vector<ValPtr> attr_vals)
|
||||
{
|
||||
vector<AttrPtr> attrs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue