X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Futilities%2Finclude.c;h=2f1fdeb2c1781c2c66fbc6254f5b8faf4471668a;hb=8019f5ebb77a3b010ff63b14ba69d70810b040fb;hp=c812c97238a9588fddf3586ed366766248372f92;hpb=2d4dd90964061defa92972156ae2a12323708519;p=pspp diff --git a/src/language/utilities/include.c b/src/language/utilities/include.c index c812c97238..2f1fdeb2c1 100644 --- a/src/language/utilities/include.c +++ b/src/language/utilities/include.c @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. - Written by Ben Pfaff . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -36,6 +35,7 @@ int cmd_include (struct lexer *lexer, struct dataset *ds UNUSED) { + struct source_stream *ss; char *found_fn; char *target_fn; @@ -52,13 +52,12 @@ cmd_include (struct lexer *lexer, struct dataset *ds UNUSED) 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