mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Fix grammar of macro name: ECCESSED -> ECCESSIVE
Fix the name of the macro variable introduced in 0872ea5330
from NODE_SPECIAL_EXCESSED_COMMA to NODE_SPECIAL_EXCESSIVE_COMMA.
			
			
This commit is contained in:
		
							parent
							
								
									1624d77f3e
								
							
						
					
					
						commit
						f258137083
					
				
					 4 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -1632,7 +1632,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *const optargs, const NODE *cons
 | 
			
		|||
	debugs("  - argc: %d\n", body->param.lead_num);
 | 
			
		||||
 | 
			
		||||
	rest_id = args->rest_arg;
 | 
			
		||||
        if (rest_id == NODE_SPECIAL_EXCESSED_COMMA) {
 | 
			
		||||
        if (rest_id == NODE_SPECIAL_EXCESSIVE_COMMA) {
 | 
			
		||||
	    last_comma = 1;
 | 
			
		||||
	    rest_id = 0;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								node.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								node.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1011,7 +1011,7 @@ dump_node(VALUE buf, VALUE indent, int comment, const NODE * node)
 | 
			
		|||
	F_NODE(nd_ainfo->post_init, "initialization of post-arguments");
 | 
			
		||||
	F_ID(nd_ainfo->first_post_arg, "first post argument");
 | 
			
		||||
        F_CUSTOM1(nd_ainfo->rest_arg, "rest argument") {
 | 
			
		||||
            if (node->nd_ainfo->rest_arg == NODE_SPECIAL_EXCESSED_COMMA) {
 | 
			
		||||
            if (node->nd_ainfo->rest_arg == NODE_SPECIAL_EXCESSIVE_COMMA) {
 | 
			
		||||
                A("1 (excessed comma)");
 | 
			
		||||
            }
 | 
			
		||||
            else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								node.h
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								node.h
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -383,7 +383,7 @@ typedef struct RNode {
 | 
			
		|||
#define NODE_REQUIRED_KEYWORD_P(node) ((node)->nd_value == NODE_SPECIAL_REQUIRED_KEYWORD)
 | 
			
		||||
#define NODE_SPECIAL_NO_NAME_REST     ((NODE *)-1)
 | 
			
		||||
#define NODE_NAMED_REST_P(node) ((node) != NODE_SPECIAL_NO_NAME_REST)
 | 
			
		||||
#define NODE_SPECIAL_EXCESSED_COMMA   ((ID)1)
 | 
			
		||||
#define NODE_SPECIAL_EXCESSIVE_COMMA   ((ID)1)
 | 
			
		||||
 | 
			
		||||
VALUE rb_node_case_when_optimizable_literal(const NODE *const node);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										4
									
								
								parse.y
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								parse.y
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -3257,7 +3257,7 @@ block_param	: f_arg ',' f_block_optarg ',' f_rest_arg opt_block_args_tail
 | 
			
		|||
		    {
 | 
			
		||||
		    /*%%%*/
 | 
			
		||||
			/* magic number for rest_id in iseq_set_arguments() */
 | 
			
		||||
			$$ = new_args(p, $1, Qnone, NODE_SPECIAL_EXCESSED_COMMA, Qnone, new_args_tail(p, Qnone, Qnone, Qnone, &@1), &@$);
 | 
			
		||||
			$$ = new_args(p, $1, Qnone, NODE_SPECIAL_EXCESSIVE_COMMA, Qnone, new_args_tail(p, Qnone, Qnone, Qnone, &@1), &@$);
 | 
			
		||||
		    /*% %*/
 | 
			
		||||
		    /*% ripper: new_args(p, $1, Qnone, excessed_comma!, Qnone, new_args_tail(p, Qnone, Qnone, Qnone, NULL), NULL) %*/
 | 
			
		||||
		    }
 | 
			
		||||
| 
						 | 
				
			
			@ -11130,7 +11130,7 @@ args_with_numbered(struct parser_params *p, NODE *args, int max_numparam)
 | 
			
		|||
    if (max_numparam > 0) {
 | 
			
		||||
	if (!args) args = new_args_tail(p, 0, 0, 0, 0);
 | 
			
		||||
	args->nd_ainfo->pre_args_num = max_numparam;
 | 
			
		||||
	args->nd_ainfo->rest_arg = NODE_SPECIAL_EXCESSED_COMMA;
 | 
			
		||||
	args->nd_ainfo->rest_arg = NODE_SPECIAL_EXCESSIVE_COMMA;
 | 
			
		||||
    }
 | 
			
		||||
    return args;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue