Previous Next
Symbols with the same name

  1. In the definition of struct pico_atmt , notice that one of its fields is the unsigned short flags . Let's look to see if this symbol name is unique in the project.
  2. In the Text view, double-click on flags .
    flags is highlighted.
  3. Choose Show > Symbol(s) flags....
    SNiFF+ opens the Choose Symbol dialog. The Choose Symbol dialog opens when there is more than one symbol in the project called
    flags . As you can see, 6 different symbols in the project have the name flags .
    If there was only one symbol called
    flags , the Source Editor would now be positioned at its declaration.

    Click for full size, then use Back button

    You may now want to see in which files the symbols are declared.

You may want to limit the list to show only entries in the current file in the Source Editor ( pico.h ).
  1. Enable the Scan only included files button .
    Now only two entries are shown.
  2. Double-click on the second entry in the dialog.
    The Source Editor appears and highlights the declaration of int
    flags in the struct mouse_struct .
Review
In this chapter, you started from the typedef
PATMT and browsed its declaration. You then learned that PATMT represented the struct pico_atmt and then looked at field flags of the struct. By choosing the Show > Symbol(s) flags command, you determined that the symbol name flags was not unique in the project. The last thing you did was to load another declaration of flags in the Source Editor.
In the next chapter you'll learn how to use the Retriever - a textual search tool - for browsing. The string that you'll be searching for is "MOUSEPRESS".