octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use of ls-R kpathsea database


From: Rafael Laboissiere
Subject: Use of ls-R kpathsea database
Date: Sun, 8 Feb 2009 21:39:35 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

There is a function in octave.cc that seems totally useless (it is called in
octave_main):

////////////////////////////////////////////////////////////////////////
static void
initialize_pathsearch (void)
{
  // This may seem odd, but doing it this way means that we don't have
  // to modify the kpathsea library...

  std::string odb = octave_env::getenv ("OCTAVE_DB_PATH");

  // For backward compatibility.

  if (odb.empty ())
    odb = octave_env::getenv ("OCTAVE_DB_DIR");

  if (odb.empty ())
    odb = Vdata_dir + file_ops::dir_sep_str + "octave:"
      + Vlibexec_dir + file_ops::dir_sep_str + "octave";
}
////////////////////////////////////////////////////////////////////////

The lines that seem to do something useful have been removed in changeset
286a3345aa8e [1].  This means that the kpathsea ls-R database is not
searched at all.  Is this correct? 

[1] http://hg.savannah.gnu.org/hgweb/octave/rev/286a3345aa8e

-- 
Rafael


reply via email to

[Prev in Thread] Current Thread [Next in Thread]