Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Compile error if DYNAMIC_NAME_CLASH_OK not set
- X-seq: zsh-workers 23682
- From: Peter Stephenson <pws@xxxxxxx>
- To: "zsh workers" <zsh-workers@xxxxxxxxxx>
- Subject: Re: Compile error if DYNAMIC_NAME_CLASH_OK not set
- Date: Tue, 17 Jul 2007 07:54:01 +0100
- In-reply-to: <20a807210707160545v2c137db4h3bdfd653d9ae908a@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20a807210707160545v2c137db4h3bdfd653d9ae908a@xxxxxxxxxxxxxx>
"Vin Shelton" wrote:
> Peter - my guess is that your
> module autoloading patch didn't take the '#undef
> DYNAMIC_NAME_CLASH_OK' case into account.
Yes, I missed that when turning modules into hash elements.
Index: Src/module.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/module.c,v
retrieving revision 1.34
diff -u -r1.34 module.c
--- Src/module.c 6 Jul 2007 21:52:39 -0000 1.34
+++ Src/module.c 17 Jul 2007 04:31:35 -0000
@@ -1744,12 +1744,12 @@
#ifdef DYNAMIC_NAME_CLASH_OK
return (Module_generic_func) dlsym(m->u.handle, name);
#else /* !DYNAMIC_NAME_CLASH_OK */
- VARARR(char, buf, strlen(name) + strlen(m->nam)*2 + 1);
+ VARARR(char, buf, strlen(name) + strlen(m->node.nam)*2 + 1);
char const *p;
char *q;
strcpy(buf, name);
q = strchr(buf, 0);
- for(p = m->nam; *p; p++) {
+ for(p = m->node.nam; *p; p++) {
if(*p == '/') {
*q++ = 'Q';
*q++ = 's';
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview
Messages sorted by:
Reverse Date,
Date,
Thread,
Author