mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Minor Broxygen improvements, addresses BIT-1098.
- Internals: move type alias table to private static BroType member. - Sphinx extension: now uses absolute path to bro binary. - reST ouput formatting: remove "param" from function desriptions and change package overview docs so script link+summaries render consistently.
This commit is contained in:
parent
574018f478
commit
dedc39d784
14 changed files with 53 additions and 27 deletions
13
src/Type.h
13
src/Type.h
|
@ -245,6 +245,14 @@ public:
|
|||
void SetName(const string& arg_name) { name = arg_name; }
|
||||
string GetName() const { return name; }
|
||||
|
||||
typedef std::map<std::string, std::set<BroType*> > TypeAliasMap;
|
||||
|
||||
static std::set<BroType*> GetAliases(const std::string& type_name)
|
||||
{ return BroType::type_aliases[type_name]; }
|
||||
|
||||
static void AddAlias(const std::string type_name, BroType* type)
|
||||
{ BroType::type_aliases[type_name].insert(type); }
|
||||
|
||||
protected:
|
||||
BroType() { }
|
||||
|
||||
|
@ -258,6 +266,8 @@ private:
|
|||
bool is_network_order;
|
||||
bool base_type;
|
||||
string name;
|
||||
|
||||
static TypeAliasMap type_aliases;
|
||||
};
|
||||
|
||||
class TypeList : public BroType {
|
||||
|
@ -580,9 +590,6 @@ protected:
|
|||
BroType* yield_type;
|
||||
};
|
||||
|
||||
typedef std::map<std::string, std::set<BroType*> > TypeAliasMap;
|
||||
extern TypeAliasMap type_aliases;
|
||||
|
||||
extern OpaqueType* md5_type;
|
||||
extern OpaqueType* sha1_type;
|
||||
extern OpaqueType* sha256_type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue