Ignore:
Timestamp:
Mar 31, 2008, 12:16:15 AM (17 years ago)
Author:
bird
Message:

Use the variable file location in evalval and evalcall.

File:
1 edited

Legend:

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

    r1440 r1458  
    518518  char *result;
    519519  struct variable_set_list *save;
     520  const struct floc *reading_file_saved;
    520521
    521522  if (file == 0)
     
    524525  save = current_variable_set_list;
    525526  current_variable_set_list = file->variables;
     527  reading_file_saved = reading_file;
    526528  if (file->cmds && file->cmds->fileinfo.filenm)
    527529    reading_file = &file->cmds->fileinfo;
     
    530532  result = variable_expand_string (o, line, (long)-1);
    531533  current_variable_set_list = save;
    532   reading_file = 0;
     534  reading_file = reading_file_saved;
    533535
    534536  return result;
Note: See TracChangeset for help on using the changeset viewer.