Re: [scintilla] scintilla make problem on YellowDog Linux 2.0+ ../include/Scintilla.h:575: parse error before `1'


Subject: Re: [scintilla] scintilla make problem on YellowDog Linux 2.0+ ../include/Scintilla.h:575: parse error before `1'
From: Patrick Callahan (pac1@tiac.net)
Date: Sat Sep 29 2001 - 08:03:23 MDT


On Saturday 29 September 2001 09:07, you wrote:
> Different flags maybe?
>

The problem was the continuation in a #define

I changed this:

#define SC_MASK_FOLDERS ((1<<SC_MARKNUM_FOLDER) | \
        (1<<SC_MARKNUM_FOLDEROPEN) | \
        (1<<SC_MARKNUM_FOLDERSUB) | \
        (1<<SC_MARKNUM_FOLDERTAIL) | \
        (1<<SC_MARKNUM_FOLDERMIDTAIL) | \
        (1<<SC_MARKNUM_FOLDEROPENMID) | \
        (1<<SC_MARKNUM_FOLDEREND))

to a single line:

#define SC_MASK_FOLDERS ((1<<SC_MARKNUM_FOLDER) | (1<<SC_MARKNUM_FOLDEROPEN)
| (1<<SC_MARKNUM_FOLDERSUB) | (1<<SC_MARKNUM_FOLDERTAIL) |
(1<<SC_MARKNUM_FOLDERMIDTAIL) | (1<<SC_MARKNUM_FOLDEROPENMID) |
(1<<SC_MARKNUM_FOLDEREND))

So why doesn't the first form work? it looks valid. How do I get gcc to
compile it with the line continuation in?

-pat



This archive was generated by hypermail 2a24 : Sat Sep 29 2001 - 07:12:41 MDT