Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Compile error if DYNAMIC_NAME_CLASH_OK not set



"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