diff options
| author | kevin.kofler <kevin.kofler@chello.at> | 2010-05-16 21:12:01 +0000 |
|---|---|---|
| committer | kevin.kofler <kevin.kofler@chello.at> | 2010-05-16 21:12:01 +0000 |
| commit | df98e9b4428a5896ca2e84b6f29c93e1f5a45d1b (patch) | |
| tree | ad5ab1e6222ab38f0ab3aefe90845c785e8e5dd3 | |
| parent | ee1c4199794723c0500368c0075bc7e4624a7fbc (diff) | |
Build Query.pgf in build-gfctest.sh and look for it in the current directory
| -rw-r--r-- | contrib/c-bindings/build-gfctest.sh | 1 | ||||
| -rw-r--r-- | contrib/c-bindings/gfctest.c | 2 |
2 files changed, 2 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. +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"); |
