From 3281cb1b6ef675c1951801fb6dcaa3d0f2b55c02 Mon Sep 17 00:00:00 2001 From: john stone Date: Fri, 8 Nov 2013 07:11:35 +0100 Subject: [PATCH] moar c++is comments --- src/sicmain.cc | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/sicmain.cc b/src/sicmain.cc index 7522249..d9144f5 100644 --- a/src/sicmain.cc +++ b/src/sicmain.cc @@ -14,26 +14,24 @@ int main(int argc, char **argv) struct cmd_parser_params *params; - /* initialize the parameters structure */ + //initialize the parameters structure params = cmd_parser_params_create(); - /* call the command line parser */ + //call the command line parser if (cmd_parser(argc, argv, &args_info) != 0) { result = 1; goto stop; } - /* - override command line options, - but do not initialize args_info, check for required options. - NOTICE: we must NOT skip the 0 assignment to initialize, - since its default value is 1 and override defaults to 0 - while check_required is already set to its default value, 1 - */ + //override command line options, + //but do not initialize args_info, check for required options. + //NOTICE: we must NOT skip the 0 assignment to initialize, + //since its default value is 1 and override defaults to 0 + //while check_required is already set to its default value, 1 params->initialize = 1; params->override = 0; - /* call the config file parser */ + //call the config file parser if (cmd_parser_config_file (args_info.conffile_arg, &args_info, params) != 0) { result = 1; @@ -64,7 +62,7 @@ int main(int argc, char **argv) } stop: - /* deallocate structures */ + //deallocate structures cmd_parser_free(&args_info); free(params);