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

Re: hzoli change: $foo:s//r/



On Aug 16,  5:20pm, Zoltan Hidvegi wrote:
} Subject: Re: hzoli change:  $foo:s//r/
}
} > Another very minor problem with Zoltan's substitution code.
} > 
} > If hsubr is non-NULL, and a "bad/no previous substitution" error 
} > occurs, hsubr is free()d. This may corrupt memory.
} 
} You are right here.  But there is an other problem: the code assumes in many
} places that extern variables are initialized to zero.

This is a safe assumption.  It's required that the compiler initialize
global variables to zero, at least as far back as K&R and probably farther.

-- 
Bart Schaefer                     Vice President, Technology, Z-Code Software
schaefer@xxxxxxxxxx                  Division of NCD Software Corporation
http://www.well.com/www/barts



Messages sorted by: Reverse Date, Date, Thread, Author