The R Project SVN R

Rev

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

Rev 90280 Rev 90283
Line 3021... Line 3021...
3021
 
3021
 
3022
SEXP R_makePartialMatchWarningCondition(SEXP call, SEXP argument, SEXP formal)
3022
SEXP R_makePartialMatchWarningCondition(SEXP call, SEXP argument, SEXP formal)
3023
{
3023
{
3024
    SEXP cond =
3024
    SEXP cond =
3025
	R_makeWarningCondition(call, "partialMatchWarning", NULL, 2,
3025
	R_makeWarningCondition(call, "partialMatchWarning", NULL, 2,
3026
			       _("partial argument match of '%s' to '%s'"),
3026
			       _("partial match of '%s' to '%s'"),
3027
			       CHAR(PRINTNAME(argument)),//EncodeChar??
3027
			       CHAR(PRINTNAME(argument)),//EncodeChar??
3028
			       CHAR(PRINTNAME(formal)));//EncodeChar??
3028
			       CHAR(PRINTNAME(formal)));//EncodeChar??
3029
    PROTECT(cond);
3029
    PROTECT(cond);
3030
    R_setConditionField(cond, 2, "argument", argument);
3030
    R_setConditionField(cond, 2, "argument", argument);
3031
    R_setConditionField(cond, 3, "formal", formal);
3031
    R_setConditionField(cond, 3, "formal", formal);
3032
    // ideally we would want the function/object in a field also
3032
    // ideally we would want the function/object in a field also
3033
    UNPROTECT(1); /* cond */
3033
    UNPROTECT(1); /* cond */
3034
    return cond;
3034
    return cond;
3035
}
3035
}
3036
 
3036
 
-
 
3037
SEXP R_makePartialArgumentMatchWarningCondition(SEXP call, SEXP argument, SEXP formal)
-
 
3038
{
-
 
3039
    SEXP cond =
-
 
3040
	R_makeWarningCondition(call, "partialMatchWarning", NULL, 2,
-
 
3041
			       _("partial argument match of '%s' to '%s'"),
-
 
3042
			       CHAR(PRINTNAME(argument)),//EncodeChar??
-
 
3043
			       CHAR(PRINTNAME(formal)));//EncodeChar??
-
 
3044
    PROTECT(cond);
-
 
3045
    R_setConditionField(cond, 2, "argument", argument);
-
 
3046
    R_setConditionField(cond, 3, "formal", formal);
-
 
3047
    // ideally we would want the function/object in a field also
-
 
3048
    UNPROTECT(1); /* cond */
-
 
3049
    return cond;
-
 
3050
}
3037
 
3051
 
3038
#define PROT_SO_MSG _("protect(): protection stack overflow")
3052
#define PROT_SO_MSG _("protect(): protection stack overflow")
3039
#define EXPR_SO_MSG _("evaluation nested too deeply: infinite recursion / options(expressions=)?")
3053
#define EXPR_SO_MSG _("evaluation nested too deeply: infinite recursion / options(expressions=)?")
3040
#define NODE_SO_MSG _("node stack overflow")
3054
#define NODE_SO_MSG _("node stack overflow")
3041
 
3055