PureBasic Forum
https://www.purebasic.fr/english/

Error message with fileformat LF - Includefile
https://www.purebasic.fr/english/viewtopic.php?f=4&t=72742
Page 1 of 1

Author:  Josh [ Sat May 04, 2019 10:21 pm ]
Post subject:  Error message with fileformat LF - Includefile

It seems that the Windows compiler has problems with an LF fileformat in the code of includefiles.

Code:
Interface MyIface
  xyz
EndInterface

Create a testfile with fileformat LF. Try this code and you will get the following correct error message: Garbage at the end of the line.

Now call this testfile from another source with an Includefile to the first file and you will get this senseless error message: 'EndInterface' is not a valid operator.

Author:  skywalk [ Sat May 04, 2019 10:55 pm ]
Post subject:  Re: Error message with fileformat LF - Includefile

Not following...Why would IncludeFile recognize linefeed as a terminator on Windows?

Author:  mk-soft [ Sat May 04, 2019 11:19 pm ]
Post subject:  Re: Error message with fileformat LF - Includefile

Interface works always with defined functions...

Code:
Interface MyIface
  xyz() ; <-- () ; integer result
  get.s() ; string result
  set(value.s) ; Args without *this
  var.f() ; float result
  ; etc
EndInterface

Author:  Josh [ Sat May 04, 2019 11:24 pm ]
Post subject:  Re: Error message with fileformat LF - Includefile

@ skywalk

Not sure what you mean.

The Pb compiler will probably have to accept LF as line end under Windows, which is what it does in general. Just like that, the Pb compiler on Linux and Mac will have to accept CrLf as line endings.

Just think about why :D


@mk-soft

I know this, but this has nothing to do why I wrote this bug report.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/