]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Reword/clarify the VG_(parse_enum_set) comment.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 19 Apr 2014 10:27:28 +0000 (10:27 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 19 Apr 2014 10:27:28 +0000 (10:27 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13899

include/pub_tool_libcbase.h

index 951a702dc9b4f2167029f907ce7661ae52fde8b0..31072239cebcf2b7596aafb118e8993bfad32251 100644 (file)
@@ -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,