Groups | Search | Server Info | Login | Register


Groups > comp.lang.c.moderated > #506

String: "anti" string oprator

X-FeedAbuse http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.16.109
Path csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!nospam.fr.eu.org!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!news.mixmin.net!news2.arglkargh.de!news.wiretrip.org!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newspeer1.nac.net!newsfeeds.sol.net!post2.nntp.sol.net!posts.news.megabitz.net!nnrp2-asbnva.megabitz.net!not-for-mail
From paragk <parag.kanade@gmail.com>
Newsgroups comp.lang.c.moderated
Subject String: "anti" string oprator
Date Tue, 1 Feb 2011 16:28:31 -0600 (CST)
Organization http://groups.google.com
Sender clcm@herd.plethora.net
Approved clc@plethora.net
Message-ID <clcm-20110201-0006@plethora.net> (permalink)
User-Agent G2/1.0
Complaints-To groups-abuse@google.com
Return-Path <news@google.com>
X-Original-to clcm@plethora.net
X-Old-complaints-to groups-abuse@google.com
Domainkey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:to:path:from:newsgroups:subject:date :organization:lines:message-id:nntp-posting-host:mime-version :content-type:x-trace:x-complaints-to:nntp-posting-date :complaints-to:injection-info:user-agent:x-http-useragent; b=dkhQma7EYXq8WMuUgv9VAhTx+dk7ct3QLYe2HF/NTNUVg38eHn4I5yQukgGt9JEX8q iYxMFv3XDLLHg+T0NrdAT9g8vgHXwjnhY+zjeMhlfdanmRO3V6QazLyFDk0cUnLEx8w6 KTKJhf+AWERWwdlEn05yC2FLUD2vfud3V6Pu4=
Content-Type text/plain; charset=ISO-8859-1
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:x-authentication-warning:to:path:from :newsgroups:subject:date:organization:lines:message-id :nntp-posting-host:mime-version:content-type:x-trace:x-complaints-to :nntp-posting-date:complaints-to:injection-info:user-agent :x-http-useragent; bh=c+6jSIe7XLqa6ZCzlWfj3LXAIxEZeVuHGWi994mdRs0=; b=K4j1GawK1Z9U4+L/8Kvd99Dq2VkP1Ov1j0aKCOXUbsVLSywwZXFaAzM1x24wINiw29 2+rXnXsthu9S9MNnBmUlrd3bx0GTXoeZIRO//j/QM3+urP5jrBCWzibkgkhJZmVIwYUP YtUngtqP3BguOb5SO0/v4EqnQ9s7sEi5DfybM=
Mime-Version 1.0
Delivered-To clcm@localhost.plethora.net
X-Old-trace posting.google.com 1296204861 12689 127.0.0.1 (28 Jan 2011 08:54:21 GMT)
Injection-Info o7g2000prn.googlegroups.com; posting-host=75.85.180.55; posting-account=AyLtqwoAAAB2rUK5O0r92MaxMwWCxiil
X-Http-useragent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.237 Safari/534.10,gzip(gfe)
X-Authentication-warning ywd9.prod.google.com: news set sender to news@google.com using -f
Lines 35
NNTP-Posting-Date 01 Feb 2011 22:21:59 GMT
NNTP-Posting-Host ace5bbe0.news.megabitz.net
X-Trace DXC=O:36O^FB9M::G9^1od_fh8><6FU_Q:4m2^W\Y;gN2lO=ijUVokL_HL:^?=kQhGWm547d@DE\31QY5MoRO]O40E38`H03LY\jMh02NAUX;4HKn5
X-Complaints-To abuse@megabitz.net
Xref csiph.com comp.lang.c.moderated:506

Show key headers only | View raw


Hi,

The # operator converts a parameter to a string. Is there a way to
"anti" string?

For e.g.

char *p="abc";
char *q="xyz";

#define declare_fun(x) void <anti string>x( void)

main()
{

  declare_func(*p);
  declare_func(*q);
}

I would like to get the following after the preprocessor is run:

main()
{
  void abc(void);
  void xyz(void);
}

Is there a way to achieve this?

Thanks,
Parag
-- 
comp.lang.c.moderated - moderation address: clcm@plethora.net -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line.  Sorry.

Back to comp.lang.c.moderated | Previous | Next | Find similar


Thread

String: "anti" string oprator paragk <parag.kanade@gmail.com> - 2011-02-01 16:28 -0600

csiph-web