public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Does GCC support Characterise operator?
@ 2006-11-10 11:11 Naga Priya .K
  2006-11-10 11:17 ` Andrew Haley
  2006-11-10 13:34 ` John Love-Jensen
  0 siblings, 2 replies; 3+ messages in thread
From: Naga Priya .K @ 2006-11-10 11:11 UTC (permalink / raw)
  To: gcc-help, arturas.moskvinas

Sir,

I read from a document that there is and operator called character 
operator in c and it converts the operand to quoted character.
I wrote the following code and tried to execute in GCC-2.95.2, but i'm 
getting the following error.
"`#' operator is not followed by a macro argument name"
Does it mean character operator wont work with GCC?
If this is implemented in latest version can u give me a example and the 
output of how it works.

Program:
#define MAKECHARACTER(operand) #@operand
int main()
{
    char ch;
    ch=97;
    switch(ch)
    {
        case MAKECHARACTER(a):
            ch='b';
            break;
        default:
            ch='x';
    }
return 0;
}

Thank you,
K.Naga Priya

##############################################################################################################################################
The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination, copying or other use of, or taking any action in reliance upon, this information by
persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete
the material from your system. Accord Software & Systems Pvt. Ltd. (ACCORD) is not responsible for any changes made to the material other
than those made by ACCORD or for the effect of the changes on the meaning of the material.
##############################################################################################################################################

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does GCC support Characterise operator?
  2006-11-10 11:11 Does GCC support Characterise operator? Naga Priya .K
@ 2006-11-10 11:17 ` Andrew Haley
  2006-11-10 13:34 ` John Love-Jensen
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Haley @ 2006-11-10 11:17 UTC (permalink / raw)
  To: Naga Priya .K; +Cc: gcc-help, arturas.moskvinas

Naga Priya .K writes:

 > The information transmitted is intended for the person or entity to
 > which it is addressed and may contain confidential and/or
 > privileged material. Any review, retransmission, dissemination,
 > copying or other use of, or taking any action in reliance upon,
 > this information by persons or entities other than the intended
 > recipient is prohibited.

So we can't respond to you.

Please send your message without such evil attachments.

Andrew.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Does GCC support Characterise operator?
  2006-11-10 11:11 Does GCC support Characterise operator? Naga Priya .K
  2006-11-10 11:17 ` Andrew Haley
@ 2006-11-10 13:34 ` John Love-Jensen
  1 sibling, 0 replies; 3+ messages in thread
From: John Love-Jensen @ 2006-11-10 13:34 UTC (permalink / raw)
  To: Naga Priya .K, MSX to GCC

Hi Naga,

Could you please resubmit your question without the terms & conditions
boilerplate which prevents us from responding to your inquiry.

Or send your question from another account (e.g., Google mail), which does
not have terms & conditions boilerplate such that we are not allowed to
respond to your inquiry.

Thanks,
--Eljay

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-10 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-10 11:11 Does GCC support Characterise operator? Naga Priya .K
2006-11-10 11:17 ` Andrew Haley
2006-11-10 13:34 ` John Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).