refactor type_enum
remove redundant slist_add()
Merge pull request #1568 from WalterBright/b40

refactor type_enum