17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PreProcessor<br />

Examples:<br />

#byte status = 3<br />

#byte b_port = 6<br />

struct {<br />

short int r_w;<br />

short int c_d;<br />

int unused : 2;<br />

int data : 4 ; } a _port;<br />

#byte a_port = 5<br />

...<br />

a_port.c_d = 1;<br />

Example<br />

Files:<br />

Also See:<br />

ex_glint.c<br />

#bit, #locate, #reserve, #word, Named Registers, Type Specifiers, Type Qualifiers,<br />

Enumerated Types, Structures & Unions, Typedef<br />

#case<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

#CASE<br />

None<br />

Will cause the compiler to be case sensitive. By default the compiler is case insensitive.<br />

When linking multiple compilation units, this directive must appear exactly the same in<br />

each compilation unit.<br />

Warning: Not all the <strong>CCS</strong> example programs, headers and drivers have been tested<br />

with case sensitivity turned on.<br />

Examples:<br />

#case<br />

int STATUS;<br />

void func() {<br />

int status;<br />

...<br />

STATUS = status; // Copy local status to<br />

//global<br />

}<br />

Example<br />

Files:<br />

Also See:<br />

ex_cust.c<br />

None<br />

_date_<br />

Syntax:<br />

__DATE__<br />

97

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

Saved successfully!

Ooh no, something went wrong!