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

Re: zsh 5.0.6 hanged in freejob from TRAPCHLD



On Wed, 01 Oct 2014 17:25:33 +0200
Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> Bart wrote:
> > This plus the possibility of interrupting the copy from the saved state
> > back to the globals is the need for queue_signals() inside lexrestore().
> 
> Eww. Wouldn't it perhaps be easier and better in the long run to replace
> this whole save/restore/globals concept with non-global structs and make
> all the lexer functions take a pointer to the relevant instance of the
> struct.

Better --- highly likely.

Easier --- only after you've persuaded someone else to do the work.
You'll soon find the paths you need to pass the structures through
proliferate somewhat hair-raisingly.  That may lead to useful
simplifications, though, so this isn't an argument against doing it.

pws



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