arg_table[hash] = arg;
return 0;
}
-
+
/* Called by sim_open to parse the arguments. */
SIM_RC
}
}
}
-
+
/* Terminate the short and long option lists. */
*p = 0;
lp->name = NULL;
}
while (OPTION_VALID_P (o) && o->doc == NULL);
}
-
+
/* list any long options (aliases) for the current OPT */
o = opt;
do
/* something to do? */
if (cmd == NULL)
return SIM_RC_OK; /* FIXME - perhaps help would be better */
-
+
if (cmd [0] == '-')
{
/* user specified -<opt> ... form? */
freeargv (argv);
}
-
+
/* didn't find anything that remotly matched */
return SIM_RC_FAIL;
}