[fpc-devel] Hi listers, , , , I am trying to translate a C header with H2PAS

Hans-Peter Diettrich DrDiettrich1 at aol.com
Wed Jun 15 12:02:49 CEST 2011


Skybuck Flying schrieb:

>    K_quotedbl = '\"';

This of course should read
     K_quotedbl = '"';


>  { also define the escape sequences that have keys associated  }

All the C escape sequences have to be translated into Pascal 
char/string, e.g.:

>  { 8  }
>  const
>    K_BS = '\b';
should read
     K_BS = #8;

>  { 10 (0x0A) not a real key, is a combination of CR with a modifier, 
> just to document  }
>    K_LF = '\n';

This one is questionable. The comment suggests a #13#10, but this may 
not work everywhere.

DoDi




More information about the fpc-devel mailing list