[Lazarus] Line Ending FPC/Delphi

2009-03-05 Thread Lee Jenkins
Curious as to how others handle the line endings when sharing code between delphi and lazarus/fpc? FPC has LineEnding and I think Delphi has something similar it inherited from the Kylix era, but I don't think it was called the same. I was thinking of just creating my ifdef'd type. Thanks,

Re: [Lazarus] Line Ending FPC/Delphi

2009-03-05 Thread Felipe Monteiro de Carvalho
In my projects I usually have a file with only general constants, which is added by all others. In this file I add the following declaration: {$IFNDEF FPC} const LineEnding = #10#13; {#endif} The Virtual Magnifying Glass is a medium sized project which is compilable with Lazarus and Delphi. It

Re: [Lazarus] Line Ending FPC/Delphi

2009-03-05 Thread Sergei Gorelkin
Felipe Monteiro de Carvalho wrote: In my projects I usually have a file with only general constants, which is added by all others. In this file I add the following declaration: {$IFNDEF FPC} const LineEnding = #10#13; {#endif} In Delphi this constant is called sLineBreak. For