🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42694

please help me with directive ##

#42694
From: Suwanto Suwanto
Date: Thu, 09 Nov 1995 00:00
17 lines
911 bytes
I am trying to port a program that is compiled succesfully on Dec Ultrix,
but i can't compile it on Solaris.  The problem seems to be with the 
following directive:

#define CONCAT(f) f##_ptr

it is supposed to append a string '_ptr' at the end of the variable f.

suppose you do CONCAT(head) then the result should be head_ptr

Apparently Solaris and a few other systems don't like this kind of directive.

If you know other directive that does the same thing, please let me know.
Any help is appreciated.

Thank you,
  Suwanto
Technical Details
Message-ID: <47tmng$anq@wizard.uark.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,57e7c0d8b71efcb8,start
X-Google-Attributes: gid11318c,public
From: suwanto@comp.uark.edu (Suwanto Suwanto)
Subject: please help me with directive ##
Date: 1995/11/09
Message-ID: <47tmng$anq@wizard.uark.edu>
X-Deja-AN: 119014265
organization: University Of Arkansas
newsgroups: gnu.gcc.help