Skip to main content

Thread: C preprocessor and C continuation character \


this query find out if change intentional, or if unlikely bug.

if have file, foo.dat:

code:
hello \  world
and run through c preprocessor, see difference between output on lucid , natty.

on lucid, running command:
code:
cc -e -x c foo.dat
the output is:
code:
# 1 "foo.dat"  # 1 "<built-in>"  # 1 "<command-line>"  # 1 "foo.dat"  hello world
however, on natty, output is:
code:
# 1 "foo.dat"  # 1 "<built-in>"  # 1 "<command-line>"  # 1 "foo.dat"  hello  world
i'd know:
1) intentional change or bug?
2) can fix new command option?

in advance.

mm

quote posted mr_mop view post
this query find out if change intentional, or if unlikely bug.

if have file, foo.dat:

code:
hello \  world
and run through c preprocessor, see difference between output on lucid , natty.

on lucid, running command:
code:
cc -e -x c foo.dat
the output is:
code:
# 1 "foo.dat"  # 1 "<built-in>"  # 1 "<command-line>"  # 1 "foo.dat"  hello world
however, on natty, output is:
code:
# 1 "foo.dat"  # 1 "<built-in>"  # 1 "<command-line>"  # 1 "foo.dat"  hello  world
i'd know:
1) intentional change or bug?
2) can fix new command option?

in advance.

mm
does apply macros too? happens input this:

code:
#define foo \   b    foo


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] C preprocessor and C continuation character \


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support