04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Language Extensions<br />

3.4.4 Dollar signs in identifiers<br />

Dollar ($) signs are permitted in identifiers.<br />

Note<br />

When compiling with the --strict option, you can use the --dollar command-line<br />

option to permit dollar signs in identifiers.<br />

Example<br />

#define DOLLAR$<br />

See also<br />

• --dollar, --no_dollar on page 2-51<br />

• --strict, --no_strict on page 2-119.<br />

3.4.5 Top-level declarations<br />

A C input file can contain no top-level declarations.<br />

Errors<br />

A remark is issued if a C input file contains no top-level declarations.<br />

Note<br />

Remarks are not displayed by default. To see remark messages, use the compiler option<br />

--remarks.<br />

See also<br />

• --remarks on page 2-111.<br />

3.4.6 Benign redeclarations<br />

Benign redeclarations of typedef names are permitted. That is, a typedef name can be<br />

redeclared in the same scope as the same type.<br />

Example<br />

typedef int INT;typedef int INT; /* redeclaration */<br />

<strong>ARM</strong> DUI 0348C Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. 3-13<br />

ID101213<br />

Non-Confidential,

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!