Skip to content

Commit

Permalink
make compatible with new clingo versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaminsk committed Mar 23, 2024
1 parent af6107c commit 4c8b48e
Show file tree
Hide file tree
Showing 2 changed files with 734 additions and 382 deletions.
4 changes: 2 additions & 2 deletions app/lib/src/app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ Rewriter::Rewriter(clingodl_theory_t *theory, clingo_program_builder_t *builder)
}

void Rewriter::rewrite(Clingo::StringSpan files) {
Clingo::Detail::handle_error(clingo_ast_parse_files(files.begin(), files.size(), rewrite_, this, nullptr, nullptr, 0));
Clingo::Detail::handle_error(clingo_ast_parse_files(files.begin(), files.size(), rewrite_, this, nullptr, nullptr, nullptr, 0));
}

void Rewriter::rewrite(char const *str) {
Clingo::Detail::handle_error(clingo_ast_parse_string(str, rewrite_, this, nullptr, nullptr, 0));
Clingo::Detail::handle_error(clingo_ast_parse_string(str, rewrite_, this, nullptr, nullptr, nullptr, 0));
}

bool Rewriter::add_(clingo_ast_t *stm, void *data) {
Expand Down
Loading

0 comments on commit 4c8b48e

Please sign in to comment.