Old 6th January 2002, 21:27   #1
rainwater
Senior Member
 
Join Date: Aug 2000
Posts: 397
Send a message via ICQ to rainwater
Fix for comment \ combo

Here's a fix for the following problem:
; Comment \
Name "Something"

Where the \ caused the second line not to process.

Change script.cpp line 59 from:
if (str[0] && CharPrev(str,str+strlen(str))[0] == '\\') return PS_OK;

To:
if (str[0] && *str!='#' && *str!=';' && CharPrev(str,str+strlen(str))[0] == '\\') return PS_OK;

This will allow you to add \ to the end of comment lines (Of course, I don't know why you'd want to ).

Robert
rainwater is offline   Reply With Quote
Old 7th January 2002, 01:32   #2
justin
Moderator Alumni
 
Join Date: Apr 2000
Location: USA
Posts: 315
Actually having a \ at the end of a comment line continue the comment to the next line is a desired behavior.


; Comment line 1\
Comment line 2\
Etc

-Justin
justin is offline   Reply With Quote
Old 7th January 2002, 03:39   #3
rainwater
Senior Member
 
Join Date: Aug 2000
Posts: 397
Send a message via ICQ to rainwater
I guess one person's bug is another person's feature

Robert
rainwater is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump