mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Tue Jun 16 16:09:59 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
* parse.y (parser_read_escape, parser_tokadd_escape): replace scan_oct as ruby_scan_oct. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									6f1edacc01
								
							
						
					
					
						commit
						bc4c51ecce
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		|  | @ -1,3 +1,8 @@ | |||
| Tue Jun 16 16:09:59 2009  TAKANO Mitsuhiro (takano32)  <tak@no32.tk> | ||||
| 
 | ||||
| 	* parse.y (parser_read_escape, parser_tokadd_escape):  | ||||
| 	  replace scan_oct as ruby_scan_oct. | ||||
| 
 | ||||
| Tue Jun 16 06:40:31 2009  Yukihiro Matsumoto  <matz@ruby-lang.org> | ||||
| 
 | ||||
| 	* io.c (fptr_finalize): should close stdin/stdout/stderr when | ||||
|  |  | |||
							
								
								
									
										4
									
								
								parse.y
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								parse.y
									
										
									
									
									
								
							|  | @ -5437,7 +5437,7 @@ parser_read_escape(struct parser_params *parser, int flags, | |||
|       case '4': case '5': case '6': case '7': | ||||
| 	if (flags & (ESCAPE_CONTROL|ESCAPE_META)) goto eof; | ||||
| 	pushback(c); | ||||
| 	c = scan_oct(lex_p, 3, &numlen); | ||||
| 	c = ruby_scan_oct(lex_p, 3, &numlen); | ||||
| 	lex_p += numlen; | ||||
| 	return c; | ||||
| 
 | ||||
|  | @ -5515,7 +5515,7 @@ parser_tokadd_escape(struct parser_params *parser, rb_encoding **encp) | |||
|       case '4': case '5': case '6': case '7': | ||||
| 	if (flags & (ESCAPE_CONTROL|ESCAPE_META)) goto eof; | ||||
| 	{ | ||||
| 	    scan_oct(--lex_p, 3, &numlen); | ||||
| 	    ruby_scan_oct(--lex_p, 3, &numlen); | ||||
| 	    if (numlen == 0) goto eof; | ||||
| 	    lex_p += numlen; | ||||
| 	    tokcopy((int)numlen + 1); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 takano32
						takano32