OnlineWoerterBuecher.de
Internes

Lexikon


C preprocessor


(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)

In addition suitable contents:
[ 2 ] [ = ] [ actual argument ] [ ad ] [ ag ] [ ai ] [ al ] [ am ] [ an ] [ app ] [ ar ] [ arc ] [ arg ] [ argument ] [ as ] [ assignment ] [ at ] [ av ] [ B ] [ b ] [ be ] [ bi ] [ bit ] [ bo ] [ bs ] [ buffer ] [ C ] [ ca ] [ case ] [ cc ] [ ch ] [ char ] [ ci ] [ co ] [ com ] [ compiler ] [ compile time ] [ con ] [ cons ] [ CP ] [ cpp ] [ cr ] [ cu ] [ D ] [ de ] [ Decus cpp ] [ du ] [ E ] [ ec ] [ ed ] [ ee ] [ eg ] [ ER ] [ er ] [ era ] [ es ] [ et ] [ expression ] [ FF ] [ fi ] [ file ] [ fo ] [ for ] [ fr ] [ free ] [ G ] [ GC ] [ GCC ] [ gh ] [ gi ] [ gn ] [ GNU ] [ gr ] [ gu ] [ h ] [ hat ] [ hm ] [ hr ] [ ht ] [ id ] [ ie ] [ il ] [ in ] [ inline ] [ input ] [ int ] [ interpreted ] [ io ] [ ir ] [ is ] [ IT ] [ it ] [ K ] [ ke ] [ la ] [ ld ] [ Lex ] [ li ] [ line ] [ ls ] [ lu ] [ lv ] [ ly ] [ M ] [ ma ] [ macro ] [ magic ] [ magic number ] [ MB ] [ meter ] [ mm ] [ mo ] [ mod ] [ module ] [ mp ] [ ms ] [ mu ] [ N ] [ na ] [ nc ] [ ne ] [ ng ] [ ni ] [ nl ] [ nn ] [ no ] [ np ] [ ns ] [ nu ] [ numbers ] [ O ] [ om ] [ op ] [ operator ] [ pa ] [ param ] [ parameter ] [ parent ] [ parentheses ] [ pe ] [ ph ] [ phase ] [ pl ] [ port ] [ PR ] [ pr ] [ preprocessor ] [ process ] [ processor ] [ program ] [ programming ] [ query ] [ rc ] [ re ] [ rete ] [ ro ] [ ru ] [ run ] [ S ] [ sa ] [ sam ] [ sb ] [ se ] [ sh ] [ SI ] [ si ] [ sig ] [ so ] [ spec ] [ st ] [ standard ] [ struct ] [ su ] [ support ] [ sy ] [ T ] [ text ] [ th ] [ to ] [ tool ] [ tr ] [ ua ] [ ug ] [ um ] [ up ] [ us ] [ V ] [ va ] [ value ] [ ve ] [ vi ] [ VM ] [ VMS ] [ X ] [ Y ] [ Z ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (10665 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.1023 Seconds, with 17 Database-Queries
Zurück zur Startseite