Changeset 1989 in kBuild for vendor/gnumake/current/expand.c
- Timestamp:
- Oct 28, 2008 11:02:45 PM (16 years ago)
- File:
-
- 1 edited
-
vendor/gnumake/current/expand.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/expand.c
r900 r1989 1 1 /* Variable expansion functions for GNU Make. 2 2 Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software 4 4 Foundation, Inc. 5 5 This file is part of GNU Make. … … 7 7 GNU Make is free software; you can redistribute it and/or modify it under the 8 8 terms of the GNU General Public License as published by the Free Software 9 Foundation; either version 2, or (at your option) any later version. 9 Foundation; either version 3 of the License, or (at your option) any later 10 version. 10 11 11 12 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY … … 14 15 15 16 You 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. */ 17 this program. If not, see <http://www.gnu.org/licenses/>. */ 18 18 19 19 #include "make.h" … … 466 466 { 467 467 char *result; 468 struct variable_set_list *save; 468 struct variable_set_list *savev; 469 const struct floc *savef; 469 470 470 471 if (file == 0) 471 472 return variable_expand (line); 472 473 473 save = current_variable_set_list;474 savev = current_variable_set_list; 474 475 current_variable_set_list = file->variables; 476 477 savef = reading_file; 475 478 if (file->cmds && file->cmds->fileinfo.filenm) 476 479 reading_file = &file->cmds->fileinfo; 477 480 else 478 481 reading_file = 0; 482 479 483 result = variable_expand (line); 480 current_variable_set_list = save; 481 reading_file = 0; 484 485 current_variable_set_list = savev; 486 reading_file = savef; 482 487 483 488 return result;
Note:
See TracChangeset
for help on using the changeset viewer.

