Revert change to make-callback-type cause Slava already fixed it in parse-arglist
							parent
							
								
									833372cd08
								
							
						
					
					
						commit
						aead6e7dd8
					
				| 
						 | 
				
			
			@ -91,14 +91,14 @@ IN: alien.parser
 | 
			
		|||
    '[ [ _ _ _ ] dip alien-callback ] ;
 | 
			
		||||
 | 
			
		||||
:: make-callback-type ( lib return type-name parameters -- word quot effect )
 | 
			
		||||
    return type-name normalize-c-arg :> ( return-c-type type-name )
 | 
			
		||||
    return type-name normalize-c-arg :> ( return type-name )
 | 
			
		||||
    type-name current-vocab create :> type-word 
 | 
			
		||||
    type-word [ reset-generic ] [ reset-c-type ] bi
 | 
			
		||||
    void* type-word typedef
 | 
			
		||||
    parameters return parse-arglist :> ( types callback-effect )
 | 
			
		||||
    type-word callback-effect "callback-effect" set-word-prop
 | 
			
		||||
    type-word lib "callback-library" set-word-prop
 | 
			
		||||
    type-word return-c-type types lib library-abi callback-quot (( quot -- alien )) ;
 | 
			
		||||
    type-word return types lib library-abi callback-quot (( quot -- alien )) ;
 | 
			
		||||
 | 
			
		||||
: (CALLBACK:) ( -- word quot effect )
 | 
			
		||||
    "c-library" get
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue