bug no. 3317928
This commit is contained in:
parent
1ed35b8edb
commit
b8e7dd2af0
|
|
@ -8,6 +8,7 @@
|
|||
/xspice/icm/analog/file_source/ifspec.ifs:
|
||||
code model with input from file added (T. Sailer)
|
||||
example/xspice/fstest.sp, sine.m: test of 'filesource'
|
||||
* inpcom.c: bug no. 3317928, patched by Robert
|
||||
|
||||
2011-06-23 Robert Larice
|
||||
* src/frontend/options.c ,
|
||||
|
|
|
|||
|
|
@ -2500,7 +2500,7 @@ inp_get_func_from_line( char *line )
|
|||
ptr = end;
|
||||
while ( !isspace( *end ) && *end != ',' && *end != ')' ) end++;
|
||||
if(end > ptr)
|
||||
func_params[num_functions-1][num_params++] = strndup(ptr, end-ptr);
|
||||
func_params[num_functions-1][num_params++] = copy_substring(ptr, end);
|
||||
}
|
||||
num_parameters[num_functions-1] = num_params;
|
||||
|
||||
|
|
@ -2696,7 +2696,7 @@ if ( *str_ptr == ')' ) *str_ptr = ' ';
|
|||
break;
|
||||
}
|
||||
params[num_params++] =
|
||||
inp_expand_macro_in_str(strndup(beg_parameter, curr_ptr - beg_parameter));
|
||||
inp_expand_macro_in_str(copy_substring(beg_parameter, curr_ptr));
|
||||
}
|
||||
|
||||
if ( num_parameters[i] != num_params ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue