Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: C preprocessor


Related Topics

In the News (Sun 15 Nov 09)

  
  C# languages preprocessor directives
C# preprocessor is fundamentally very similar to C preprocessor and the whole concept in C# has been taken from C language specification.
The C preprocessor is a macro processor that is used automatically by the C compiler to transform your program before actual compilation.
The directive `#error' causes the preprocessor to report a fatal error and the directive `#warning' is like the directive `#error', but causes the preprocessor to issue a warning and continue preprocessing.
www.csharphelp.com /archives/archive36.html   (976 words)

  
 The C Preprocessor: 1. The C Preprocessor
The C preprocessor is designed for C-like languages; you may run into problems if you apply it to other kinds of languages, because it assumes that it is dealing with C. For example, the C preprocessor sometimes outputs extra white space to avoid inadvertent C token concatenation, and this may cause problems with other languages.
The C preprocessor normally has several predefined macros that vary between machines because their purpose is to indicate what type of system and machine is in use.
One of the jobs of the C preprocessor is to inform the C compiler of where each line of C code came from: which source file and which line number.
gcc.gnu.org /onlinedocs/gcc-2.95.3/cpp_1.html   (9907 words)

  
  Objective-C FAQ
It's a C preprocessor construct to avoid multiple inclusions of the same file.
It's the C type of a message selector; it's often defined as a (uniqued) string of characters (the name of the method, including colons), but not all compilers define the type as such.
It's the C type of a method implementation pointer, a function pointer to the function that implements an Objective-C method.
www.faqs.org /faqs/computer-lang/Objective-C/faq   (1998 words)

  
  Preprocessor
Overuse of the C preprocessor is considered bad style, especially in C++.
Stroustrup introduced features such as templates into C++ in an attempt to make the C preprocessor irrelevant; however, his file inclusion alternative was never seriously considered as it was a poor imitation of the C preprocessor's file inclusion mechanism.
The m4 preprocessor is general-purpose; Oracle Pro*C converts embedded PL/SQL into C. Preprocessing can be quite a cumbersome in incremental parsing[?] or incremental lexial analysis[?] because changes on definition of rules of preprocessing can affect the entire text to be preprocessed.
www.ebroadcast.com.au /lookup/encyclopedia/c_/C_preprocessor.html   (190 words)

  
 C/C++ Language Reference   (Site not responding. Last check: 2007-10-15)
The effect of each preprocessor directive is a change to the text of the source code, and the result is a new source code file, which does not contain the directives.
The syntax of preprocessor directives is independent of but similar to the syntax of the rest of the C and C++ languages, and the lexical conventions of the preprocessor differ from those of the compiler.
The preprocessor recognizes the normal C and C++ tokens, as well as other characters that enable the preprocessor to recognize file names, the presence and absence of white space, and the location of end-of-line markers.
www.nersc.gov /vendor_docs/ibm/vac/language/ref/preprocessor_directives.pcl.htm   (206 words)

  
 Using a C preprocessor as an HTML authoring tool
C programming language specifies, in addition to the statements of the language, a set of preprocessing directives.
This means that one can use a C compiler as a general-purpose preprocessor for files other than C source programs, too.
It depends on the complexity of the desired preprocessing; the usefulness of a C preprocessor for HTML documents is relatively limited.
www.cs.tut.fi /~jkorpela/html/cpre.html   (931 words)

  
 C Language - The Preprocessor
Preprocessor is a program that processes the code before it passes through the compiler.
Preprocessor directives are placed in the source program before the main line before the source code passes through the compiler it is examined by the preprocessor for any preprocessor directives.
Preprocessor directives follow the special syntax rules and begin with the symbol #bin column1 and do not require any semicolon at the end.
www.exforsys.com /tutorials/c-language/the-preprocessor-in-c.html   (621 words)

  
 Ax51 User's Guide: C Preprocessor
The Ax51 Assembler includes a standard C preprocessor that is identical with the macro preprocessor in the Cx51 Compiler (with a few minor exceptions).
The C preprocessor processes the source text of a source file before it is actually assembled.
When the C preprocessor is enabled, C preprocessing is the first thing the assembler does.
www.keil.com /support/man/docs/a51/a51_mp_c.htm   (179 words)

  
 Preprocessor Summary
A preprocessor performs preliminary operations on data, such as organization, formatting, and computation, before that data is passed on for further processing.
While this use of a preprocessor for code reuse is simple, it is also slow and very inefficient and requires the additional use of conditional compilation to avoid multiple inclusions of a given header file.
Syntactic preprocessors are typically used to customize the syntax of a language, extend a language by adding new primitives or turn a generic programming language into a Domain-Specific Programming Languages.
www.bookrags.com /Preprocessor   (1054 words)

  
 The C Preprocessor vs D - D Programming Language 2.0 - Digital Mars
