inpcom.c, suppress warning on missing model for lines like

C n1 n2 c=10p
This commit is contained in:
h_vogt 2016-11-12 15:19:04 +01:00
parent 4a9bb398c8
commit 53555373dd
1 changed files with 3 additions and 2 deletions

View File

@ -1714,8 +1714,9 @@ get_adevice_model_name(char *line)
static int
is_a_modelname(const char *s)
{
/* first character of model name is character from alphabet */
if (isalpha_c(s[0]))
/* first character of model name is character from alphabet
* and second character is not '=', as in c=1e-12 */
if (isalpha_c(s[0]) && s[1] != '=')
return TRUE;
/* e.g. 1N4002, but do not accept floats (for example 1E2) */