mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Adjusted indents [ci skip]
This commit is contained in:
		
							parent
							
								
									ad10760b05
								
							
						
					
					
						commit
						0f2f07a9bb
					
				
					 1 changed files with 28 additions and 28 deletions
				
			
		
							
								
								
									
										56
									
								
								st.c
									
										
									
									
									
								
							
							
						
						
									
										56
									
								
								st.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1507,40 +1507,40 @@ st_general_foreach(st_table *tab, st_foreach_check_callback_func *func, st_updat
 | 
			
		|||
	    curr_entry_ptr = &entries[i];
 | 
			
		||||
	}
 | 
			
		||||
	switch (retval) {
 | 
			
		||||
            case ST_REPLACE:
 | 
			
		||||
                break;
 | 
			
		||||
          case ST_REPLACE:
 | 
			
		||||
            break;
 | 
			
		||||
	  case ST_CONTINUE:
 | 
			
		||||
	      break;
 | 
			
		||||
            break;
 | 
			
		||||
	  case ST_CHECK:
 | 
			
		||||
	      if (check_p)
 | 
			
		||||
		  break;
 | 
			
		||||
            if (check_p)
 | 
			
		||||
                break;
 | 
			
		||||
	  case ST_STOP:
 | 
			
		||||
	      return 0;
 | 
			
		||||
            return 0;
 | 
			
		||||
	  case ST_DELETE: {
 | 
			
		||||
	      st_data_t key = curr_entry_ptr->key;
 | 
			
		||||
            st_data_t key = curr_entry_ptr->key;
 | 
			
		||||
 | 
			
		||||
	      again:
 | 
			
		||||
	      if (packed_p) {
 | 
			
		||||
		  bin = find_entry(tab, hash, key);
 | 
			
		||||
		  if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
 | 
			
		||||
		      goto again;
 | 
			
		||||
		  if (bin == UNDEFINED_ENTRY_IND)
 | 
			
		||||
		      break;
 | 
			
		||||
	      }
 | 
			
		||||
	      else {
 | 
			
		||||
		  bin_ind = find_table_bin_ind(tab, hash, key);
 | 
			
		||||
		  if (EXPECT(bin_ind == REBUILT_TABLE_BIN_IND, 0))
 | 
			
		||||
		      goto again;
 | 
			
		||||
		  if (bin_ind == UNDEFINED_BIN_IND)
 | 
			
		||||
		      break;
 | 
			
		||||
		  bin = get_bin(tab->bins, get_size_ind(tab), bin_ind) - ENTRY_BASE;
 | 
			
		||||
		  MARK_BIN_DELETED(tab, bin_ind);
 | 
			
		||||
	      }
 | 
			
		||||
	      curr_entry_ptr = &entries[bin];
 | 
			
		||||
	      MARK_ENTRY_DELETED(curr_entry_ptr);
 | 
			
		||||
	      tab->num_entries--;
 | 
			
		||||
	      update_range_for_deleted(tab, bin);
 | 
			
		||||
	      break;
 | 
			
		||||
            if (packed_p) {
 | 
			
		||||
                bin = find_entry(tab, hash, key);
 | 
			
		||||
                if (EXPECT(bin == REBUILT_TABLE_ENTRY_IND, 0))
 | 
			
		||||
                    goto again;
 | 
			
		||||
                if (bin == UNDEFINED_ENTRY_IND)
 | 
			
		||||
                    break;
 | 
			
		||||
            }
 | 
			
		||||
            else {
 | 
			
		||||
                bin_ind = find_table_bin_ind(tab, hash, key);
 | 
			
		||||
                if (EXPECT(bin_ind == REBUILT_TABLE_BIN_IND, 0))
 | 
			
		||||
                    goto again;
 | 
			
		||||
                if (bin_ind == UNDEFINED_BIN_IND)
 | 
			
		||||
                    break;
 | 
			
		||||
                bin = get_bin(tab->bins, get_size_ind(tab), bin_ind) - ENTRY_BASE;
 | 
			
		||||
                MARK_BIN_DELETED(tab, bin_ind);
 | 
			
		||||
            }
 | 
			
		||||
            curr_entry_ptr = &entries[bin];
 | 
			
		||||
            MARK_ENTRY_DELETED(curr_entry_ptr);
 | 
			
		||||
            tab->num_entries--;
 | 
			
		||||
            update_range_for_deleted(tab, bin);
 | 
			
		||||
            break;
 | 
			
		||||
	  }
 | 
			
		||||
	}
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue