Port better to C++ platforms
commit6373b90fc8f9ab2bfa19a107d44cfad3404faf20
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Oct 2019 18:58:10 +0000 (6 11:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Oct 2019 18:59:16 +0000 (6 11:59 -0700)
treecfbfcd4214d17bf0f8ae9142e715761e071d7436
parentbeceb2fa9382fd44816cae382dd12ffc6a210d5e
Port better to C++ platforms

* data/skeletons/yacc.c (YYPTRDIFF_T, YYPTRDIFF_MAXIMUM):
Default to long, not int.
(yy_lac_stack_realloc, yy_lac, yytnamerr, yyparse):
Avoid casts to YYPTRDIFF_T that were masking the problem.
TODO
data/skeletons/yacc.c