|
|
@ -8502,14 +8502,14 @@ static void inp_check_syntax(struct card *deck) |
|
|
if (*cut_line == '*' || *cut_line == '\0') |
|
|
if (*cut_line == '*' || *cut_line == '\0') |
|
|
continue; |
|
|
continue; |
|
|
// check for unusable leading characters and change them to '*' |
|
|
// check for unusable leading characters and change them to '*' |
|
|
if (strchr("=[]?()&%$§\"!:,", *cut_line)) { |
|
|
|
|
|
|
|
|
if (strchr("=[]?()&%$\"!:,", *cut_line)) { |
|
|
if (ft_stricterror) { |
|
|
if (ft_stricterror) { |
|
|
fprintf(stderr, "Error: '%c' is not allowed as first character in line %s.\n", *cut_line, cut_line); |
|
|
fprintf(stderr, "Error: '%c' is not allowed as first character in line %s.\n", *cut_line, cut_line); |
|
|
controlled_exit(EXIT_BAD); |
|
|
controlled_exit(EXIT_BAD); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
|
if (!check_ch) { |
|
|
if (!check_ch) { |
|
|
fprintf(stderr, "Warning: Unusal leading characters like '%c' or others out of '= [] ? () & %$§\"!:,'\n", *cut_line); |
|
|
|
|
|
|
|
|
fprintf(stderr, "Warning: Unusal leading characters like '%c' or others out of '= [] ? () & %$\"!:,'\n", *cut_line); |
|
|
fprintf(stderr, " in netlist or included files, will be replaced with '*'\n"); |
|
|
fprintf(stderr, " in netlist or included files, will be replaced with '*'\n"); |
|
|
check_ch = 1; /* just one warning */ |
|
|
check_ch = 1; /* just one warning */ |
|
|
} |
|
|
} |
|
|
|