no need for extra nul byte check - while terminated IF its null. so known

condition. formatting too.


SVN revision: 30923
This commit is contained in:
Carsten Haitzler 2007-07-21 03:06:08 +00:00
parent b4ab277e21
commit be1ba8873b
1 changed files with 11 additions and 12 deletions

View File

@ -2423,10 +2423,7 @@ evas_object_textblock_style_get(Evas_Object *obj)
static inline void
_advance_after_end_of_string(const char **p_buf)
{
while (**p_buf != '\0')
(*p_buf)++;
if (**p_buf == '\0')
while (**p_buf != 0) (*p_buf)++;
(*p_buf)++;
}
@ -2435,11 +2432,13 @@ _is_eq_and_advance(const char *s, const char *s_end,
const char **p_m, const char *m_end)
{
for (;((s < s_end) && (*p_m < m_end)); s++, (*p_m)++)
{
if (*s != **p_m)
{
_advance_after_end_of_string(p_m);
return 0;
}
}
if (*p_m < m_end)
_advance_after_end_of_string(p_m);