break;
case 's':
- (*argv).str.p = begin;
- (*argv).str.sz = end - begin;
+ (*argv).s.p = begin;
+ (*argv).s.sz = end - begin;
/* Remove the quotes from argument */
if (*begin == '"' && *(end - 1) == '"')
{
- (*argv).str.p += 1;
- (*argv).str.sz -= 2;
+ (*argv).s.p += 1;
+ (*argv).s.sz -= 2;
}
argv++;
break;
if (!input)
return false;
- args[0].str.p = cmdp->name;
+ args[0].s.p = cmdp->name;
if (!parseArgs(cmdp->arg_fmt, input, args + 1))
return false;
} str_parm;
/** union that contains parameters passed to and from commands */
-typedef union { long l; str_parm str; } parms;
+typedef union { long l; str_parm s; } parms;
/** pointer to commands */
typedef ResultCode (*CmdFuncPtr)(parms args_results[]);