[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-changes
Subject:    [Perl/perl5] 6e13fe: switch_locale_context: Add aTHX
From:       Karl Williamson via perl5-changes <perl5-changes () perl ! org>
Date:       2023-08-23 2:27:24
Message-ID: Perl/perl5/push/refs/heads/blead/0f3f89-6e13fe () github ! com
[Download RAW message or body]

  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 6e13fe3b438e495550d0662d2d94f26a3727c319
      https://github.com/Perl/perl5/commit/6e13fe3b438e495550d0662d2d94f26a3727c319
  Author: Karl Williamson <khw@cpan.org>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M dist/threads/lib/threads.pm
    M dist/threads/threads.xs
    M embed.fnc
    M locale.c
    M perl.h
    M proto.h
    M util.c
    M win32/win32thread.c

  Log Message:
  -----------
  switch_locale_context: Add aTHX

This fixes GH #21040

Instead of a dTHX, this passes aTHX automatically, and skips calling
this function if there is no valid context.

It moves that decision into the macro itself, avoiding some #ifdef
directives.

And it adds explanation


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic