mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	iseq.c: consistent rb_bug messages
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									e858f8655a
								
							
						
					
					
						commit
						0dd9f7cc5c
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										10
									
								
								iseq.c
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								iseq.c
									
										
									
									
									
								
							| 
						 | 
					@ -1800,7 +1800,7 @@ rb_insn_operand_intern(const rb_iseq_t *iseq,
 | 
				
			||||||
	break;
 | 
						break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      default:
 | 
					      default:
 | 
				
			||||||
	rb_bug("insn_operand_intern: unknown operand type: %c", type);
 | 
						rb_bug("unknown operand type: %c", type);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return ret;
 | 
					    return ret;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -1903,7 +1903,7 @@ catch_type(int type)
 | 
				
			||||||
      case CATCH_TYPE_NEXT:
 | 
					      case CATCH_TYPE_NEXT:
 | 
				
			||||||
	return "next";
 | 
						return "next";
 | 
				
			||||||
      default:
 | 
					      default:
 | 
				
			||||||
	rb_bug("unknown catch type (%d)", type);
 | 
						rb_bug("unknown catch type: %d", type);
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -2310,7 +2310,7 @@ ruby_node_name(int node)
 | 
				
			||||||
    switch (node) {
 | 
					    switch (node) {
 | 
				
			||||||
#include "node_name.inc"
 | 
					#include "node_name.inc"
 | 
				
			||||||
      default:
 | 
					      default:
 | 
				
			||||||
	rb_bug("unknown node (%d)", node);
 | 
						rb_bug("unknown node: %d", node);
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -2341,7 +2341,7 @@ exception_type2symbol(VALUE type)
 | 
				
			||||||
      case CATCH_TYPE_REDO:   CONST_ID(id, "redo");   break;
 | 
					      case CATCH_TYPE_REDO:   CONST_ID(id, "redo");   break;
 | 
				
			||||||
      case CATCH_TYPE_NEXT:   CONST_ID(id, "next");   break;
 | 
					      case CATCH_TYPE_NEXT:   CONST_ID(id, "next");   break;
 | 
				
			||||||
      default:
 | 
					      default:
 | 
				
			||||||
	rb_bug("exception_type2symbol: unknown type %d", (int)type);
 | 
						rb_bug("unknown exception type: %d", (int)type);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return ID2SYM(id);
 | 
					    return ID2SYM(id);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -2413,7 +2413,7 @@ iseq_data_to_ary(const rb_iseq_t *iseq)
 | 
				
			||||||
      case ISEQ_TYPE_EVAL:   type = sym_eval;   break;
 | 
					      case ISEQ_TYPE_EVAL:   type = sym_eval;   break;
 | 
				
			||||||
      case ISEQ_TYPE_MAIN:   type = sym_main;   break;
 | 
					      case ISEQ_TYPE_MAIN:   type = sym_main;   break;
 | 
				
			||||||
      case ISEQ_TYPE_PLAIN:  type = sym_plain;  break;
 | 
					      case ISEQ_TYPE_PLAIN:  type = sym_plain;  break;
 | 
				
			||||||
      default: rb_bug("unsupported iseq type");
 | 
					      default: rb_bug("unsupported iseq type: %d", (int)iseq->body->type);
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* locals */
 | 
					    /* locals */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue