[fpc-pascal] h2pas and function types

Michael Van Canneyt michael at freepascal.org
Tue Aug 21 21:34:02 CEST 2007



On Tue, 21 Aug 2007, Mattias Gaertner wrote:

> It seems h2pas silently skips function types. 
> 
> For example h2pas simply skips the following typedef without any trace
> in the translation:
> 
> typedef int (MPI_Comm_copy_attr_function)(MPI_Comm, int, void *, void
> *, void *, int *);
> 
> In the h2pas.pas code I found something that looks promising:
> around line 1920:
> 
>   32 : begin
>          
>          (* TYPEDEF type_specifier LKLAMMER dec_modifier declarator RKLAMMER maybe_space LKLAMMER argument_declaration_list RKLAMMER SEMICOLON *)
> 
> 
> Does someone know about the state of function types and h2pas?

Nope; probably something that was started from the very beginning but never fully finished.
I doubt anyone knows how to go about it currently, so feel free to finish it :-)

Michael.



More information about the fpc-pascal mailing list