🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #275

Re: Problem building InterViews on AIX 3.2 / IV 2.6 ibm rs6000

#275
From: Howard Wilkinson
Date: Thu, 09 Apr 1992 19:30
23 lines
1380 bytes
In article <1992Mar25.214136.3649@kong.gsfc.nasa.gov>, dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC) writes:
> Has anyone encountered a problem such that the cpp on a machine
> sees a line like 
> /**/ # isnt this supposed to be a comment
> 
> and tries to process it anyway.
> Is there some fix for this (like a flag to set or am I using an
> obselete cpp technique here or something?) 
> 
> Thanks 
> Brian Dealy
> dealy@kong.gsfc.nasa.gov

/**/ is used as a paste token in early K&R pre-processors. Thus
any pair of tokens connected by only /**/ would be pasted together.
/* */ is treated as white space which is the ANSI convention for
/**/.

ANSI replaced it by ## we think.

Hope this adds more information than noise.

Howard.
Technical Details
Message-ID: <1101@sarah.coh-uk.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!pyrltd!coh-uk!howard
References: <1992Mar25.214136.3649@kong.gsfc.nasa.gov> <10117@inews.intel.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!pyrltd!coh-uk!howard
From: howard@coh-uk.UUCP (Howard Wilkinson)
Newsgroups: comp.windows.interviews,comp.unix.aix
Subject: Re: Problem building InterViews on AIX 3.2 / IV 2.6 ibm rs6000
Summary: The replacements of /**/ tokens in K&R compilers was often used
  to fool the pre-processor into pasting two tokens together.
  Ansi uses ## we think.
Message-ID: <1101@sarah.coh-uk.UUCP>
Date: 9 Apr 92 19:30:57 GMT
References: <1992Mar25.214136.3649@kong.gsfc.nasa.gov> <10117@inews.intel.com>
Followup-To: poster
Organization: Coherent Technology Ltd., Fareham, England
Lines: 23