Changeset: d81fe62f2f59 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d81fe62f2f59
Modified Files:
        testing/listexports.py.in
Branch: Jun2016
Log Message:

Produce error message when we see an export on a function definition.


diffs (25 lines):

diff --git a/testing/listexports.py.in b/testing/listexports.py.in
--- a/testing/listexports.py.in
+++ b/testing/listexports.py.in
@@ -45,12 +45,16 @@ def extract(f):
     res = expre.search(data)
     while res is not None:
         pos = res.end(0)
-        decl = exportutils.normalize(res.group('decl'))
-        res = nmere.search(decl)
-        if res is not None:
-            decls.append((res.group('name'), decl))
+        decl = res.group('decl')
+        if '{' in decl:
+            sys.stderr.write('export on definition:\n%s\n' % res.group(0))
         else:
-            decls.append(('', decl))
+            decl = exportutils.normalize(decl)
+            res = nmere.search(decl)
+            if res is not None:
+                decls.append((res.group('name'), decl))
+            else:
+                decls.append(('', decl))
         res = expre.search(data, pos)
     return decls
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to