On Mon, Apr 2, 2012 at 12:06 AM, Jakub Jermar <[email protected]> wrote:
> 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(). Thanks for response. Yes, va_start() can be used to retrieve parameters from stack, but in order to put them there we need to convert each argv string to appropriate type. At this point it's not likely to avoid string parsing. After a short glance into Bash sources it seems like they are doing the same thing, i.e. parse format string and print it afterwards. Probably because of this reason. > > * 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. > I'd be very thankful, if someone could help with this issue. Bash session looks like: $ bzr send -o mergedir Using saved parent location "bzr://bzr.helenos.org/mainline/" to determine what changes to submit. 2kB 0kB/s / Then it hangs for a long time. Another try: $ bzr branch bzr://bzr.helenos.org/mainline bdsh 4kB 3kB/s / Fetching revisions:Inserting stream:Estimating.. 8 As before, hangs with no progress for 10 minutes. I've reinstalled bzr with dependencies from repositories, compiled several bzr versions from sources. No luck. Cheers, > Jakub > > _______________________________________________ > HelenOS-devel mailing list > [email protected] > http://lists.modry.cz/cgi-bin/listinfo/helenos-devel > -- *Best wishes,* *Alex*
_______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/cgi-bin/listinfo/helenos-devel
