diff options
author | Björn Jacke <bj@sernet.de> | 2019-08-25 23:08:18 +0200 |
---|---|---|
committer | Bjoern Jacke <bjacke@samba.org> | 2019-09-24 12:22:44 +0000 |
commit | b3b6b700c47ba771baf632b3a165106c21c9ae04 (patch) | |
tree | 5f99532258cb701047efd38db502248ec8f0f9b2 /source3/wscript | |
parent | 32d1c3f873fc8bd89a7dc985cb8258e990dc12cd (diff) | |
download | samba-b3b6b700c47ba771baf632b3a165106c21c9ae04.tar.gz |
s3/wscript: avoid inefficient string concatenations
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/wscript b/source3/wscript index dc2bb45a48b..83e7aca737f 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1907,11 +1907,9 @@ main() { conf.env[static_env] = [] conf.env[shared_env] = [] if p in static_list: - decl_list="" + decl_list = " ".join("extern NTSTATUS %s_init(TALLOC_CTX *mem_ctx); " % entry for entry in static_list[p]) for entry in static_list[p]: - decl_list += "extern NTSTATUS %s_init(TALLOC_CTX *mem_ctx); " % entry conf.env[static_env].append('%s' % entry) - decl_list = decl_list.rstrip() conf.DEFINE('static_decl_%s' % p, decl_list) conf.DEFINE('static_init_%s(mem_ctx)' % p, '{ %s_init((mem_ctx)); }' % '_init((mem_ctx)); '.join(static_list[p])) else: |