On 09/29/2011 01:19 PM, Dodji Seketeli wrote:
+     For a token that is /not/ an argument for a parameter of a
+     function-like macro, each yI is the spelling location of the Ith
+     token of the replacement-list in the definition of the macro.
+     "Spelling location" means the location of the place in the source
+     where the token has been spelled.
+
+     For a token that is an argument for a parameter P of a
+     function-like macro, yI is the spelling location of P in the
+     replacement-list of the macro.

I think think this can be simpler:

yI is the location of the token in the macro definition, either of the token itself or of a macro parameter that it replaces.

+     In #2, there is a macro map for the expansion of PLUS.  PLUS is

The macro map doesn't seem to me to be in #2, but the expansion is. Let's reword that to "There is a macro map for the expansion of PLUS in #2".

+     x0 is the virtual location for the argument token "1",
+     and x2 is the virtual location for the argument token "2".  */

Are they actually virtual in this case? I thought they would be the source locations in #2 since the expanding context isn't another macro.

Jason

Reply via email to