From: Michal Sojka Date: Wed, 31 Jul 2013 08:15:45 +0000 (+0200) Subject: Convert command names to lower case - easier to type X-Git-Url: http://rtime.felk.cvut.cz/gitweb/sysless.git/commitdiff_plain/310f36addad059e8eb44e4b8b51d135248e25a48 Convert command names to lower case - easier to type --- diff --git a/libs4c/cmdproc/cmdproc_test.c b/libs4c/cmdproc/cmdproc_test.c index 3c63ab1..083cf26 100644 --- a/libs4c/cmdproc/cmdproc_test.c +++ b/libs4c/cmdproc/cmdproc_test.c @@ -55,78 +55,78 @@ cmd_des_t const **cmd_list; cmd_des_t const cmd_des_help={ 0, 0, - "HELP","prints help for commands", + "help","prints help for commands", cmd_do_help,{(char*)&cmd_list}}; int val; cmd_des_t const cmd_des_val={ 0, CDESM_OPCHR|CDESM_RW, - "VAL","use ':' or '?' to store/read value of an integer variable", + "val","use ':' or '?' to store/read value of an integer variable", cmd_do_rw_int, {(char*)&val}}; cmd_des_t const cmd_des_valro={ 0, CDESM_OPCHR|CDESM_RD, - "VALRO","read only access to an integer variable", + "valro","read only access to an integer variable", cmd_do_rw_int, {(char*)&val}}; cmd_des_t const cmd_des_valwo={ 0, CDESM_OPCHR|CDESM_WR, - "VALWO","write only access to an integer variable", + "valwo","write only access to an integer variable", cmd_do_rw_int, {(char*)&val}}; cmd_des_t const cmd_des_opchar_test={ 0, CDESM_OPCHR|CDESM_RW, - "OPCHAR","opchar test (use ':' or '?' as suffix)", + "opchar","opchar test (use ':' or '?' as suffix)", cmd_do_testopchar}; cmd_des_t const cmd_des_opchar_testro={ 0, CDESM_OPCHR|CDESM_RD, - "OPCHARRO","opchar test (only '?' is allowed)", + "opcharro","opchar test (only '?' is allowed)", cmd_do_testopchar}; cmd_des_t const cmd_des_test={ 0, 0, - "TEST","the simplest command", + "test","the simplest command", cmd_do_test}; cmd_des_t const cmd_des_testio={ 0, 0, - "TESTIO","test of cmd_io inside functions (universal way to print results)", + "testio","test of cmd_io inside functions (universal way to print results)", cmd_do_testcmdio}; cmd_des_t const cmd_des_param={ 0, 0, - "PARAM","test of parameters", + "param","test of parameters", cmd_do_testparam}; cmd_des_t const cmd_des_prefix={ 0, 0, - "PREFIX*","suffix of the command is supplied as a parametr", + "prefix*","suffix of the command is supplied as a parametr", cmd_do_testparam}; cmd_des_t const cmd_des_num={ 0, 0, - "NUM##","suffix of the command (two digits) is supplied as a parametr", + "num##","suffix of the command (two digits) is supplied as a parametr", cmd_do_testparam}; cmd_des_t const cmd_des_char={ 0, 0, - "CHAR?","suffix of the command (one character) is supplied as a parametr", + "char?","suffix of the command (one character) is supplied as a parametr", cmd_do_testparam}; cmd_des_t const cmd_des_charmid={ 0, 0, - "CHAR?MID","middle character of the command is supplied as a parametr", + "char?mid","middle character of the command is supplied as a parametr", cmd_do_testparam}; cmd_des_t const cmd_des_hiddedn={ 0, 0, - "HIDDEN","should not be available", + "hidden","should not be available", cmd_do_test}; cmd_des_t const cmd_des_error={ 0, 0, - "TESTERROR","should produce an error", + "testerror","should produce an error", cmd_do_testerror}; /* Command lists */