title: Howto create C-Header for Delphi/Free Pascal/Lazarus DLL - data types
body: <p>For my application I need to create a DLL from Delphi (to be more precise Delphi compatible code written within Lazarus IDE compiled by free pascal under linux) using <strong>stdcall</strong>.<br>
  When using that DLL (for example in Matlab or so) one needs of course the meta information for passing the arguments - often realised with a header file.
  I'm searching for a tool do to that running on the delphi source code. Something like <code>h2pas</code>-reverse.<br>
  My research yielded no results. As I think, there is no such tool, I'd like to find a table or other information, how the Delphi/Pascal data types are mapped to C types and how to work with records.</p>