Hi Alex, On 04/01/2012 10:34 PM, Alex Prutkov wrote: > * According to BDSH argument passing mechanism. For now ---> \# func "a > b c d" e > will leave us with 5 (per letter) arguments in argv, and not 2. Is it > desired BDSH behavior, > or maybe its a wanted feature? For now, this is a cause for 'printf' > not to deal with space-limited > format strings.
I guess, this is a simplification because what we have been doing with bdsh so far did not require spaces in arguments. > * I've tried not to reinvent the wheel and ride on currently available > 'printf' from lib, but failed to > find an easy way to convert from argv to va_list. I doubt that it's > possible without voodoo dances > around stack, or possible at all. If I'm missing something here - > please let me know. Have you tried va_start()? We don't reinvent the wheel in this area either and simply redefine the __builtin_va_* compiler intrinsics, including the standard va_start(). > * Some technical trouble - I'm rapidly failing to pull > from bzr://bzr.helenos.org/mainline/ <http://bzr.helenos.org/mainline/> > (other repos are fine). Thus, bzr send > is not working for me. I've created a branch > at lp:~prutkov-alex/helenos/bdsh-prints. Code can be pulled from there. > Sorry for possible inconvenience. Can you send us the complete command you are trying to run and also any error message? I can pull from mainline without any problem. Are there any extra non-mainline changesets in the branch where you want to pull from mainline? The send command also has the -o switch to write the merge directive into a file. Cheers, Jakub _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/cgi-bin/listinfo/helenos-devel
