Browse Source

Add '\f' to characters to be replace by '+'

during the syntax check of an netlist input file.
pre-master-46
Holger Vogt 5 years ago
parent
commit
52b5e218c7
  1. 2
      src/frontend/inpcom.c

2
src/frontend/inpcom.c

@ -9037,7 +9037,7 @@ 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("=[]?()&%$\"!:,\f", *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);

Loading…
Cancel
Save