This is used in C to adjust the alignment for structs.
The preprocessor language is fundamentally different in concept than C, for example, whitespace and line terminators mean things to the preprocessor that they do not in C. The D Way
D template mixins superficially look just like using C's preprocessor to insert blocks of code and parse them in the scope of where they are instantiated.
www.digitalmars.com /d/pretod.html   (1591 words)

  
 Preprocessor directives   (Site not responding. Last check: 2007-10-15)
Preprocessor directives are lines included in the code of our programs that are not program statements but directives for the preprocessor.
The preprocessor is executed before the actual compilation of code begins, therefore the preprocessor digests all these directives before any code is generated by the statements.
Because preprocessor replacements happen before any C++ syntax check, macro definitions can be a tricky feature, but be careful: code that relies heavily on complicated macros may result obscure to other programmers, since the syntax they expect is on many occasions different from the regular expressions programmers expect in C++.
www.cplusplus.com /doc/tutorial/preprocessor.html   (1152 words)

  
 CPP
The C preprocessor, often known as cpp, is a macro processor that is used automatically by the C compiler to transform your program before compilation.
C constructs that have no traditional C equivalent, and problematic constructs which should be avoided.
This might be useful when running the preprocessor on something that is not C code, and will be sent to a program which might be confused by the linemarkers.
electricrain.com /fenner/openwrt/man/cpp.1.html   (3233 words)

  
 A preprocessor is a program that takes text and...   (Site not responding. Last check: 2007-10-15)
However, his file inclusion alternative was never seriously considered as it was a poor imitation of the C preprocessor's file inclusion mechanism.
C converts embedded PL/SQL into C. Preprocessing can be quite cumbersome in incremental parsing or incremental lexical analysis because changes to preprocessing rules can affect the entire text to be preprocessed
A typical example in C is: #include int main (void) The preprocessor replaces the line #include with the system header file of that name, which facilitates use of the printf() function.
www.geodatabase.de /Preprocessor   (251 words)

  
 Using the C/C++ preprocessor.
The preprocessor works as a script language for the C/C++ complier, for example there are a if command in the preprocessor for C/C++ and only if the condition is true the code within the if will be complied...
Anyway this preprocessor works thte way that it include the file specified to the current source file, if the file that will be included exist in the same directry in a didrectory "neer" the file the " can be used insted of.
C#s resemblances to C++, Java, and C make it easier to learn, but theres a downside: C# programmers often continue to use older techniques when far better alternatives are available.
www.osix.net /modules/article/?id=240   (831 words)

  
 Info: (cpp.info.gz) Traditional Mode
