On Sat, Aug 15, 2009 at 7:57 AM, Pekka Enberg<penberg@xxxxxxxxxxxxxx> wrote: > + } else if (token->ident == &__SHRT_MAX__ident) { > + replace_with_integer(token, __SHRT_MAX__); > + } else if (token->ident == &__SCHAR_MAX__ident) { > + replace_with_integer(token, __SCHAR_MAX__); > + } else if (token->ident == &__INT_MAX__ident) { > + replace_with_integer(token, __INT_MAX__); > + } else if (token->ident == &__LONG_MAX__ident) { > + replace_with_integer(token, __LONG_MAX__); > + } else if (token->ident == &__LONG_LONG_MAX__ident) { > + replace_with_long_long(token, __LONG_LONG_MAX__); > + } else if (token->ident == &__WCHAR_MAX__ident) { > + replace_with_integer(token, __WCHAR_MAX__); I am pretty sure that is not the way to do it in sparse. If you just want add some sparse builtin defines, it is much better to add them in create_builtin_streams(). It would be even better to group them in a new function create_builtin_define(): Some thing like: add_pre_buffer("#weak_define __INT_MAX__ %d\n", __INT_MAX__); Chris -- 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