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

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

From:
"Craig A. Berry" via perl5-changes
Date:
February 16, 2021 00:25
Subject:
[Perl/perl5] 7430ef: Hide DECthreads TRY macro
Message ID:
Perl/perl5/push/refs/heads/blead/397e6c-9a3a8c@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 7430efdb45ffcaa46e8771fff83d0af95c8b2af8
      https://github.com/Perl/perl5/commit/7430efdb45ffcaa46e8771fff83d0af95c8b2af8
  Author: Craig A. Berry <craigberry@mac.com>
  Date:   2021-02-15 (Mon, 15 Feb 2021)

  Changed paths:
    M configure.com

  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
      https://github.com/Perl/perl5/commit/9a3a8c67174754571c38c0b2ed464e20aa1772de
  Author: Craig A. Berry <craigberry@mac.com>
  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: https://github.com/Perl/perl5/compare/397e6c111f3e...9a3a8c671747



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