alien.marshall.types: added pointer-to-non-const-primitive?
							parent
							
								
									30698cc534
								
							
						
					
					
						commit
						e4fbb978a3
					
				| 
						 | 
				
			
			@ -40,6 +40,12 @@ MEMO: resolved-primitives ( -- seq )
 | 
			
		|||
    factorize-type
 | 
			
		||||
    { [ pointer? ] [ type-sans-pointer primitive-type? ] } 1&& ;
 | 
			
		||||
 | 
			
		||||
: pointer-to-non-const-primitive? ( str -- ? )
 | 
			
		||||
    {
 | 
			
		||||
        [ pointer-to-const? not ]
 | 
			
		||||
        [ factorize-type pointer-to-primitive? ]
 | 
			
		||||
    } 1&& ;
 | 
			
		||||
 | 
			
		||||
: types-effect>params-return ( types effect -- params return )
 | 
			
		||||
    [ in>> zip ]
 | 
			
		||||
    [ nip out>> dup length 0 > [ first ] [ drop "void" ] if ]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue