Hi Przemek,

Let's say the way ca-clipper keeps track of #line directives allows postprocessing the .ppo file in such a way that it is clear at what point a header is #include-d (possibly #include-ing others, which can also be traced) and at what point the #line directive is 'back' at source level; also calculating the exact placement of non-empty source lines depends on that information; harbour respects correct line numbering afaik, but sometimes skips mentioning that a (new) header has been included, which makes this postprocessing tool loose track of where it is; a simple test reveals that when a header is #include-d to the point where recursively another header is #include-d, and when nothing was to be written to the .ppo file in the meantime, the #line directive, such as #line 1 "test1.ch" is omitted by harbour, only to show #line 2 "test2.ch"
--- test.prg --- 

#include "test1.ch"

proc main ()

--- test1.ch ---
#include "test2.ch"

TEST1 // pp rule that shouldn't trigger

// pp rules that should trigger

--- test2.ch ---
TEST2 // pp rule that shouldn't trigger

// pp rules that should trigger

---------------- then, ca-clipper shows:
-----------------
#line 1 "test1.ch"
#line 1 "test2.ch"

TEST2
#line 4 "test1.ch"
TEST1
#line 4 "TEST.PRG"
proc main ()
-----------------
while harbour shows:
-----------------
#line 2 "test2.ch"
TEST2
#line 4 "test1.ch"
TEST1
#line 4 "test.prg"
proc main ()
-----------------

i have an attachement ready with the files
can i send it as a Outlook Express attachement to this mailing list?

frank

----- Original Message ----- From: "Przemyslaw Czerpak" <[EMAIL PROTECTED]>
To: "Harbour Project Main Developer List." <harbour@harbour-project.org>
Sent: Monday, May 05, 2008 8:36 PM
Subject: Re: [Harbour] Re: .ppo selectively skips #line ... directives


On Mon, 05 May 2008, frank van nuffel wrote:

Hi Frank,

I'm sorry for the cheering - my test setup appeared to be wrong
The old pp (an xharbour build from before the pp rewrite) happened to still be used while i tested (which outputs #line directives as ca-clipper does)
Can anyone help me with this?
Yes, sure. But I need more information what's the problem.
Can you tell me what exactly is wrong and what you expect.

Best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to