curitem = 0;
prevchar_isflag = TRUE;
prevchar_isitem = FALSE;
- for (s = usefmt; *s; )
+ for (s = usefmt; *s != NUL; )
{
if (curitem == (int)stl_items_len)
{
stl_items_len = new_len;
}
- if (*s != NUL && *s != '%')
+ if (*s != '%')
prevchar_isflag = prevchar_isitem = FALSE;
/*
}
// If the start comment string doesn't match with the
// start of the comment, skip this entry. XXX
- else if (STRNCMP(ml_get(comment_pos->lnum) + comment_pos->col,
+ else if (STRNCMP(ml_get(comment_pos->lnum)
+ + comment_pos->col,
lead_start, lead_start_len) != 0)
continue;
}
// Are we at the start of a cpp base class declaration or
// constructor initialization? XXX
n = FALSE;
- if (curbuf->b_ind_cpp_baseclass != 0 && theline[0] != '{')
+ if (curbuf->b_ind_cpp_baseclass != 0)
{
n = cin_is_cpp_baseclass(&cache_cpp_baseclass);
l = ml_get_curline();