develooper Front page | perl.perl5.changes | Postings from February 2021

[Perl/perl5] 7430ef: Hide DECthreads TRY macro

"Craig A. Berry" via perl5-changes
February 16, 2021 00:25
[Perl/perl5] 7430ef: Hide DECthreads TRY macro
Message ID:
  Branch: refs/heads/blead
  Commit: 7430efdb45ffcaa46e8771fff83d0af95c8b2af8
  Author: Craig A. Berry <>
  Date:   2021-02-15 (Mon, 15 Feb 2021)

  Changed paths:

  Log Message:
  Hide DECthreads TRY macro

I guess it seemed like a good idea in 1989, but on VMS, the
pthread_exception.h header exposes TRY and some other simple
English words as macros.  Luckily there is a way to hide them
(defining _PTHREAD_EXC_INCL_CLEAN) and that's what this commit
does since Perl now also uses TRY without a prefix or other
guard to avoid collisions.

If anyone still needs what DECthreads TRY does, it was always just
an alias for PTHREAD_TRY_NP, which can be used directly.

If anyone is still using Tru64, it very likely needs an equivalent
patch since the headers and compiler and ancient threading
implementation share a common origin.

  Commit: 9a3a8c67174754571c38c0b2ed464e20aa1772de
  Author: Craig A. Berry <>
  Date:   2021-02-15 (Mon, 15 Feb 2021)

  Changed paths:
    M regcomp.c

  Log Message:
  Hide Perl_regcurly in the re extension

Otherwise a strict linker will fail to build the extenstion due
to a multiply defined symbol.  We used to do this but it was
removed in e513125ac7bdea1f for unknown reasons.  The same
commit also defined some macros inside the function that are used
but inside and outside it, so put them where they can be seen
regardless of whether we are defining the function itself.

Compare: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About