From df98e9b4428a5896ca2e84b6f29c93e1f5a45d1b Mon Sep 17 00:00:00 2001 From: "kevin.kofler" Date: Sun, 16 May 2010 21:12:01 +0000 Subject: [PATCH] Build Query.pgf in build-gfctest.sh and look for it in the current directory --- contrib/c-bindings/build-gfctest.sh | 1 + contrib/c-bindings/gfctest.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/c-bindings/build-gfctest.sh b/contrib/c-bindings/build-gfctest.sh index e8cbdfea4..e0998c39b 100644 --- a/contrib/c-bindings/build-gfctest.sh +++ b/contrib/c-bindings/build-gfctest.sh @@ -16,5 +16,6 @@ # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, see . +gf --make ../../examples/tutorial/embedded/QueryEng.gf && ghc --make -fglasgow-exts -O2 -no-hs-main $* -c PGFFFI.hs && ghc --make -fglasgow-exts -O2 -no-hs-main $* gfctest.c gf_lexing.c PGFFFI.hs -o gfctest diff --git a/contrib/c-bindings/gfctest.c b/contrib/c-bindings/gfctest.c index 1b5dd97c1..1941788b3 100644 --- a/contrib/c-bindings/gfctest.c +++ b/contrib/c-bindings/gfctest.c @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) { gf_init(&argc, &argv); - GF_PGF pgf = gf_readPGF("../examples/tutorial/embedded/Query.pgf"); + GF_PGF pgf = gf_readPGF("Query.pgf"); GF_Language lang = gf_readLanguage("QueryEng"); GF_Type cat = gf_startCat(pgf); char *lexed = gf_stringOp("lextext")("Is 2 prime");