http://bugzilla.spamassassin.org/show_bug.cgi?id=4577
------- Additional Comments From [EMAIL PROTECTED] 2005-09-09 09:26 -------
Subject: Re: libsspamc.c syntax error with IBM xlc
Hi,
I had a look at the IBM XLC reference and you can set a flag to get it
to recognize C++ style comments. Perhaps Makeperl.PL can set this when
it recognizes xlc as the target compiler. Here is the relevant excerpt.
====================================
cpluscmt
Purpose
Use this option if you want C++ comments to be recognized in C source files.
Syntax
-q nocpluscmt
cpluscmt
Default
The default setting varies according to the langlvl compiler option setting.
v If langlvl is set to stdc99 or extc99, cpluscmt is implicitly
selected. You can
override this implicit selection by specifying -qlanglvl=stdc99
-qnocpluscmt or
-qlanglvl=extc99 -qnocpluscmt.
v Otherwise, the default setting is nocpluscmt.
Notes
The #pragma options directive must appear before the first statement in
the C
language source file and applies to the entire file.
The __C99_CPLUSCMT compiler macro is defined when cpluscmt is selected.
// comments are not part of C89. The result of the following valid C89
program will
be incorrect if -qcpluscmt is specified:
main() {
int i = 2;
printf(%i\n, i //* 2 */
+ 1);
}
The correct answer is 2 (2 divided by 1). When -qcpluscmt is specified,
the result
is 3 (2 plus 1).
====================================
Bill
[EMAIL PROTECTED] wrote:
>http://bugzilla.spamassassin.org/show_bug.cgi?id=4577
>
>
>
>
>
>------- Additional Comments From [EMAIL PROTECTED] 2005-09-08 12:23 -------
>The problem sees to be the use of C++ style comments. AFAIK, this is allowed
>in
>C99, but I guess there are still some old compilers out there.
>
>Attaching a patch against trunk.
>
>
>
>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>
>
>
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.