From dfcd2924e703dfbdc0cc3209cabc62fc5b5627a0 Mon Sep 17 00:00:00 2001 From: "jordi.saludes" Date: Fri, 18 Jun 2010 11:47:14 +0000 Subject: [PATCH] DEBUG is off. --- contrib/py-bindings/Makefile | 4 ++-- contrib/py-bindings/gfmodule.c | 1 + contrib/py-bindings/test.py | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/contrib/py-bindings/Makefile b/contrib/py-bindings/Makefile index 01b703698..0a5f32fca 100644 --- a/contrib/py-bindings/Makefile +++ b/contrib/py-bindings/Makefile @@ -2,8 +2,8 @@ src=../../src import=-i$src/runtime/haskell:$src/compiler cbind=../c-bindings pythoninc=/usr/include/python2.5 -debug=-optc '-DDEBUG=1' - +debug= #-optc '-DDEBUG=1' +exdir=../../examples/tutorial/embedded conf: ln -s $(cbind)/PGFFFI.hs ln -s $(cbind)/pgf.h diff --git a/contrib/py-bindings/gfmodule.c b/contrib/py-bindings/gfmodule.c index 2f9410d46..25a9cb636 100644 --- a/contrib/py-bindings/gfmodule.c +++ b/contrib/py-bindings/gfmodule.c @@ -78,6 +78,7 @@ NEWGF(Tree,GF_Tree,TreeType,"gf.tree","gf tree") /* PGF methods, constructor and destructor */ + DEALLOCFN(PGF_dealloc, PGFModule, gf_freePGF, "freePGF") static gfType* diff --git a/contrib/py-bindings/test.py b/contrib/py-bindings/test.py index 4a8f5bf3e..f70165ac4 100644 --- a/contrib/py-bindings/test.py +++ b/contrib/py-bindings/test.py @@ -10,9 +10,10 @@ samples = [ import re hexre = re.compile('0x[0-9a-f]+:[ ]*') def rmprefix(obj): - s = `obj` - m = hexre.match(s) - return m and s[m.end(0):] + return `obj` +# s = `obj` +# m = hexre.match(s) +# return m and s[m.end(0):] class TestParsing(unittest.TestCase): def setUp(self):