Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 0e68f3a6a2aaba98a9ee20a71896b782785e3426
      
https://github.com/Perl/perl5/commit/0e68f3a6a2aaba98a9ee20a71896b782785e3426
  Author: Karl Williamson <k...@cpan.org>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  perl.h: Remove obsolete comment

This comment is not true; it may have been true once.  assert.h
is always included, and assert() is always supposed to be defined, since
at least C89.  But the code acts like it is possible to not be defined;
it's not a big deal to retain that check, so I'm leaving it in.


  Commit: 9be058cbb8dbe509abc9444e78c731dd2db2b906
      
https://github.com/Perl/perl5/commit/9be058cbb8dbe509abc9444e78c731dd2db2b906
  Author: Karl Williamson <k...@cpan.org>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  Cleanup Perl_assert definition

PERL_DEB2 is too obscure for me.  Simply use #ifdef DEBUGGING

For reference: PERL_DEB2 is defined as:

    #ifdef DEBUGGING
    #  define PERL_DEB2(a,b)               a
    #else /* ! DEBUGGING below */
    #  define PERL_DEB2(a,b)               b
    #endif /* DEBUGGING */


  Commit: 4cad1bd969f79e5d4b1f4ff1d1310d69485d9d89
      
https://github.com/Perl/perl5/commit/4cad1bd969f79e5d4b1f4ff1d1310d69485d9d89
  Author: Karl Williamson <k...@cpan.org>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  Reformat Perl_assert() definition

This changes the white space in preparation for the next commit


  Commit: 7689554049a628ca4400570801c6cd9b66d6d1a6
      
https://github.com/Perl/perl5/commit/7689554049a628ca4400570801c6cd9b66d6d1a6
  Author: Karl Williamson <k...@cpan.org>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  Fix Perl_assert() definition

Source code line numbers now have a typedef and format so that they work
on a variety of platforms.


  Commit: b6e4b09c7f8d419a431db752eed5f2a72dce3762
      
https://github.com/Perl/perl5/commit/b6e4b09c7f8d419a431db752eed5f2a72dce3762
  Author: Karl Williamson <k...@cpan.org>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  perl.h Move macro definition to earlier

This makes the next commits smaller.


  Commit: d7b74a4bea4ccca237411c7159e623cb47910002
      
https://github.com/Perl/perl5/commit/d7b74a4bea4ccca237411c7159e623cb47910002
  Author: Karl Williamson <k...@cpan.org>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  perl.h: Combine two preprocessor blocks

They have the same conditional, and the next commit will change that
conditional and want it to apply to both.


  Commit: bd0316e6bbfded25189d54b5cee210cb06c93cd0
      
https://github.com/Perl/perl5/commit/bd0316e6bbfded25189d54b5cee210cb06c93cd0
  Author: Karl Williamson <k...@cpan.org>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  Perl_assert() expands to noop if Coverity, etc,

Some assertions have caused Coverity to complain in the past, or
overflowed for some platforms, so the definition of __ASSERT_ in handy.h
expands to a no-op if under Coverity or the system doesn't have a normal
sized macro buffer.  Bring that definition here to also be the same for
Perl_assert().


  Commit: ea42cd36b1195b0f07a5c6d3acb1d49fd607b12c
      
https://github.com/Perl/perl5/commit/ea42cd36b1195b0f07a5c6d3acb1d49fd607b12c
  Author: Karl Williamson <k...@cpan.org>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M handy.h
    M perl.h

  Log Message:
  -----------
  Move __ASSERT_() definition adjacent to assert_()

And fix up the documentation, adding a caution that their use can easily
lead to differing behavior in DEBUGGING vs non-DEBUGGING builds.

These two macros are synonymous.  This documents assert_() for the first
time and clarifies their usage.

Thanks to Tony Cook for clarifying this for me.


  Commit: a28595566ef682e8f7e0ba435657e39dd7db53f7
      
https://github.com/Perl/perl5/commit/a28595566ef682e8f7e0ba435657e39dd7db53f7
  Author: Karl Williamson <k...@cpan.org>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M handy.h
    M perl.h

  Log Message:
  -----------
  Document assert_(), combine with __ASSERT_; fixup Perl_assert()

The combined documentation now cautions about macro parameters being
evaluated more than once.

Perl_assert now works correctly on platforms where LINE is not an int.,
and expands to a no-op under Coverity, or on systems without adequate
macro buffer space.


Compare: https://github.com/Perl/perl5/compare/b1f152e440e8...a28595566ef6

To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to