mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
binpac: Initial import of Bro's binpac subdirectory from SVN r7088.
This commit is contained in:
parent
5a1c4fd5fe
commit
c8665318e6
113 changed files with 15630 additions and 0 deletions
37
tools/binpac/src/pac_enum.h
Normal file
37
tools/binpac/src/pac_enum.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
#ifndef pac_enum_h
|
||||
#define pac_enum_h
|
||||
|
||||
#include "pac_decl.h"
|
||||
|
||||
class Enum
|
||||
{
|
||||
public:
|
||||
Enum(ID *id, Expr *expr = 0);
|
||||
~Enum();
|
||||
|
||||
void GenHeader(Output *out_h, int *pval);
|
||||
|
||||
private:
|
||||
ID *id_;
|
||||
Expr *expr_;
|
||||
};
|
||||
|
||||
class EnumDecl : public Decl
|
||||
{
|
||||
public:
|
||||
EnumDecl(ID *id, EnumList *enumlist);
|
||||
~EnumDecl();
|
||||
|
||||
Type *DataType() const { return datatype_; }
|
||||
|
||||
void Prepare();
|
||||
void GenForwardDeclaration(Output *out_h);
|
||||
void GenCode(Output *out_h, Output *out_cc);
|
||||
|
||||
private:
|
||||
EnumList *enumlist_;
|
||||
Type *datatype_;
|
||||
TypeDecl *extern_typedecl_;
|
||||
};
|
||||
|
||||
#endif // pac_enum_h
|
Loading…
Add table
Add a link
Reference in a new issue