summaryrefslogtreecommitdiff
path: root/perly.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-05-02 13:34:13 +0200
committerNicholas Clark <nick@ccl4.org>2013-05-06 09:36:45 +0200
commit9c221ee4de41f3d9f157be3eb25993315147c7ab (patch)
tree961240342ad807e01e7d463207e355cf6be7cdbd /perly.h
parentd358b6cc0072c98e9f7a7f0eba0e719792701e93 (diff)
downloadperl-9c221ee4de41f3d9f157be3eb25993315147c7ab.tar.gz
Improve the logic in regen_perly.pl for manually generating token macros.
Without this fixup the build breaks on Win32. Previously it was enabled using a second regular expression to parse the bison version string. This effectively duplicates the first regular expression that parses the bison version string to determine if the version of bison found can be used. The second regular expression could get missed when changing the first, as happened with commit f5cf236ddbe8e24e. So refactor the code to extract the bison version once, and then use this later as a simple numeric comparison. With this change, we can actually use bison 2.7 to regenerate perly.*
Diffstat (limited to 'perly.h')
-rw-r--r--perly.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.h b/perly.h
index af54a51564..6f1d6b95db 100644
--- a/perly.h
+++ b/perly.h
@@ -287,5 +287,5 @@ int yyparse ();
/* Generated from:
* 28c2c7738eefc00762e227af0363c729186c992e9127e0c935684cccbf3a3b4f perly.y
- * 112a738a076e5c6a33dc63b7b99e09240ef32ab644bd350d4b78f83bc3f96f1d regen_perly.pl
+ * 5c9d2a0262457fe9b70073fc8ad6c188f812f38ad57712b7e2f53daa01b297cc regen_perly.pl
* ex: set ro: */