Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Changing commenting in Tornado 2

2 views
Skip to first unread message

Matt

unread,
Oct 7, 2009, 4:06:49 PM10/7/09
to
I know this is more of a Tornado environment question, I apologize. I
am bringing over a bunch of old code written in C. The author used the
common '//' commenting method. My environment, however, does not
recognize this method and throws me an error (syntax error before `\')
whenever it is encountered in the code. How on earth do I include the
'//' in the commenting list for Tornado 2?

Thanks in advance,
Matt

Matt

unread,
Oct 8, 2009, 10:16:12 AM10/8/09
to

After finding the correct way to ask google search, I found a solution
to my issue. It seems that by removing the -ansi switch in the
compiler settings this goes away. What I didn't find with this fix,
however, is what else did I just do by removing that switch? Will
anything seriously detrimental occur?

Thanks again,
Matt

Ant

unread,
Oct 9, 2009, 3:45:06 AM10/9/09
to
Hi,
I'm pretty sure that switch is just for enforcing the ansi standard,
so you might be able to now do things that were frowned upon/not
allowed by the compiler before.
If your strict and code to the ansi standard it shouldn't cause you
any problems, but if I was you I would have a bit of a search on the
web, I can't believe there aren't any comment type changers out
there...
Or have a read of this http://www.delorie.com/djgpp/v2faq/faq8_4.html
can't remember if tornado accepts the lang switch or not...

Regards,
Ant

arm0xffff

unread,
Oct 11, 2009, 4:53:47 AM10/11/09
to
On Oct 9, 3:45 pm, Ant <anthony.kers...@baesystems.com> wrote:
> Hi,
>   I'm pretty sure that switch is just for enforcing the ansi standard,
> so you might be able to now do things that were frowned upon/not
> allowed by the compiler before.
>   If your strict and code to the ansi standard it shouldn't cause you
> any problems, but if I was you I would have a bit of a search on the
> web, I can't believe there aren't any comment type changers out
> there...
>   Or have a read of thishttp://www.delorie.com/djgpp/v2faq/faq8_4.html

> can't remember if tornado accepts the lang switch or not...
>
> Regards,
>   Ant

hi
you can remove -asni compile 。
Regards,
highw

0 new messages