The R Project SVN R

Rev

Rev 50745 | Rev 51265 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50745 Rev 51245
Line 385... Line 385...
385
    UNPROTECT(5);
385
    UNPROTECT(5);
386
    cptr->callflag = CTXT_RETURN;
386
    cptr->callflag = CTXT_RETURN;
387
    return 0;
387
    return 0;
388
}
388
}
389
 
389
 
390
/* Note: "do_usemethod" is not the only entry point to */
390
/* Note: "do_usemethod" is not the only entry point to
391
/* "usemethod". Things like [ and [[ call usemethod directly, */
391
   "usemethod". Things like [ and [[ call usemethod directly,
392
/* hence do_usemethod should just be an interface to usemethod. */
392
   hence do_usemethod should just be an interface to usemethod. 
-
 
393
*/
393
 
394
 
-
 
395
/* This is a primitive SPECIALSXP */
394
SEXP attribute_hidden do_usemethod(SEXP call, SEXP op, SEXP args, SEXP env)
396
SEXP attribute_hidden do_usemethod(SEXP call, SEXP op, SEXP args, SEXP env)
395
{
397
{
396
    SEXP ans, generic = R_NilValue /* -Wall */, obj, val;
398
    SEXP ans, generic = R_NilValue /* -Wall */, obj, val;
397
    SEXP callenv, defenv;
399
    SEXP callenv, defenv;
398
    int nargs;
400
    int nargs;
Line 524... Line 526...
524
/* the second the object and any remaining are matched with the */
526
/* the second the object and any remaining are matched with the */
525
/* formals of the chosen method. */
527
/* formals of the chosen method. */
526
 
528
 
527
#define ARGUSED(x) LEVELS(x)
529
#define ARGUSED(x) LEVELS(x)
528
 
530
 
-
 
531
/* This is a special .Internal */
529
SEXP attribute_hidden do_nextmethod(SEXP call, SEXP op, SEXP args, SEXP env)
532
SEXP attribute_hidden do_nextmethod(SEXP call, SEXP op, SEXP args, SEXP env)
530
{
533
{
531
    char buf[512], b[512], bb[512], tbuf[10];
534
    char buf[512], b[512], bb[512], tbuf[10];
532
    const char *sb, *sg, *sk;
535
    const char *sb, *sg, *sk;
533
    SEXP ans, s, t, klass, method, matchedarg, generic, nextfun;
536
    SEXP ans, s, t, klass, method, matchedarg, generic, nextfun;