URL
https://opencores.org/ocsvn/adv_debug_sys/adv_debug_sys/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 55 |
Rev 57 |
Line 341... |
Line 341... |
target_dev_pos = atoi(optarg);
|
target_dev_pos = atoi(optarg);
|
break;
|
break;
|
case 'l':
|
case 'l':
|
get_ir_opts(optarg, &idx, &val); // parse the option
|
get_ir_opts(optarg, &idx, &val); // parse the option
|
if(num_ir_sets >= (IR_START_SETS<<reallocs)) {
|
if(num_ir_sets >= (IR_START_SETS<<reallocs)) {
|
cmd_line_ir_sizes = (irset *) realloc(cmd_line_ir_sizes, (IR_START_SETS<<reallocs)*sizeof(irset));
|
cmd_line_ir_sizes = (irset *) realloc(cmd_line_ir_sizes, (IR_START_SETS<<(++reallocs))*sizeof(irset));
|
if(cmd_line_ir_sizes == NULL) {
|
if(cmd_line_ir_sizes == NULL) {
|
printf("Error: out of memory while parsing command line. Aborting.\n");
|
printf("Error: out of memory while parsing command line. Aborting.\n");
|
exit(1);
|
exit(1);
|
}
|
}
|
}
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.