Ignore:
Timestamp:
Oct 29, 2008, 1:37:51 AM (17 years ago)
Author:
bird
Message:

Merged in current GNU Make code (CVS from 2008-10-28). Ref #55.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/expand.c

    r1988 r1993  
    11/* Variable expansion functions for GNU Make.
    22Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
    3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
     31998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
    44Foundation, Inc.
    55This file is part of GNU Make.
     
    77GNU Make is free software; you can redistribute it and/or modify it under the
    88terms of the GNU General Public License as published by the Free Software
    9 Foundation; either version 2, or (at your option) any later version.
     9Foundation; either version 3 of the License, or (at your option) any later
     10version.
    1011
    1112GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
     
    1415
    1516You should have received a copy of the GNU General Public License along with
    16 GNU Make; see the file COPYING.  If not, write to the Free Software
    17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.  */
     17this program.  If not, see <http://www.gnu.org/licenses/>.  */
    1818
    1919#include "make.h"
     
    875875{
    876876  char *result;
    877   struct variable_set_list *save;
     877  struct variable_set_list *savev;
     878  const struct floc *savef;
    878879
    879880  if (file == 0)
    880881    return variable_expand (line);
    881882
    882   save = current_variable_set_list;
     883  savev = current_variable_set_list;
    883884  current_variable_set_list = file->variables;
     885
     886  savef = reading_file;
    884887  if (file->cmds && file->cmds->fileinfo.filenm)
    885888    reading_file = &file->cmds->fileinfo;
    886889  else
    887890    reading_file = 0;
     891
    888892  result = variable_expand (line);
    889   current_variable_set_list = save;
    890   reading_file = 0;
     893
     894  current_variable_set_list = savev;
     895  reading_file = savef;
    891896
    892897  return result;
Note: See TracChangeset for help on using the changeset viewer.