Re: [sv-bc] RE: C-standard

From: Krishanu Debnath <krishanu_at_.....>
Date: Tue Feb 14 2006 - 01:52:24 PST
[edited before reply to fix top-posting]
> 
>> -----Original Message-----
>> From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On
>> Behalf Of Greg Jaxon
>> Sent: Tuesday, February 14, 2006 1:04 AM
>> To: sv-bc@eda.org
>> Subject: Re: [sv-bc] white space at the end of macro text
>>
>> Steven Sharp wrote:
>>> Since SystemVerilog (i.e. IEEE Std 1800) has added quote-
>> creation and
>>> token-pasting operations, it needs to specify the white space
>> treatment
>>> for macro expansion more precisely.
>> The ANSI C preprocessor is an example standard worth reviewing
>> as these
>> SV features are clarified.  X3J11's working drafts are
>> available online at:
>> http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.pdf
>>
>> Relevant sections are: 5.1.1.2
>>                         6.4
>>                         6.10.3
>>
>> It appears that leading and trailing whitespace is trimmed from
>> preprocessor token sequences.  Treatment of embedded whitespace
>> is not standardized except that /*comments*/ turn into a single
>> space.  So, in conforming programs, string literals produced
>> by the preprocessor are not character-for-character portable.
>>
>> Greg Jaxon
> 
>Bresticker, Shalom wrote:
>>From the web page at http://www.open-std.org/jtc1/sc22/wg14/,
> it appears that the most up to date document on C is at
> http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf.
> 
> I don't know whether there are any substantive differences between them.
> 
> Shalom
> 

n843.pdf is c99 standard. I guess it is a public draft, and it is not latest.
Last c99 public draft is n869.pdf(c99 standard is not free , btw).

n1124.pdf is a draft of the _next_ version of the standard (post-C99). it's
basically the C99 standard with a few corrections(TC2 included IIRC).


Krishanu
Received on Tue Feb 14 01:51:06 2006

This archive was generated by hypermail 2.1.8 : Tue Feb 14 2006 - 01:51:27 PST