mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* transcode.c (transcode_restartable0): can't build with VC9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									5b697c7e5c
								
							
						
					
					
						commit
						44a8a15037
					
				
					 2 changed files with 14 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Sun Jun 14 01:53:00 2009  NARUSE, Yui  <naruse@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* transcode.c (transcode_restartable0): can't build with VC9.
 | 
			
		||||
 | 
			
		||||
Sun Jun 14 01:23:41 2009  Tadayoshi Funaba  <tadf@dotrb.org>
 | 
			
		||||
 | 
			
		||||
	* rational.c (nurat_to_f): use fdiv.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										19
									
								
								transcode.c
									
										
									
									
									
								
							
							
						
						
									
										19
									
								
								transcode.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -540,15 +540,16 @@ transcode_restartable0(const unsigned char **in_pos, unsigned char **out_pos,
 | 
			
		|||
      follow_info:
 | 
			
		||||
	switch (next_info & 0x1F) {
 | 
			
		||||
	  case NOMAP:
 | 
			
		||||
	    {
 | 
			
		||||
		const unsigned char *pend = in_p;
 | 
			
		||||
		in_p = inchar_start;
 | 
			
		||||
		while (in_p < pend) {
 | 
			
		||||
		    next_byte = (unsigned char)*in_p++;
 | 
			
		||||
		    SUSPEND_OBUF(3); *out_p++ = next_byte;
 | 
			
		||||
		}
 | 
			
		||||
	    }
 | 
			
		||||
	    continue;
 | 
			
		||||
            {
 | 
			
		||||
                const unsigned char *char_start;
 | 
			
		||||
                size_t char_len, i = 0;
 | 
			
		||||
                char_start = transcode_char_start(tc, *in_pos, inchar_start, in_p, &char_len);
 | 
			
		||||
                while (i < char_len) {
 | 
			
		||||
                    SUSPEND_OBUF(3);
 | 
			
		||||
                    *out_p++ = char_start[i++];
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            continue;
 | 
			
		||||
	  case 0x00: case 0x04: case 0x08: case 0x0C:
 | 
			
		||||
	  case 0x10: case 0x14: case 0x18: case 0x1C:
 | 
			
		||||
            SUSPEND_AFTER_OUTPUT(25);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue