[Perl/perl5] 6e2f87: plan9: potentially reduce -Wall noise

[email protected] (Lukas Mai via perl5-changes)
Newsgroups perl.perl5.changes
Message-ID <Perl/perl5/push/refs/heads/blead/[email protected]>
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 6e2f875dfaec3d43a9f0acf2138eb9e54cc9275c
      https://github.com/Perl/perl5/commit/6e2f875dfaec3d43a9f0acf2138eb9e54cc9275c
  Author: Lukas Mai <[email protected]>
  Date:   2026-03-11 (Wed, 11 Mar 2026)

  Changed paths:
    M plan9/config.plan9
    M plan9/plan9ish.h

  Log Message:
  -----------
  plan9: potentially reduce -Wall noise

Some compilers warn about seeing `/*` in the middle of a comment.
Consistently use `/* #define ... / **/` for unset symbols and
consistently use `#define ... /**/` for set symbols.

Delete the `HOME` #define entirely because this code has been missing a
`*/` comment terminator ever since it was introduced in 1996, so it is
all just a single long comment:

    /* Plan 9 prefers getenv("home") to getenv("HOME")
    #define HOME home

     /* For use by POSIX.xs */

(I believe it was intended to modify the behavior of pp_chdir in
pp_sys.c, which uses a "HOME" string literal, but it would have only
worked on pre-ANSI C compilers anyway. Standard compilers don't expand
macros in strings.)

See #10059.



To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.