Inspect Manual
Using Inspect With C
Inspect Manual—429164-006
8-4
Examples
Specifying code locations by line number
If no statement begins at the line number you specify, Inspect issues this warning:
Inspect then uses the statement starting at the given line number. If more than one
statement begins on the line you specify, Inspect uses the start of the first
statement.
The STATEMENT code unit and C statements
Inspect recognizes these as statements:
Simple C statements that are not part of a compound or composite statement
C statements in a compound statement, delimited by braces
The parts of a composite C statement (if, for, and so on)
Using the FROM Clause in a Command List
You can use the FROM clause only once in a command list.
Examples
Given a function named cfunct that contains a labeled statement named
error_fix, you can specify these code locations:
These example code locations assume the current scope path #cfunct:
** Inspect warning 117 ** A subsequent line number is assumed: line-number
Code Location Specifies
#cfunct The primary entry point of the function cfunct.
#cfunct.error_fix The code immediately following the label error_fix.
Code Location Specifies
cfunct The primary entry point of the function cfunct.
error_fix = 3S Three statements past the label error_fix.