[code] format

This commit is contained in:
tangxifan 2023-01-11 17:19:04 -08:00
parent 9b109edaa1
commit c55d54d325
3 changed files with 6 additions and 8 deletions

View File

@ -7,8 +7,8 @@
#include "basic_command.h" #include "basic_command.h"
#include "command_exit_codes.h" #include "command_exit_codes.h"
#include "openfpga_title.h"
#include "openfpga_basic.h" #include "openfpga_basic.h"
#include "openfpga_title.h"
/* begin namespace openfpga */ /* begin namespace openfpga */
namespace openfpga { namespace openfpga {

View File

@ -4,16 +4,16 @@
* - version * - version
* - help * - help
*******************************************************************/ *******************************************************************/
#include "openfpga_basic.h"
#include "command_exit_codes.h" #include "command_exit_codes.h"
#include "openfpga_title.h" #include "openfpga_title.h"
#include "openfpga_basic.h"
/* begin namespace openfpga */ /* begin namespace openfpga */
namespace openfpga { namespace openfpga {
int source_existing_command(openfpga::Shell<OpenfpgaContext>* shell, int source_existing_command(openfpga::Shell<OpenfpgaContext>* shell,
OpenfpgaContext& openfpga_ctx, OpenfpgaContext& openfpga_ctx, const Command& cmd,
const Command& cmd,
const CommandContext& cmd_context) { const CommandContext& cmd_context) {
CommandOptionId opt_file = cmd.option("from_file"); CommandOptionId opt_file = cmd.option("from_file");
CommandOptionId opt_batch_mode = cmd.option("batch_mode"); CommandOptionId opt_batch_mode = cmd.option("batch_mode");
@ -56,7 +56,6 @@ int source_existing_command(openfpga::Shell<OpenfpgaContext>* shell,
return CMD_EXEC_SUCCESS; return CMD_EXEC_SUCCESS;
} }
/** Call an external command using system call */ /** Call an external command using system call */
int call_external_command(const Command& cmd, int call_external_command(const Command& cmd,
const CommandContext& cmd_context) { const CommandContext& cmd_context) {

View File

@ -4,9 +4,9 @@
/******************************************************************** /********************************************************************
* Include header files that are required by function declaration * Include header files that are required by function declaration
*******************************************************************/ *******************************************************************/
#include "openfpga_context.h"
#include "command.h" #include "command.h"
#include "command_context.h" #include "command_context.h"
#include "openfpga_context.h"
#include "shell.h" #include "shell.h"
/******************************************************************** /********************************************************************
@ -17,8 +17,7 @@
namespace openfpga { namespace openfpga {
int source_existing_command(openfpga::Shell<OpenfpgaContext>* shell, int source_existing_command(openfpga::Shell<OpenfpgaContext>* shell,
OpenfpgaContext& openfpga_ctx, OpenfpgaContext& openfpga_ctx, const Command& cmd,
const Command& cmd,
const CommandContext& cmd_context); const CommandContext& cmd_context);
int call_external_command(const Command& cmd, int call_external_command(const Command& cmd,