[code] format
This commit is contained in:
parent
9b109edaa1
commit
c55d54d325
|
@ -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 {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue