Refactor sym_equal() in symbol.c
Merge pull request #2490 from suzukaze/refactor_symbol

Refactor sym_equal() in symbol.c