christ.li@xxxxxxxxx schrieb am 01.12.2009 00:41:18: > The code does that is in declaration_specifiers() if you are curious. > Sparse only use the base type of the user type, as if the declaration > is "signed short var1". This make the later process much easier. > It is none trivial change to preserve the type define name. I see. > May I ask more back ground information what do you want to do > with the type define name? I am trying to find out if there is other easier > way to achieve your goal. Of course: I wrote a tool, which converts C-declarations into another format (IEC61131). These generated declarations are used as a interface to communicate to programs of different languages. This IEC-format uses datatypes, which are not known in ANSI C, such as the following: typedef signed long DINT; typedef unsigned long UDINT; typedef signed long TIME; typedef unsigned long DATE_AND_TIME; typedef unsigned short UINT; typedef unsigned short WSTRING; As you can see, the use of the basetype "unsigned long" for example is not clear. If I now declare a variable of type TIME and another one of type DINT, I am not able to determine which type was used in the declaration. I hope this is understandable, regards, Thomas -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html