X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fgetl.c;h=e2452c548f171ea120b61fae44562482d53e851b;hb=164d1274fcb70c54897f2a03fc7c27152ed4821a;hp=4a320960226d8f2db2c7ec4c43bef6a931b1376d;hpb=65e61cc92b48297625bc71cf31b8a19e301eb6c1;p=pspp-builds.git diff --git a/src/libpspp/getl.c b/src/libpspp/getl.c index 4a320960..e2452c54 100644 --- a/src/libpspp/getl.c +++ b/src/libpspp/getl.c @@ -1,6 +1,5 @@ /* PSPP - computes sample statistics. Copyright (C) 1997-9, 2000, 2006 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 @@ -18,7 +17,6 @@ 02110-1301, USA. */ #include - #include #include "getl.h" @@ -28,8 +26,6 @@ #include #include -#include - struct getl_source { struct getl_source *included_from; /* File that this is nested inside. */ @@ -62,12 +58,16 @@ current_source (const struct source_stream *ss) /* Initialize getl. */ struct source_stream * -create_source_stream (void) +create_source_stream (const char *initial_include_path) { struct source_stream *ss = xzalloc (sizeof (*ss)); ll_init (&ss->sources); +#if 0 ds_init_cstr (&ss->the_include_path, fn_getenv_default ("STAT_INCLUDE_PATH", include_path)); +#endif + ds_init_cstr (&ss->the_include_path, initial_include_path); + return ss; }