/* PSPP - computes sample statistics.
Copyright (C) 1997-9, 2000 Free Software Foundation, Inc.
- Written by Ben Pfaff <blp@gnu.org>.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
int
cmd_include (struct lexer *lexer, struct dataset *ds UNUSED)
{
+ struct source_stream *ss;
char *found_fn;
char *target_fn;
target_fn = ds_cstr (lex_tokstr (lexer));
- found_fn = fn_search_path (target_fn,
- getl_include_path (),
- NULL);
+ ss = lex_get_source_stream (lexer);
+ found_fn = fn_search_path (target_fn, getl_include_path ( ss ));
if (found_fn != NULL)
{
- getl_include_source (create_syntax_file_source (found_fn));
+ getl_include_source (ss, create_syntax_file_source (found_fn));
free (found_fn);
}
else