From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from int-mx1.corp.redhat.com (unknown [172.16.44.254]) by listman.redhat.com (Postfix) with ESMTP id 82B852FE8B for ; Thu, 18 Oct 2001 10:28:19 -0400 (EDT) Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id f9IESJN27616 for ; Thu, 18 Oct 2001 10:28:19 -0400 Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f9IESJg15411 for axp-list@listman.redhat.com; Thu, 18 Oct 2001 10:28:19 -0400 Received: from mhub.ariadne-t.gr (mhub.ariadne-t.gr [143.233.39.19]) by mail.redhat.com (8.11.0/8.8.7) with SMTP id f9IESIg15404 for ; Thu, 18 Oct 2001 10:28:18 -0400 Received: (qmail 13644 invoked by uid 1003); 18 Oct 2001 18:49:52 -0000 Received: from mail.demokritos.gr (143.233.11.10) by mhub.ariadne-t.gr with SMTP; 18 Oct 2001 18:49:52 -0000 Received: from iolkos (nmargar@iolkos.chem.demokritos.gr [143.233.244.90]) by mail.demokritos.gr (8.8.5/8.8.5) with SMTP id QAA25489 for ; Thu, 18 Oct 2001 16:28:50 +0200 (EET) Content-Type: text/plain; charset="iso-8859-7" X-KMail-Redirect-From: "Nikolaos A. Margaritis" Subject: concatenating with cpp From: "Nikolaos A. Margaritis" (by way of Nikolaos A. Margaritis ) Date: Thu, 18 Oct 2001 17:23:44 +0300 To: "Alpha Mailing List" MIME-Version: 1.0 Message-Id: <01101817234401.01249@iolkos> Content-Transfer-Encoding: 8bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear all, I have a problem with the cpp. Well, I have a definition: #define DIM 4 then I need the preprocessor to concatenate "SOME_NAME_" with "DIM", ie I want to it to return SOME_NAME_4 which is a function name. Thus if I type: SOME_VALUE_ some_operation{DIM} () the compiler should call: SOME_VALUE_4() Can this be done? I have read the info for cpp, and I noticed that prescanning of variables is not done for concatenating strings. Thanks in advance, Nikos - -- Dr. Nikolaos A. Margaritis Department of Physical Chemistry National Research Centre for Physical Sciences "Demokritos" Ag. Paraskevi, Athens 15310, Greece. Tel: +30(0)1 650 3964 URL: http://mmml.chem.demokritos.gr/~nmargar -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7zuXw+7yOA19c97kRAuoTAJ9e1M8iXQuKDokOIXSMRvmyP62aggCdEB6E sA7VbrcZBHrRX/d/Idyskvk= =vXqi -----END PGP SIGNATURE-----