Discussion Forum

Excessive line length

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Andy Neil
Posted
17-Jul-2007 09:29 GMT
Toolset
None
New! Excessive line length

The article describes a limitation of the editor - so you could always use a different editor...
However, every editor has to have some limit on its maximum line length - 2048 characters does not sound unreasonable to me!

Note also that the Compiler will have its own limit on the maximum line length, and that limit will apply after the backslashes have been removed and the line-fragments concatenated...

I think a line length of anything near 2000 characters would be almost universally regarded as "excessive" - why do you need to do this??

"Example: long source line \ continues here

But it still wrapped lines there is still problem, I don't understand why ?"

That's not what http://www.keil.com/support/docs/2911.htm actually says, is it?
You still have a single line - the backslash character only has meaning to the 'C' compiler - it is not recognised by the editor.
You need to use the backslash and split it over two lines:

  long source line \ 
  continues here


Or did you just not read the instruction on how to post source code...?

Read-Only
Author
Andy Neil
Posted
17-Jul-2007 09:33 GMT
Toolset
None
New! Oops

I don't know why this has appeared as a separate thread!

It should be a reply in this thread:
http://www.keil.com/forum/docs/thread10231.asp#msg48742

(probably something to do with my internet connection dropping-out?)

Next Thread | Thread List | Previous Thread Start a Thread | Settings