bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

something iteresting


From: Shyjumon
Subject: something iteresting
Date: Thu, 29 Dec 2005 12:03:05 +0530

 
Hello sir,
At first let me thank you people for making a wonderful compiler for all
the programmers working in C on Linux.
Yesterday I found a problem while developing a specific application. I
don't know is it bug or something but I just want to know why it is
implemented like the way it behaves.
I am enclosing the code below.
 
main()        
{
#if('l') + #if('k')
        printf("yes!! i can\n");
#endif
}
 
It is working perfectly in my GCC compiler and not in other compilers.
 
In my view the preprocessor is evaluating like an expression.
And if have not given the + operator,
 it is giving me error that "missing binary operator"
I hope now the problem is clear to you.
And the thing is very much critical for us, we are working a
preprocessor for mobile application solutions.
So I request you to kindly give some suggestions in this regard.
Thanking you.
Yours truly,
 
Shyjumon N
Software Engineer
Mob: +91 9945006965
Cranes Software International Ltd
Bnagalore, India.
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]