summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-09-25 15:09:52 +0200
committerYves Orton <demerphq@gmail.com>2023-02-20 11:34:22 +0800
commit21938ae5a278f0b48443561333c47714921e7566 (patch)
tree62b372c8d2ea947696beeafc9b88be11ad909042 /perl.h
parent8a8491416c79dc8f491c402c013844437c0643eb (diff)
downloadperl-21938ae5a278f0b48443561333c47714921e7566.tar.gz
perl.h, pp_ctl.c - switch to standard way of terminating compilation
I did not fully understand the use of yyquit() when I implemented the SYNTAX_ERROR related stuff. It is not needed, and switching to this makes eval compile error messages more consistent.
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl.h b/perl.h
index 1247788682..4ad758265a 100644
--- a/perl.h
+++ b/perl.h
@@ -9094,9 +9094,7 @@ END_EXTERN_C
#define PERL_STOP_PARSING_AFTER_N_ERRORS 10
-#define PERL_PARSE_IS_SYNTAX_ERROR_FLAG 128
-#define PERL_PARSE_IS_SYNTAX_ERROR(f) ((f) & PERL_PARSE_IS_SYNTAX_ERROR_FLAG)
-#define PERL_PARSE_ERROR_COUNT(f) ((f) & (PERL_PARSE_IS_SYNTAX_ERROR_FLAG-1))
+#define PERL_PARSE_ERROR_COUNT(f) (f)
/*