summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjordi.saludes <jordi.saludes@upc.edu>2010-06-18 11:47:14 +0000
committerjordi.saludes <jordi.saludes@upc.edu>2010-06-18 11:47:14 +0000
commitd313f22d7291d34e990675d84679f0239a7a1e08 (patch)
tree3165bdc9c685f1694156a21b82d25f9ddf2cbc4c
parent606a8807208bfd4e62fcb41c872aae84ae8b4686 (diff)
DEBUG is off.
-rw-r--r--contrib/py-bindings/Makefile4
-rw-r--r--contrib/py-bindings/gfmodule.c1
-rw-r--r--contrib/py-bindings/test.py7
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):