2001-05-30 08:45 UTC-0800 Ron Pinkas <ron@profit-master.com>

* contrib/dot/pp.prg
     ! Fixed PP_PreProLine() to not generate '#line n "<module>"' if module name is empty()
This commit is contained in:
Ron Pinkas
2001-05-30 15:44:31 +00:00
parent e92d3a8188
commit 7ecb733987
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2001-05-30 08:45 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
! Fixed PP_PreProLine() to not generate '#line n "<module>"' if module name is empty()
2001-05-30 01:30 UTC-0800 Ron Pinkas <ron@profit-master.com>
* contrib/dot/pp.prg
+ Added PP_PreProText( cText [, acLines ] ) returns the pre-process text and optional file asLines with pre=processed lines.

View File

@@ -2620,7 +2620,9 @@ FUNCTION PP_PreProLine( sLine, nLine, sSource )
ENDIF
IF s_sIncludeFile != NIL
aAdd( asOutLines, "#line " + LTrim( Str( nLine ) ) + ' "' + Upper( sSource ) + '"' )
IF ! Empty( sSource )
aAdd( asOutLines, "#line " + LTrim( Str( nLine ) ) + ' "' + Upper( sSource ) + '"' )
ENDIF
s_sIncludeFile := NIL
ENDIF