From cd3299e92761826612c04c68dc3c0f976f5ddd48 Mon Sep 17 00:00:00 2001 From: Felix Lu Date: Tue, 22 Mar 2016 09:54:54 -0400 Subject: [PATCH] Add some missing documentation Add "private" keyword in stapref and use of "next" in functions. --- doc/langref.tex | 3 ++- man/cs/stapref.1 | 1 + man/stap.1.in | 3 ++- man/stapref.1 | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/langref.tex b/doc/langref.tex index 645d08acf..77a5a2c6a 100644 --- a/doc/langref.tex +++ b/doc/langref.tex @@ -2512,7 +2512,8 @@ The \texttt{if} command has the same syntax and semantics as used in C. \subsection{next} \index{next} The \texttt{next} statement returns immediately from the enclosing probe -handler. +handler. When used in functions, the execution will be immediately transferred +to the next overloaded function. \subsection{; (null statement)} diff --git a/man/cs/stapref.1 b/man/cs/stapref.1 index 26bafb08b..2da988033 100644 --- a/man/cs/stapref.1 +++ b/man/cs/stapref.1 @@ -41,6 +41,7 @@ Klíčová slova \[bu] \fBfor\fR \[bu] \fBfunction\fR \[bu] \fBglobal\fR +\[bu] \fBprivate\fR \[bu] \fBif\fR \[bu] \fBin\fR \[bu] \fBnext\fR diff --git a/man/stap.1.in b/man/stap.1.in index 4b7f8d881..ef652c05d 100644 --- a/man/stap.1.in +++ b/man/stap.1.in @@ -1193,7 +1193,8 @@ function will have a special "unknown" type with no return value. .TP .BR next Return now from enclosing probe handler. This is especially useful in -probe aliases that apply event filtering predicates. +probe aliases that apply event filtering predicates. When used in functions, +the execution will be immediately transferred to the next overloaded function. .TP .BR try " { STMT1 } " catch " { STMT2 }" Run the statements in the first block. Upon any run-time errors, abort diff --git a/man/stapref.1 b/man/stapref.1 index e157dcfd0..3c35a3681 100644 --- a/man/stapref.1 +++ b/man/stapref.1 @@ -41,6 +41,7 @@ Keywords \[bu] \fBfor\fR \[bu] \fBfunction\fR \[bu] \fBglobal\fR +\[bu] \fBprivate\fR \[bu] \fBif\fR \[bu] \fBin\fR \[bu] \fBnext\fR -- 2.43.5