This kluge prevents the traditional preprocessor from issuing errors on such comments.) * Preprocessing directives are recognized in traditional C only when their leading `#' appears in the first column.
This is impossible in ISO C. * None of the GNU extensions to the preprocessor are available in traditional mode, with the exception of a partial implementation of assertions, and those may be removed in the future.
This did not exist in traditional C. * The `U' and `LL' integer constant suffixes, which were not available in traditional C. (Traditional C does support the `L' suffix for simple long integer constants.) You are not warned about uses of these suffixes in macros defined in system headers.
www.mingw.org /cgi-bin/info2html/info2html?(cpp.info.gz)Traditional%2520Mode   (793 words)

  
 appendix E -- Differences Between Java and C/C++
Although most advocates of C++ discourage the use of the preprocessor, which was inherited from C, it is still widely used by most C++ programmers.
C++ added classes and in doing so provided class methods, which are functions that are connected to classes.
The standard technique adopted among C and C++ programmers is that of using null-terminated arrays of characters to represent strings.
docs.rinet.ru /Jintra/appe.htm   (1513 words)

  
 L8 The C Preprocessor; enum
C will complain if you try to assign a value to V or to W which is NOT in this enum class.
This is difficult to achieve without the C preprocessor.
#if’s are used to tailor C programs for different operating systems, and for different compilers, so one source text holds the code for all the versions.
www.cs.duke.edu /~raw/cps149s/L8.html   (953 words)

  
 The C Preprocessor: Macros   (Site not responding. Last check: 2007-10-15)
Previous GNU preprocessor implementations and documentation were incorrect on this point, insisting that a function-like macro that takes a single argument be passed a space if an empty argument was required.
These macros are defined by all GNU compilers that use the C preprocessor: C, C++, and Objective-C. Their values are the major version, minor version, and patch level of the compiler, as integer constants.
The C preprocessor normally predefines several macros that indicate what type of system and machine is in use.
www.mhatt.aps.anl.gov /dohn/programming/gcc/cpp_3.html   (6909 words)

  
 C Preprocessor Trick For Implementing Similar Data Types
A C preprocessor trick for handling many similar structured data types, such as packets in a communication protocol, is described and justified.
C programmers have learned through bitter experience that inventing new syntax confuses maintenance programmers, and therefore causes bugs.
Fancy preprocessor tricks also tend to find bugs in preprocessors, and cause headaches when the code is ported.
liw.iki.fi /liw/texts/cpp-trick.html   (740 words)

  
 Hour 23 - The C Preprocessor
In fact, the C preprocessor uses the terminology macro names and macro body to refer to the symbolic names and the constants.
The #define directive is the most common preprocessor directive, which tells the preprocessor to replace every occurrence of a particular character string (that is, a macro name) with a specified value (that is, a macro body).
The C preprocessor also enables you to include additional source files to the program or compile sections of C code conditionally.
aelinik.free.fr /c/ch23.htm   (3446 words)

  
 Chapter 9: The C Preprocessor
The syntax of the preprocessor is different from the syntax of the rest of C in several respects.
It's also possible to run into problems when a preprocessor substitution does not do what you expected it to, because the preprocessor does not respect the structure of C statements and expressions (but you expected it to).
For the simple uses of the preprocessor we'll be discussing, you shouldn't have any of these problems, but you'll want to be careful before doing anything tricky or outrageous with the preprocessor.
www.eskimo.com /~scs/cclass/notes/sx9.html   (360 words)

  
 The C Preprocessor - The C Preprocessor
A header file is a file containing C declarations and macro definitions (see section Macros) to be shared between several source files.
The C preprocessor builds on this feature by offering a command by which you can control the feature explicitly.
The output from the C preprocessor looks much like the input, except that all preprocessor command lines have been replaced with blank lines and all comments with spaces.
www.slac.stanford.edu /comp/unix/gnu-info/cpp_1.html   (10867 words)

  
 mcpp -- a portable C preprocessor with Validation Suite   (Site not responding. Last check: 2007-10-15)
C preprocessor has existed ever since the beginning of C language.
Preprocessors of various behavior modes are able to be generated from the source code.
Can be built either as a compiler-specific preprocessor to replace the resident preprocessor of a particular compiler system, or as a compiler-independent command, or even as a subroutine called from some other main program.
mcpp.sourceforge.net   (366 words)

  
 [Courses] [C] Beginner's Lesson Nine: The C Preprocessor
The C preprocessor uses an entirely different syntax than the C compiler.
The preprocessor is nothing more than a specialized text editor, and it has no understanding of the C programming language.
Conditional Compilation ----------------------- The preprocessor allows the programmer to change the way code is generated through the use of conditional compilation.
www.linuxchix.org /pipermail/courses/2002-November/000986.html   (867 words)

  
 Cprogramming.com - Tutorials - C Preprocessor Tricks
The C preprocessor modifies a source code file before handing it over to the compiler.
You're most likely used to using the preprocessor to include files directly into other files, or #define constants, but the preprocessor can also be used to create "inlined" code using macros expanded at compile time and to prevent code from being compiled twice.
The slash tells the preprocessor that the macro continues to the next line, not that the line is a continuation from a previous line.
www.cprogramming.com /tutorial/cpreprocessor.html   (1885 words)

  
 CS 11: Compiling C programs   (Site not responding. Last check: 2007-10-15)
C source code files are always compiled into binary code by a program called a "compiler" and then executed.
What the preprocessor does is convert the source code file you write into another source code file (you can think of it as a "modified" or "expanded" source code file).
C compilers do not allow you to use a function unless it has previously been declared or defined in that file;
www.cs.caltech.edu /courses/cs11/material/c/mike/misc/compiling_c.html   (1146 words)

  
 Wave: a Standard conformant C++ preprocessor library - The Code Project - C++ / MFC
The C++ preprocessor is a macro processor that under normal circumstances is used automatically by your C++ compiler to transform your program before the actual compilation.
The Wave C++ preprocessor is not a monolithic application, it's rather a modular library, which exposes mainly a context object and an iterator interface.
The C++ lexers expose the mentioned unified interface, so that the C++ preprocessor iterator may be used with both of them.
www.codeproject.com /cpp/wave_preprocessor.asp   (2780 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.