freeride-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Re[2]: [FR-devel] Integrating the Source Browser


From: Curt Hibbs
Subject: RE: Re[2]: [FR-devel] Integrating the Source Browser
Date: Wed, 25 Sep 2002 22:53:27 -0700

I just searched the ripper source for this and got:

Searching for "rb_thread_pass"...
R:\ripper055\ripper.y (2307): extern VALUE rb_thread_pass _((void));
R:\ripper055\ripper.y (2327):         rb_thread_pass();
2 occurence(s) found.

Here is the single use in context:

static VALUE
ripper_parse(argc, argv, self)
    int argc;
    VALUE *argv;
    VALUE self;
{
    struct ruby_parser *parser;
    struct rip_arg arg;

    Data_Get_Struct(self, struct ruby_parser, parser);

    while (parser->parsing) {
        rb_thread_pass();
    }
    parser->parsing = 1;
    arg.parser = parser;
    arg.argc = argc;
    arg.argv = argv;
    return rb_ensure(rip_do_parse, (VALUE)(&arg),
                     rip_ensure, (VALUE)parser);
}

It looks like its just trying to give time slices to other threads while it
is parsing. Is there some other function we could call instead?

We could just comment out the call because, for this release, we were going
to just invoke the parser manually anyway (so the user would expect some
sort of delay after pressing a "refresh" button).

Curt

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden Behalf Of Curt
> Hibbs
> Sent: Wednesday, September 25, 2002 10:47 PM
> To: address@hidden
> Subject: RE: Re[2]: [FR-devel] Integrating the Source Browser
>
>
> I went all the way back to the source for Ruby 1.4.6 and got identical
> results searching for "rb_thread_pass". So, nothing seems to have changed
> with respect to this function.
>
> How are ruby functions exported?
>
> Curt
>
> > -----Original Message-----
> > From: address@hidden
> > [mailto:address@hidden Behalf Of Curt
> > Hibbs
> > Sent: Wednesday, September 25, 2002 10:32 PM
> > To: address@hidden
> > Subject: RE: Re[2]: [FR-devel] Integrating the Source Browser
> >
> >
> > I just did a search of the ruby source code (cvs snapshot from dated
> > 2002-09-05) with the following results:
> >
> >    Searching for "rb_thread_pass"...
> >    R:\rubysrc\eval.c (8372): rb_thread_pass()
> >    R:\rubysrc\eval.c (9276):     rb_define_singleton_method(rb_cThread,
> > "pass", rb_thread_pass, 0);
> >
> > The fact that this function only appears in a C source file and
> not in any
> > header file probably means it is not being exported, which would
> > explain the
> > link error.
> >
> > I'll go get the 1.6 source and search it to see if there has been any
> > change.
> >
> > Curt
> >
> > > -----Original Message-----
> > > From: address@hidden
> > > [mailto:address@hidden
> Behalf Of Rich
> > > Kilmer
> > > Sent: Wednesday, September 25, 2002 10:15 PM
> > > To: address@hidden
> > > Subject: RE: Re[2]: [FR-devel] Integrating the Source Browser
> > >
> > >
> > > Of course the thing that sucks about this is that without Ripper we
> > > cannot use the source browser...if only we had a different way of
> > > parsing Ruby source...
> > >
> > > -rich
> > >
> > > > -----Original Message-----
> > > > From: address@hidden
> > > > [mailto:address@hidden On
> > > > Behalf Of Joseph McDonald
> > > > Sent: Thursday, September 26, 2002 1:08 AM
> > > > To: Rich Kilmer
> > > > Cc: address@hidden
> > > > Subject: Re[2]: [FR-devel] Integrating the Source Browser
> > > >
> > > >
> > > >
> > > > Yes, I get the same error:
> > > >
> > > > unresolved external symbol _rb_thread_pass
> > > >
> > > > RK> (back in 1.6) is out of sync with where Matz is with
> > > > parse.y in the
> > > > RK> CVS head.  So, unless others have thoughts...I am stuck.
> > > >
> > > > regards,
> > > > -joe
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Freeride-devel mailing list address@hidden
> > > > http://mail.freesoftware.fsf.org/mailman/listinfo/freeride-devel
> > > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Freeride-devel mailing list
> > > address@hidden
> > > http://mail.freesoftware.fsf.org/mailman/listinfo/freeride-devel
> > >
> >
> >
> >
> > _______________________________________________
> > Freeride-devel mailing list
> > address@hidden
> > http://mail.freesoftware.fsf.org/mailman/listinfo/freeride-devel
> >
>
>
>
> _______________________________________________
> Freeride-devel mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/freeride-devel
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]