Replace uses of the old List generation code with new template versions

This commit is contained in:
Tim Wojtulewicz 2019-07-02 18:43:01 -07:00 committed by Jon Siwek
parent 29836b47d0
commit 237c7e4e15
17 changed files with 57 additions and 94 deletions

View file

@ -6,31 +6,24 @@
#include "List.h"
class Expr;
declare(PList,Expr);
typedef PList(Expr) expr_list;
typedef PList<Expr> expr_list;
class ID;
declare(PList,ID);
typedef PList(ID) id_list;
typedef PList<ID> id_list;
class Val;
declare(PList,Val);
typedef PList(Val) val_list;
typedef PList<Val> val_list;
class Stmt;
declare(PList,Stmt);
typedef PList(Stmt) stmt_list;
typedef PList<Stmt> stmt_list;
class BroType;
declare(PList,BroType);
typedef PList(BroType) type_list;
typedef PList<BroType> type_list;
class Attr;
declare(PList,Attr);
typedef PList(Attr) attr_list;
typedef PList<Attr> attr_list;
class Timer;
declare(PList,Timer);
typedef PList(Timer) timer_list;
typedef PList<Timer> timer_list;
#endif