git » libfiu » commit a45d499

preload/posix/generate: python 2.3 fix

author Tommi Rantala
2009-06-25 06:53:23 UTC
committer Alberto Bertogli
2009-06-25 16:51:35 UTC
parent b1f7a36a3c12bae37628991bdc97343dac7e5428

preload/posix/generate: python 2.3 fix

The default build of libfiu uses the generate script, which requires a
recent version of python with support for generator expressions. This
patch changes the generator expression to a list comprehension to enable
libfiu to be built with older versions of python.

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>

preload/posix/generate +2 -2

diff --git a/preload/posix/generate b/preload/posix/generate
index dc3e6f4..dd42e0b 100755
--- a/preload/posix/generate
+++ b/preload/posix/generate
@@ -92,8 +92,8 @@ class Function:
 		f.write('/* Wrapper for %s() */\n' % self.name)
 
 		# extract params names and types
-		paramst = ', '.join(i[0] for i in self.params_info)
-		paramsn = ', '.join(i[1] for i in self.params_info)
+		paramst = ', '.join([i[0] for i in self.params_info])
+		paramsn = ', '.join([i[1] for i in self.params_info])
 
 		f.write('mkwrap_top(%s, %s, (%s), (%s), (%s))\n' % \
 				(self.ret_type, self.name, self.params,