The information in this article applies to:
SUMMARYTo maintain ANSI compliance, the above C versions evaluate line continuation characters "\" before inline comment tokens "//". This is a change from C version 5.1 behavior, which ignores line continuation characters within inline comments. This order of evaluation may results in the following error in the sample below:
MORE INFORMATIONSection 2.1.1.2 of the ANSI Draft proposal (dated December 7, 1988) states the order in which source code translation is to take place. The second and third steps are paraphrased below. 2. Each instance of a new-line character and an immediately preceding backslash character is deleted, splicing physical source lines to form logical source lines. ...As this indicates, the line concatenation should be performed before any and all evaluation of preprocessing tokens and comments. The change in interpretation can cause problems with programs that depend on the C 5.1 interpretation. The problem usually manifests itself in sections of code being ignored. This can be seen in the following program, which behaves differently under the different compilers. Sample Code
Additional query words: 8.00 8.00c 9.00
Keywords : kbcode kbCompiler kbVC100 kbVC150 kbVC200 kbVC400 kbVC500 kbVC600 |
Last Reviewed: July 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |