Return; (Statement Block); While - Red Hat ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE Reference Manual

Systemtap language reference
Hide thumbs Also See for ENTERPRISE LINUX 5.4 - SYSTEMTAP LANGUAGE:
Table of Contents

Advertisement

return

statement1
;
statement2
The semicolon represents the null statement, or do nothing. It is useful as an optional separator
between statements to improve syntax error detection and to handle certain grammar ambiguities.
6.10. return
General syntax:
return EXP
The return statement returns the EXP value from the enclosing function. If the value of the function
is not returned, then a return statement is not needed, and the function will have a special unknown
type with no return value.

6.11. { } (statement block)

This is the statement block with zero or more statements enclosed within brackets. The following is the
general syntax:
{ STMT1 STMT2 ... }
The statement block executes each statement in sequence in the block. Separators or terminators
are generally not necessary between statements. The statement block uses the same syntax and
semantics as in C.

6.12. while

General syntax:
while (EXP) STMT
The while statement uses the same syntax and semantics as in C. In the statement above, while the
integer-valued EXP evaluates to non-zero, the parser will execute STMT.
31

Advertisement

Table of Contents
loading

Table of Contents