diff options
author | Christoph Behle <behlec@gmail.com> | 2018-06-11 19:23:49 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-06-12 00:14:54 +0000 |
commit | 626b0bcb057ad63804d37bc7276fd3eb846fe39c (patch) | |
tree | bbf89db5b5157b57199ed3e17981994886ea955b | |
parent | 40d121d33ee10004c0018df2f8ec2665569ff2db (diff) | |
download | meson-626b0bcb057ad63804d37bc7276fd3eb846fe39c.zip meson-626b0bcb057ad63804d37bc7276fd3eb846fe39c.tar.gz meson-626b0bcb057ad63804d37bc7276fd3eb846fe39c.tar.bz2 |
Make concatenate_string_literals static
-rw-r--r-- | mesonbuild/compilers/c.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index dc7a9f5..e34779b 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) |