src/nvim/fileio.c
/*
 * Return OK when the contents of p_ei is valid, FAIL otherwise.
 */
Return OK when the contents of p_ei is valid, FAIL otherwise.
Return OK when the contents of p_ei is valid FAIL otherwise .
int check_ei(void)
{
  char_u      *p = p_ei;
  while (*p) {
    if (STRNICMP(p, "all", 3) == 0 && (p[3] == NUL || p[3] == ',')) {
      p += 3;
      if (*p == ',')
        ++p;
    } else if (event_name2nr(p, &p) == NUM_EVENTS)
      return FAIL;
  }
  return OK;
}
int check_ei ( void ) { char_u * p = p_ei ; while ( * p ) { if ( STRNICMP ( p , " " , 3 ) == 0 && ( p [ 3 ] == NUL || p [ 3 ] == ' ' ) ) { p += 3 ; if ( * p == ' ' ) ++ p ; } else if ( event_name2nr ( p , & p ) == NUM_EVENTS ) return FAIL ; } return OK ; }
Return OK when the contents of p_ei is valid, FAIL otherwise.
Return OK when the contents of p_ei is valid FAIL otherwise .