Dave Pickles wrote:
> 
> Recompiling the WCMD command-line interpreter for the first time in quite
> a while it seems that wrc now has an incompatibility with Windows resource
> compilers (Borland C++ 5.02 to be specific).
> 
> The resource file wcmdrc.rc contains entries such as the following:
[snip]
> 
> In the old version of wrc (and the Windows compilers), the trailing
> backslash not only indicates that the string continues on the next
> source line, it also inserts a newline character in the stringtable. The
> current version does not insert the newlines, so all the help text runs
> together.


Yes indeed, the newline was actually a "feature" that is not present
anymore. From the CHANGES file:

- Line-continuation in strings is corrected so that it does not
  introduce a newline in the output.

I didn't realize that the standard rc compilers introduced a newline,
and they shouldn't, because the combination "\\\n" is considered to be
non-breaking and non-spacing whitespace (that much for sensible
scanners). The linecontinuation is now entirely handled in the
preprocessor (and removed).

I guess that I need to propagate the linecontinuations again and handle
them in the resource scanner. Let me take a look at that.

Greetings Bertho

Reply via email to