251 head = Args = (
char **)
my_malloc(
sizeof(
char *) * (argc + 1));
252 memcpy(Args, argv, (
sizeof(
char *) * argc));
259 if (strncmp(
"--", *Args, 2) == 0) {
262 }
else if (strncmp(
"-", *Args, 1) == 0) {
265 }
else if (NULL == Options->ArchFile) {
267 vpr_printf(TIO_MESSAGE_INFO,
"Architecture file: %s\n", Options->ArchFile);
269 }
else if (NULL == Options->CircuitName) {
272 offset = strlen(Options->CircuitName) - 5;
273 if (offset > 0 && !strcmp(Options->CircuitName + offset,
".blif")) {
274 Options->CircuitName[offset] =
'\0';
276 vpr_printf(TIO_MESSAGE_INFO,
"Circuit name: %s.blif\n", Options->CircuitName);
287 char **tmp_argv = NULL;
292 ReadOptions(tmp_argc, tmp_argv, &SettingsFileOptions);
int Count[OT_BASE_UNKNOWN]
static void Error(INP const char *Token)
static void MergeOptions(INOUTP t_options *dest, INP t_options *src, int id)
void ReadOptions(INP int argc, INP char **argv, OUTP t_options *Options)
static void * my_malloc(int ibytes)
static char ** ProcessOption(INP char **Args, INOUTP t_options *Options)
int read_settings_file(char *file_name, char ***outv)
char * my_strdup(const char *str)