mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 01:57:14 +02:00
[merged from stable]
Sat May 18 00:44:35 2002 Tim Janik <timj@gtk.org> [merged from stable] * glib/tmpl/scanner.sgml: fix documentation for g_scanner_unexp_token().
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
Sat May 18 00:44:35 2002 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
[merged from stable]
|
||||||
|
|
||||||
|
* glib/tmpl/scanner.sgml: fix documentation for g_scanner_unexp_token().
|
||||||
|
|
||||||
2002-05-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2002-05-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* glib/tmpl/threads.sgml: Clarify recursion issues with
|
* glib/tmpl/threads.sgml: Clarify recursion issues with
|
||||||
|
@@ -434,25 +434,30 @@ documentation.
|
|||||||
|
|
||||||
<!-- ##### FUNCTION g_scanner_unexp_token ##### -->
|
<!-- ##### FUNCTION g_scanner_unexp_token ##### -->
|
||||||
<para>
|
<para>
|
||||||
Outputs a message resulting from an unexpected token in the input stream.
|
Outputs a message through the scanner's msg_handler, resulting from an
|
||||||
|
unexpected token in the input stream.
|
||||||
Note that you should not call g_scanner_peek_next_token() followed by
|
Note that you should not call g_scanner_peek_next_token() followed by
|
||||||
g_scanner_unexp_token() without an intermediate call to
|
g_scanner_unexp_token() without an intermediate call to
|
||||||
g_scanner_get_next_token().
|
g_scanner_get_next_token(), as g_scanner_unexp_token() evaluates the
|
||||||
|
scanner's current token (not the peeked token) to construct part
|
||||||
|
of the message.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
@scanner: a #GScanner.
|
@scanner: a #GScanner.
|
||||||
@expected_token: the expected token.
|
@expected_token: the expected token.
|
||||||
@identifier_spec: a string describing the expected type of identifier,
|
@identifier_spec: a string describing how the scanner's user refers to
|
||||||
or %NULL to use the default "identifier" string. This is used if
|
identifiers (%NULL defaults to "identifier").
|
||||||
@expected_token is #G_TOKEN_IDENTIFIER or #G_TOKEN_IDENTIFIER_NULL.
|
This is used if @expected_token is #G_TOKEN_IDENTIFIER
|
||||||
@symbol_spec: a string describing the expected type of symbol,
|
or #G_TOKEN_IDENTIFIER_NULL.
|
||||||
or %NULL to use the default "symbol" string. This is used if
|
@symbol_spec: a string describing how the scanner's user refers to
|
||||||
@expected_token is #G_TOKEN_SYMBOL.
|
symbols (%NULL defaults to "symbol").
|
||||||
@symbol_name: the name of the expected symbol. This is used if
|
This is used if @expected_token is #G_TOKEN_SYMBOL or
|
||||||
@expected_token is #G_TOKEN_SYMBOL.
|
any token value greater than #G_TOKEN_LAST.
|
||||||
|
@symbol_name: the name of the symbol, if the scanner's current token
|
||||||
|
is a symbol.
|
||||||
@message: a message string to output at the end of the warning/error, or %NULL.
|
@message: a message string to output at the end of the warning/error, or %NULL.
|
||||||
@is_error: if %TRUE it is output as an error. If %FALSE it is output as a
|
@is_error: if %TRUE it is output as an error. If %FALSE it is output as a
|
||||||
warning.
|
warning.
|
||||||
|
|
||||||
|
|
||||||
<!-- ##### USER_FUNCTION GScannerMsgFunc ##### -->
|
<!-- ##### USER_FUNCTION GScannerMsgFunc ##### -->
|
||||||
|
Reference in New Issue
Block a user