DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
C programmer's productivity tools

Conditional compilation directives

Conditional compilation directives such as #if, #ifdef, and #ifndef allow you to put more than one definition of a function in your program, provided that after the preprocessor interprets the directives, only one definition of the function is passed on to the compiler. These conditional compilation directives are ignored by cscope. If there are multiple definitions of a function, cscope recognizes only the first definition that appears in the source text; this occurs even if the normal interpretation of the preprocessor directives would cause a different definition to be compiled.

A consequence of this is that the correct definition of a function may not be accessible via the ``List functions called by this function'' and ``List functions calling this function'' menu items. You may obtain a list of lines containing the name of the function using the ``List lines containing this text string'' menu item. References to the function may be obtained using the ``List references to this C symbol'' menu item.


Next topic: Examples of using cscope
Previous topic: Stacking cscope and editor calls

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003