🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2546

A question about the pp-tokens in macro actual arguments.

#2546
From: Ron Guilmette
Date: Tue, 12 Mar 1991 02:55
14 lines
907 bytes
OK boys and girls.  It's stump-the-stars time again.

This one should be easy.

When a formal argument for a function-like macro is replaced (whilst a
macro call is being expanded) must (or may) the sequence of replacement
pp-tokens include leading and/or trailing whitespace if the corresponding
actual argument also contained leading or trailing whitespace (respectively)?

In other words, what should be the result of:

	#define PREFIX(x) prefix##x

	... PREFIX ( xxyyzz) ...
Technical Details
Message-ID: <4370@lupine.NCD.COM>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!infopiz!lupine!lupine.ncd.com

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!infopiz!lupine!lupine.ncd.com
From: rfg@lupine.ncd.com (Ron Guilmette)
Newsgroups: comp.std.c
Subject: A question about the pp-tokens in macro actual arguments.
Message-ID: <4370@lupine.NCD.COM>
Date: 12 Mar 91 02:55:09 GMT
Sender: rfg@NCD.COM
Organization: Network Computing Devices, Inc., Mt. View, CA
Lines: 14