mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-10-30 14:30:53 -07:00 
			
		
		
		
	Fixes for typedef serialization of functions..
Also fix for HashTable<>::rehash_fast not having finished implemenation... The typedef fix is a sort of hack (like how parsing the rest of the language feels like tbh...). I might make a def_typedef_fn to make it clearer how to define function typedefs using the upfront interface.
This commit is contained in:
		| @@ -424,9 +424,16 @@ struct HashTable | ||||
|  | ||||
| 		for ( idx = 0; idx < Entries.num(); idx++ ) | ||||
| 		{ | ||||
| 			Entry* entry; | ||||
|  | ||||
| 			Entry*     entry; | ||||
| 			FindResult find_result; | ||||
|  | ||||
| 			entry       = & Entries[ idx ]; | ||||
| 			find_result = find( entry->Key ); | ||||
|  | ||||
| 			if ( find_result.PrevIndex < 0 ) | ||||
| 				Hashes[ find_result.HashIndex ] = idx; | ||||
| 			else | ||||
| 				Entries[ find_result.PrevIndex ].Next = idx; | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user