Hi All,

I found the problem using a process of elimination and found the the
IFDEF LINUX define causes "makeskel" to crash.  Luckily I don't need
the Kylix ifdef's anymore, so was able to remove it and continue
working with makeskel.

Still not sure what in the IFDEF LINUX caused the problem though...
Does makeskel and FPC support the "If Declared(...)" syntax?


----------  CUT  ----------------
//Delphi 6 & Kylix 1-3
{$IFDEF VER140}
 {$IFDEF MSWINDOWS}
   {$DEFINE DELPHI5ORABOVE}
   {$DEFINE DELPHI6ORABOVE}
   {$DEFINE DELPHI6}
 {$ENDIF MSWINDOWS}
 {$IFDEF LINUX}
   // Kylix is compatible with Delphi 6, so we include them here as well.
   // Might change this later.
   {$DEFINE DELPHI5ORABOVE}
   {$DEFINE DELPHI6ORABOVE}
   {$DEFINE DELPHI6}
   {$IFDEF CONDITIONALEXPRESSIONS}
     {$IFDEF CompilerVersion}
        // Important:  Don't use CompilerVersion here as
        // $IF's are evaluated before $IFDEF's
        // and Kylix 1 does not have CompilerVersion defined at all.
        {$IF Declared(RTLVersion) and (RTLVersion = 14.20)}
          {$DEFINE KYLIX2}
          {$DEFINE KYLIX1ORABOVE}
          {$DEFINE KYLIX2ORABOVE}
        {$IFEND}
        {$IF Declared(RTLVersion) and (RTLVersion = 14.50)}
          {$DEFINE KYLIX3}
          {$DEFINE KYLIX1ORABOVE}
          {$DEFINE KYLIX2ORABOVE}
          {$DEFINE KYLIX3ORABOVE}
        {$IFEND}
     {$ELSE}
        //CompilerVersion is not defined under Kylix 1
        {$DEFINE KYLIX1}
        {$DEFINE KYLIX1ORABOVE}
     {$ENDIF}
   {$ENDIF}
 {$ENDIF}
{$ENDIF}
-----------  END  --------------


Regards,
 - Graeme -



On 04/09/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
Hi,

I am using the latest FPC 2.0.5 from SubVersion. (rev 4550).  I am
trying to promote "fpdoc" to the tiOPF developers and hit a brick wall
with my first attempt!  :-(

I am trying to run "makeskel" against a project I work on (tiOPF), but
makeskel keeps giving me the error below.  I created a simple one unit
demo app, with the same include file (tiDefines.inc) as used in the
tiOPF project.  See attached file.  The project compiles fine with
FPC, but makeskel fails.  The IFDEF's in tiDefines.inc are needed due
to tiOPF compiling against Delphi 7-2006 and FPC.

Below is the makeskel line I execute and the error I receive.  Anybody
got ideas as to what is causing this problem.

-------------------------------
$> makeskel --output=docs/tiopf.xml --input='-Fi. -FU. unit1.pas'
--package=tiOPF

MakeSkel - FPDoc skeleton XML description file generator
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [EMAIL PROTECTED]

An unhandled exception occurred at $08091D93 :
EParserError : Expected "interface" at token "EOF"
  $08091D93
  $0809225F
  $080936EF
  $080935B4
  $080976AE
  $080499AA

-------------------------------

Regards,
  - Graeme -


--
There's no place like 127.0.0.1
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to