Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-08

h2pas and function types

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

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?

Mattias

Michael Van Canneyt
to Mattias Gaertner
Mattias Gaertner wrote 17 lines
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.