[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24309 - monkey/trunk/seaspider
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24309 - monkey/trunk/seaspider |
Date: |
Sun, 14 Oct 2012 15:14:51 +0200 |
Author: teichm
Date: 2012-10-14 15:14:51 +0200 (Sun, 14 Oct 2012)
New Revision: 24309
Modified:
monkey/trunk/seaspider/seasp2_convert
Log:
seasp2_convert now supports Global statements
Modified: monkey/trunk/seaspider/seasp2_convert
===================================================================
--- monkey/trunk/seaspider/seasp2_convert 2012-10-14 12:50:15 UTC (rev
24308)
+++ monkey/trunk/seaspider/seasp2_convert 2012-10-14 13:14:51 UTC (rev
24309)
@@ -51,7 +51,11 @@
for line in lines:
(rowtype, remainder) = line.split(': ', 1)
if rowtype == 'Global':
- print 'entry type Global not yet supported'
+ (rowfile, rowglob) = remainder.split(':', 1)
+ (lineno, globalvar) = rowglob.split(' ', 1)
+ lineno = int(lineno)
+ vals = (rowfile, globalvar, lineno, 32767, 0)
+ c.execute('INSERT INTO Expression VALUES
(NULL,?,?,?,?,?)', vals)
elif rowtype == 'Function':
print 'nothing to do for entry type Function'
elif rowtype == 'Parameter':
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24309 - monkey/trunk/seaspider,
gnunet <=