Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scdoc: fix string comparison in parser
Signed-off-by: Tim Blechmann <tim@klingt.org>
- Loading branch information
52c7466
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to use string constants (like symbols) to avoid using strcmp()
52c7466
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but where does method_type come from? is it set explicitly or is it taken from the parsed data?
52c7466
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's always set to string literals, example:
Just do a find in SCDoc.y and you'll see them all.