zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Clinton Bunch <cdb_zsh@zentaur.org>,
	"zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: current git Fails to compile on Solaris 11 x86
Date: Wed, 20 Mar 2024 10:19:23 +0000 (GMT)	[thread overview]
Message-ID: <947945847.5869623.1710929963847@mail.virginmedia.com> (raw)
In-Reply-To: <1922525261.5866551.1710927037473@mail.virginmedia.com>

> On 20/03/2024 09:30 GMT Peter Stephenson <p.w.stephenson@ntlworld.com> wrote:
> > On 20/03/2024 04:41 GMT Clinton Bunch <cdb_zsh@zentaur.org> wrote:
> > ./configure --prefix=$HOME/local
> > Solaris 11/Developer Studio 12 
> > Src/Modules/hlgroup.c
> > 
> > 
> > cc -c -I. -I../../Src -I../../Src -I../../Src/Zle -I. -DHAVE_CONFIG_H 
> > -DMODULE -O -KPIC -o hlgroup..o hlgroup.c
> > "hlgroup.c", line 144: void function cannot return value
> > "hlgroup.c", line 158: void function cannot return value
> > cc: acomp failed for hlgroup.c
> 
> Is the function name getpmsgr perhaps already used by Solaris?

The Interweb thing isn't particularly forthcoming on the subject, but I
can see a STREAMS function getpmsg() - Receive next message from a
STREAMS file.  I wonder if this is a re-entrant version of that.

Let's just rename it and the others in that area.

pws

diff --git a/Src/Modules/hlgroup.c b/Src/Modules/hlgroup.c
index 6382f32..60f0254 100644
--- a/Src/Modules/hlgroup.c
+++ b/Src/Modules/hlgroup.c
@@ -128,35 +128,35 @@ scangroup(ScanFunc func, int flags, int sgr)
 }
 /**/
 static HashNode
-getpmesc(UNUSED(HashTable ht), const char *name)
+getpmzleesc(UNUSED(HashTable ht), const char *name)
 {
     return getgroup(name, 0);
 }
 
 /**/
 static void
-scanpmesc(UNUSED(HashTable ht), ScanFunc func, int flags)
+scanpmzleesc(UNUSED(HashTable ht), ScanFunc func, int flags)
 {
     return scangroup(func, flags, 0);
 }
 
 /**/
 static HashNode
-getpmsgr(UNUSED(HashTable ht), const char *name)
+getpmzlesgr(UNUSED(HashTable ht), const char *name)
 {
     return getgroup(name, 1);
 }
 
 /**/
 static void
-scanpmsgr(UNUSED(HashTable ht), ScanFunc func, int flags)
+scanpmzlesgr(UNUSED(HashTable ht), ScanFunc func, int flags)
 {
     return scangroup(func, flags, 1);
 }
 
 static struct paramdef partab[] = {
-    SPECIALPMDEF(".zle.esc", PM_READONLY_SPECIAL, 0, getpmesc, scanpmesc),
-    SPECIALPMDEF(".zle.sgr", PM_READONLY_SPECIAL, 0, getpmsgr, scanpmsgr)
+    SPECIALPMDEF(".zle.esc", PM_READONLY_SPECIAL, 0, getpmzleesc, scanpmzleesc),
+    SPECIALPMDEF(".zle.sgr", PM_READONLY_SPECIAL, 0, getpmzlesgr, scanpmzlesgr)
 };
 
 static struct features module_features = {


  reply	other threads:[~2024-03-20 10:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20  4:41 Clinton Bunch
2024-03-20  9:30 ` Peter Stephenson
2024-03-20 10:19   ` Peter Stephenson [this message]
2024-03-20 12:21     ` Clinton Bunch
2024-03-20 14:54       ` Bart Schaefer
2024-03-20 15:05         ` Clinton Bunch
2024-03-20 16:15           ` Peter Stephenson
2024-03-20 22:26             ` Oliver Kiddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=947945847.5869623.1710929963847@mail.virginmedia.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=cdb_zsh@zentaur.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).