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

Re: More questions about zsh internals and documentation system



On Apr 22,  1:48am, Johann \Myrkraverk\ Oskarsson wrote:
} 
} Some C libraries are initialized with some_init( &argc, argv )
} function that remove the library specific flags from argv. Can a
} builtin behave in the same way, when given $@ ?

Look at the implementation of bin_zparseopts in Modules/utils.c.  Just
replace the global pparams array with the new array, being careful
about memory allocation.

} When documenting a function that takes many long parameters, how
} should I do that nicely?

A good example is the "compadd" command in Doc/Zsh/compwid.yo.  Use
the xitem() yodl macro.



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