X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fexecutor.c;h=24b80db2443d3163ee5978ba02b8417341fac102;hb=ced729f41f90e56a7c8ec12f6497f61c9b73b779;hp=7b4d10cf9f3e06f59bf1439dd9891cc6a859e227;hpb=481e4ef5d944216a7212f3de245dec4f42c8d120;p=pspp diff --git a/src/ui/gui/executor.c b/src/ui/gui/executor.c index 7b4d10cf9f..24b80db244 100644 --- a/src/ui/gui/executor.c +++ b/src/ui/gui/executor.c @@ -16,15 +16,18 @@ #include -#include "executor.h" -#include "psppire-data-store.h" -#include -#include -#include -#include -#include -#include -#include "psppire-output-window.h" +#include "ui/gui/executor.h" + +#include "data/lazy-casereader.h" +#include "data/procedure.h" +#include "language/command.h" +#include "language/lexer/lexer.h" +#include "language/syntax-string-source.h" +#include "libpspp/cast.h" +#include "libpspp/getl.h" +#include "output/driver.h" +#include "ui/gui/psppire-data-store.h" +#include "ui/gui/psppire-output-window.h" extern struct dataset *the_dataset; extern struct source_stream *the_source_stream; @@ -108,3 +111,19 @@ execute_syntax (struct getl_interface *sss) return retval; } + +/* Executes null-terminated string SYNTAX as syntax. + Returns SYNTAX. */ +gchar * +execute_syntax_string (gchar *syntax) +{ + execute_const_syntax_string (syntax); + return syntax; +} + +/* Executes null-terminated string SYNTAX as syntax. */ +void +execute_const_syntax_string (const gchar *syntax) +{ + execute_syntax (create_syntax_string_source (syntax)); +}