Programming Tools Guide
Chapter 9, C programmer's productivity tools

Changing the value of a variable

Changing the value of a variable

The value of cscope as a browser becomes apparent when you want to see how a proposed change will affect your code. Suppose you want to change the value of a variable or preprocessor symbol. Before doing so, use the first menu item, "List references to this C symbol", to obtain a list of references that will be affected. Then use the editor to examine each one. This will help you predict the overall effects of your proposed change. Later, you can use cscope this way again to verify that your changes have been made.