The R Project SVN R

Rev

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

Rev 90288 Rev 90291
Line 3020... Line 3020...
3020
				      nextra, format, ap);
3020
				      nextra, format, ap);
3021
    va_end(ap);
3021
    va_end(ap);
3022
    return cond;
3022
    return cond;
3023
}
3023
}
3024
 
3024
 
3025
SEXP R_makePartialMatchWarningCondition(SEXP call, SEXP argument, SEXP formal)
3025
SEXP R_makePartialMatchWarningCondition(SEXP call, SEXP input, SEXP target)
3026
{
3026
{
3027
    SEXP cond =
3027
    SEXP cond =
3028
	R_makeWarningCondition(call, "partialMatchWarning", NULL, 2,
3028
	R_makeWarningCondition(call, "partialMatchWarning", NULL, 2,
3029
			       _("partial match of '%s' to '%s'"),
3029
			       _("partial match of '%s' to '%s'"),
3030
			       CHAR(PRINTNAME(argument)),//EncodeChar??
3030
			       CHAR(PRINTNAME(input)),//EncodeChar??
3031
			       CHAR(PRINTNAME(formal)));//EncodeChar??
3031
			       CHAR(PRINTNAME(target)));//EncodeChar??
3032
    PROTECT(cond);
3032
    PROTECT(cond);
3033
    R_setConditionField(cond, 2, "argument", argument);
3033
    R_setConditionField(cond, 2, "input", input);
3034
    R_setConditionField(cond, 3, "formal", formal);
3034
    R_setConditionField(cond, 3, "target", target);
3035
    // ideally we would want the function/object in a field also
3035
    // ideally we would want the function/object in a field also
3036
    UNPROTECT(1); /* cond */
3036
    UNPROTECT(1); /* cond */
3037
    return cond;
3037
    return cond;
3038
}
3038
}
3039
 
3039