[fpc-pascal] FPC and ANSI C
    Valdas Jankūnas 
    zmuogs at gmail.com
       
    Mon Sep  6 14:26:42 CEST 2010
    
    
  
On 2010.09.05 21:08, Jonas Maebe wrote:
>> My problem is that I always must synchronise values in both sources.
>> So, I want that C compiler will read constants from FPC source, or FPC compiler read from C source, or both compilers reads from some custom file. Is this possible? How implement this?
>
> The easiest way is probably to create a C include file that contains all constants as defines, and then automatically generating the Pascal version of the include with "h2pas -i cinclude.h -o pinclude.inc".
Thanks, his will make my life easier :)
-- 
   Valdas Jankūnas
    
    
More information about the fpc-pascal
mailing list