Renesas TM V.3.20A Especificaciones Pagina 525

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 762
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 524
Renesas Technology, Tools FAQs
Last Updated: March 21, 2000
Document Number: 01051295_e
Q.
In the preprocess command block #ifdef to #endif, which performs the condition compile, I get an error when I describe a double
quotation. Why? I don't get an error for any other character.
I assume that if the respective identifier is macro-defined with #ifdef, the operation will not progress.
A.
The NC79WA performs the #ifdef analysis after the token analysis. Therefore, the NC79WA will generate an error if the following
statement is enclosed in quotations.
#ifdef NEVER
" /*double quotation marks*/
#endif
Reference info:
The NC79WA specification is construction so that ANSI is dependent on the compiler (in other words, undefined). The
results from other compilers are as described below. As understood from these results, operations differ according to the
compiler.
(1) Will the next source be an error?
#ifdef NEVER
" /*double quotation marks*/
#endif
SUNOS cc no error
Solaris cc no error
gcc -traditional-cpp no error
gcc error
("unterminated string or character constant")
ncXXwa error
("new_line in string")
(2) Will the next source be an error?
#if 0
/* comment
#endif
SUNOS cc error
("missing */")
Solaris cc no error
("Warning: this file closed during the comment")
gcc -traditional-cpp error
("unterminated comment")
gcc error
("unterminated comment")
cpp30 error
("EOF in comment")
Vista de pagina 524
1 2 ... 520 521 522 523 524 525 526 527 528 529 530 ... 761 762

Comentarios a estos manuales

Sin comentarios