/* Change the current location to the one saved in LOC.  */
void loc_restore(Location *loc)
/* Change the current location to the one saved in LOC.  */
void loc_restore(Location *loc)
{
    Location *prev = cur_loc->prev;
    assert(!loc->prev);
    *cur_loc = *loc;
    cur_loc->prev = prev;
}