Code

convert.c: restructure the attribute checking part.