|
|
C preprocessor
<tool, programming> (cpp) The standard Unix
macro-expansion utility run as the first phase of the C
compiler, cc. Cpp interprets lines beginning with "#" such
as
#define BUFFER_SIZE 256
as a textual assignment giving the symbol BUFFER_SIZE a
value "256". Symbols defined with cpp are traditionally given
upper case names to distinguish them from C identifiers. This
symbol can be used later in the input, as in
char input_buffer[BUFFER_SIZE];
This use of cpp to name constants, rather than writing these
magic numbers inline, makes a program easier to read and
maintain, especially if there is more than one occurrence of
BUFFER_SIZE all of which must all have the same value.
Cpp macros can have parameters:
#define BIT(n) (1<<(n))
This can be used with any appropriate actual argument:
msb = BIT(nbits-1);
Note the parentheses around the "n" in the definition of BIT.
Without these, operator precedence might mean that the
expression substituted in place of n might not be interpreted
correctly (though the example above would be OK).
Cpp also supports conditional compilation with the use of
#ifdef SYMBOL
...
#else
...
#endif
and
#if EXPR
...
#else
...
#endif
constructs, where SYMBOL is a Cpp symbol which may or may not
be defined and EXPR is an arithmetic expression involving only
Cpp symbols, constants and C operators which Cpp can evaluate
to a constant at compile time.
Decus cpp is a free implementation for VMS.
The most widely used C preprocessor today is the GNU CPP,
distributed as part of GCC.
(2001-12-31)
Try this search on OneLook / Google
Nearby terms:
cpo « cpp « cppp « C preprocessor » C Programmer's Disease » C-Prolog » cproto
This article was derived from the Free Online Dictionary of Computers and is available under ther terms of the GNU Free Documentation License.
History Channel: Crusades - Quest for PowerHistory Channel: Crusades - Quest for Power The West must march to the defense of the East. All should go, rich and poor alike and fight a righteous war to free and recapture the Holy Lands from the Infidels. Choose the Eastern or Western campaign. Every move you make has life and death consequences. Window 98/ME/2000/NT/XP More ...
Face FactoryFace Factory You don't have to be able to draw in order to create fun and colorful faces! Face Factory lets kids of all ages create a huge variety of faces from pre-drawn parts. It's a great way to develop creative interest in children! Windows 95/98/ME/NT/2000/XP More ...
IBM PIII 700MHz 256MB 20GB CD No FDD 13.3'' - BIBM PIII 700MHz 256MB 20GB CD No FDD 13.3'' - B ** IBM ThinkPad Pentium III 700 MHz Notebook **Featuring an Intel Pentium III 700 MHz processor, 256 MB RAM and a 20 GB hard drive, this IBM ThinkPad iSeries notebook is ready to go to work! It features a CD-ROM drive, integrated audio, and video. Get connected to the Internet with either the 56K Modem or Ethernet. Get brilliant color display with the 13.3-inch TFT screen. Just supply the operating system and load the drivers to complete this IBM ThinkPad iSeries notebook!General Features:- Grade B - Intel Pentium III 700 MHz processor- 256 MB RAM (192 MB maximum)- 20 GB hard disk drive- CD-ROM drive (speeds may vary)- No floppy disk drive- Silicon Motion SM712 integrated video w4 MB- Integrated audio with built-in speakers- 56K integrated modem- Integrated Ethernet controller- 13.3-inch TFT LCD with 1024 x 768 maximum resolution- 87-key keyboard with Track Point- Lithium-ion battery packExpansion Slots:- Two (2) PCMCIA type I/II slots or one (1) type IIII/O Ports:- One (1) PS/2 port- One (1) 15-pin standard VGA connector- One (1) 25-pin standard parallel port- Two (2) USB ports- One (1) RJ-45 standard Ethernet jack- One (1) RJ-11 standard phone jack- Microphone and headphone jackRegulatory Approvals:- UL- FCC- CE- VCCI- A-Tick- C-Tick- BSMIPackage Includes:- IBM ThinkPad iSeries refurbished notebook- AC adapter (100-240V, 50/60Hz)Notes:- Model: 1171-9AU- No floppy disk drive- The battery is not covered under the warranty- The battery is not guaranteed to hold a charge- Operating system, drivers, documentation, etc. are not included. Compatibility/Requirements/Disclosures: ** Requirements *** Operating System (OS)* Drivers for installed devices* Available power outlet** Refurbished Notebook Grades *** Grade B * Notebook is in very good condition * Has Cosmetic Blemishes, examples of which are (but not limited to): * Scratches in case * Scratches in the screen * Hairline crack in case * Dead pixels (5 or less) * Missing doors * May be missing manual, drivers, operating system, carrying cases * Battery is not guaranteed to hold a full charge * Battery is not covered under warranty * All specific issues will be noted in the ad * Etc. More ...
Samsung USB Presentation Remote with Laser PointerSamsung USB Presentation Remote with Laser Pointer ** Samsung Pocket USB Presentation Remote w/Laser Pointer **This Samsung Little Pocket Presenter is designed to make you a master of presentations! The little pocket presenter integrates a function of a laser pointer and the ability to control the Next, Preview, and Search functions from a distance of up to 30 feet!General Features:- USB receiver- Plug and Play- Works at a distance of up to 30 feet- No software or PC programming requiredTransmitter Features:- Laser Button: On-and-Off control button- Next Button: Next slide control- Previews Button: Slide preview control- Search Button: Slide search controlReceiver Features:- LED Blinking: Connected and waiting for ID- LED Off: ID received and waiting for command- LED Off-On-Off: Every time a command is receivedRegulatory Approvals:- FCC- CE- MICRetail Blister Pack Includes:- USB Receiver- TransmitterNotes:- UPC Code: 6 81747 90967 4 Compatibility/Requirements/Disclosures:** Requirements **- Windows 98SE/Me/2000/XP- Mac (OS 9.2 and above)- Linux (Redhat 9.0 and above)- Available USB port More ...
Fellowes Earglove Pro Mobile Phone HeadsetFellowes Earglove Pro Mobile Phone Headset ** Fellowes Earglove Pro Mobile Phone Headset **Earglove Pro headset for all phones with standard 2.5mm headset jack! High-Tech microphone and speaker technology reduces background noise. Special ergonomic design adds optimal comfort and a secure fit. Dual ported microphone allows for optimal reception on both ends.General Features:- Universal 2.5 mm jack- Noise-canceling microphone for crystal clear communication- High-fidelity speaker- One-touch button - depending on the phone model it could act as a mute, answer/end call or voice activation button- Soft, padded earhook for maximum comfort and grip- Shirt Clip prevents tangling- Body Glove LogoRetail Package Includes:- Body Glove Earglove Pro Mobile Phone HeadsetNotes:- Item #: 97049-99- UPC: 0 77511 97049 8 Compatibility/Requirements/Disclosures:** Requirements *** Mobile Phone with 2.5 mm jack More ...
Fellowes 150W DC/AC Mobile Power InverterFellowes 150W DC/AC Mobile Power Inverter ** Fellowes 150W DC/AC Mobile Power Inverter **With this Fellowes Mobile Power Inverter you canefficiently and reliably power a wide varietyof household AC products, simply plug into a12-Volt outlet in your car or boat! Power yourTV, computer, VCR's and more and when on the Go! Order yours today!General Features:- Turns Cigarette lighter into standard AC Plug- 150 watts of continuos power- Automatically shuts down if power levels areexceeded- 12Vdc- 15A Max.- Output: 115Vac , 60Hz- On/Off Switch- POWER LED- FAULT LEDRetail Package Includes:- Fellowes Mobile Power Inverter- ManualNotes:- Model: 99428 Compatibility/Requirements/Disclosures: ** Requirements *** Available 12-Volt Outlet More ...
|