summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Behle <behlec@gmail.com>2018-06-11 19:23:49 +0200
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-12 00:14:54 +0000
commit626b0bcb057ad63804d37bc7276fd3eb846fe39c (patch)
treebbf89db5b5157b57199ed3e17981994886ea955b
parent40d121d33ee10004c0018df2f8ec2665569ff2db (diff)
downloadmeson-626b0bcb057ad63804d37bc7276fd3eb846fe39c.tar.gz
Make concatenate_string_literals static
-rw-r--r--mesonbuild/compilers/c.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index dc7a9f5a6..e34779bf8 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -934,7 +934,8 @@ class CCompiler(Compiler):
code = 'int main(int argc, char **argv) { return 0; }'
return self.has_arguments(args, env, code, mode='link')
- def concatenate_string_literals(self, s):
+ @staticmethod
+ def concatenate_string_literals(s):
pattern = re.compile(r'(?P<pre>.*([^\\]")|^")(?P<str1>([^\\"]|\\.)*)"\s+"(?P<str2>([^\\"]|\\.)*)(?P<post>".*)')
ret = s
m = pattern.match(ret)