diff options
author | Yao Qi <yao@codesourcery.com> | 2014-07-25 19:35:23 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-07-30 17:38:24 +0800 |
commit | a1c7835a2f1755e815a662e2d6caeb6f9e1b1ecc (patch) | |
tree | fae8df55ab0fe4fa7b382ad6f530075cc13df3ad /gdb/parse.c | |
parent | 976411d6b6aa5cae05259eb92b87a04262052e09 (diff) | |
download | binutils-a1c7835a2f1755e815a662e2d6caeb6f9e1b1ecc.zip binutils-a1c7835a2f1755e815a662e2d6caeb6f9e1b1ecc.tar.gz binutils-a1c7835a2f1755e815a662e2d6caeb6f9e1b1ecc.tar.bz2 |
Update comments to operator_check
Hello,
I happen to read the code and find the comments to operator_check are
incorrect. This patch is to fix the comments per my understanding.
The comments and field operator_check was added by this patch
https://sourceware.org/ml/gdb-patches/2010-04/msg00556.html
but the inconsistency between code and comments wasn't pointed out during
the review.
gdb:
2014-07-30 Yao Qi <yao@codesourcery.com>
* parser-defs.h (struct exp_descriptor) <operator_check>: Update
comments.
* parse.c (exp_iterate): Update comments.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 105d0cd..47533bb 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -1835,12 +1835,12 @@ operator_check_standard (struct expression *exp, int pos, return 0; } -/* Call OBJFILE_FUNC for any TYPE and OBJFILE found being referenced by EXP. - The functions are never called with NULL OBJFILE. Functions get passed an - arbitrary caller supplied DATA pointer. If any of the functions returns - non-zero value then (any other) non-zero value is immediately returned to - the caller. Otherwise zero is returned after iterating through whole EXP. - */ +/* Call OBJFILE_FUNC for any objfile found being referenced by EXP. + OBJFILE_FUNC is never called with NULL OBJFILE. OBJFILE_FUNC get + passed an arbitrary caller supplied DATA pointer. If OBJFILE_FUNC + returns non-zero value then (any other) non-zero value is immediately + returned to the caller. Otherwise zero is returned after iterating + through whole EXP. */ static int exp_iterate (struct expression *exp, |