aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphilippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9>2014-04-19 10:27:28 +0000
committerphilippe <philippe@a5019735-40e9-0310-863c-91ae7b9d1cf9>2014-04-19 10:27:28 +0000
commita7d70b172b71cdf969ecfdfec7a6c36d1d0419f7 (patch)
treec431fff5e24c9ee49b74e28a10d1b747b50d8310
parent0c2923fb395e1dd3aa43e36d73a164e5718dcad6 (diff)
downloadvalgrind-a7d70b172b71cdf969ecfdfec7a6c36d1d0419f7.tar.gz
Reword/clarify the VG_(parse_enum_set) comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13899 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r--include/pub_tool_libcbase.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/pub_tool_libcbase.h b/include/pub_tool_libcbase.h
index 951a702dc..31072239c 100644
--- a/include/pub_tool_libcbase.h
+++ b/include/pub_tool_libcbase.h
@@ -112,17 +112,17 @@ extern HChar* VG_(strtok) (HChar* s, const HChar* delim);
extern Bool VG_(parse_Addr) ( const HChar** ppc, Addr* result );
/* Parse an "enum set" made of one or more words comma separated.
- The allowed word values are given in tokens, separated
- by comma.
- If a word in tokens is found in input,
- the corresponding bit will be set in *enum_set
- (words in tokens are numbered starting from 0).
- The special token - in tokens can be used to indicate
- that the corresponding bit position cannot be set.
- The words none and all can be used to indicate an empty
- enum_set (0) or an enum_set with all bits corresponding
- to tokens set. If none or all is given, no other word
- can be given in input.
+ The allowed word values are given in 'tokens', separated by comma.
+ If a word in 'tokens' is found in 'input', the corresponding bit
+ will be set in *enum_set (words in 'tokens' are numbered starting from 0).
+ Using in 'tokens' the special token "-" (a minus character) indicates that
+ the corresponding bit position cannot be set.
+ In addition to the words specified in 'tokens', VG_(parse_enum_set)
+ automatically accept the words "none" and "all" to indicate respectively
+ an empty enum_set (0) or an enum_set with all bits corresponding
+ to the words in tokens set.
+ If "none" or "all" is present in 'input', no other word can be given
+ in 'input'.
If parsing is successful, returns True and sets *enum_set.
If parsing fails, returns False. */
extern Bool VG_(parse_enum_set) ( const HChar *tokens,