[tz] [PATCH] Change is_digit from macro to function