octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #48080] file_in_loadpath fails after saving


From: Rik
Subject: [Octave-bug-tracker] [bug #48080] file_in_loadpath fails after saving
Date: Tue, 21 Jun 2016 14:57:06 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #48080 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #4:

It does seem like it would be a good idea.  How major a change is this likely
to be?

In load-path.cc for the update function called by rehash I see


void
load_path::do_update (void) const
{
  // I don't see a better way to do this because we need to
  // preserve the correct directory ordering for new files that
  // have appeared.

  default_loader.clear ();

  loader_map.clear ();

  for (dir_info_list_iterator p = dir_info_list.begin ();
       p != dir_info_list.end ();
       p++)
    {
      dir_info& di = *p;

      di.update ();

      add (di, true, "", true);
    }
}


I don't like the look of the comment.  But it does appear that loader_map is a
std::map which means it should be easy to add a new key/val pair.  I think
load-path.h needs to expose a new form of add() which takes a filename, rather
than a directory as is done currently.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48080>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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