Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten committed Mar 20, 2024
1 parent 6b2db9c commit 36592d5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions include/xeus/xinterpreter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace xeus

void configure();

nl::json execute_request( xexecute_request_context context,
void execute_request( xexecute_request_context context,
const std::string& code,
bool silent,
bool store_history,
Expand Down Expand Up @@ -101,7 +101,7 @@ namespace xeus

virtual void configure_impl() = 0;

virtual nl::json execute_request_impl(xexecute_request_context request_context,
virtual void execute_request_impl(xexecute_request_context request_context,
int execution_counter,
const std::string& code,
bool silent,
Expand Down
8 changes: 4 additions & 4 deletions src/xinterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace xeus
configure_impl();
}

nl::json xinterpreter::execute_request(xexecute_request_context context,
void xinterpreter::execute_request(xexecute_request_context context,
const std::string& code,
bool silent,
bool store_history,
Expand All @@ -42,14 +42,14 @@ namespace xeus
publish_execution_input(context, code, m_execution_count);
}

nl::json reply = execute_request_impl(
execute_request_impl(
std::move(context),
m_execution_count, code, silent,
store_history, user_expressions, allow_stdin
);

reply["execution_count"] = m_execution_count;
return reply;
// reply["execution_count"] = m_execution_count;
// return reply;
}

nl::json xinterpreter::complete_request(const std::string& code, int cursor_pos)
Expand Down
2 changes: 1 addition & 1 deletion src/xmock_interpreter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace xeus
{
}

nl::json execute_request_impl(xexecute_request_context request_context,
void execute_request_impl(xexecute_request_context request_context,
int /*execution_counter*/,
const std::string& /*code*/,
bool /*silent*/,
Expand Down
2 changes: 1 addition & 1 deletion test/xmock_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace xeus
using function_type = std::function<void(xeus::xcomm&&, const xeus::xmessage&)>;
}

nl::json xmock_interpreter::execute_request_impl(xexecute_request_context request_context,
void xmock_interpreter::execute_request_impl(xexecute_request_context request_context,
int execution_counter,
const std::string& code,
bool /* silent */,
Expand Down
2 changes: 1 addition & 1 deletion test/xmock_interpreter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace xeus

void configure_impl() override;

nl::json execute_request_impl(xexecute_request_context request_context,
void execute_request_impl(xexecute_request_context request_context,
int execution_counter,
const std::string& code,
bool silent,
Expand Down

0 comments on commit 36592d5

Please sign in to comment.