Commit 2bad97cd authored by Paul Asmuth's avatar Paul Asmuth
Browse files

add a non-const expr_next function

parent 9d92d2df
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -62,6 +62,10 @@ ExprStorage expr_create_value_literal(const std::string& str) {
  return e;
}

Expr* expr_next(Expr* expr) {
  return expr->next.get();
}

const Expr* expr_next(const Expr* expr) {
  return expr->next.get();
}
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ ExprStorage expr_create_list(ExprStorage items);
ExprStorage expr_create_value(const std::string& str);
ExprStorage expr_create_value_literal(const std::string& str);

Expr* expr_next(Expr* expr);
const Expr* expr_next(const Expr* expr);
void expr_set_next(Expr* expr, ExprStorage next);
ExprStorage* expr_get_next_storage(Expr* expr);