]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Optimize away a memory allocation.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Nov 2018 19:20:37 +0000 (20:20 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Nov 2018 23:25:34 +0000 (00:25 +0100)
commit6b3832ec8c713c702c551eb161dd8196a0f13b4b
tree8206a87de834288e59a8c6e71d078d14bd05d292
parent129fdc0639bbda8ab8c1f930a234a7e712a03fcd
xgettext: Optimize away a memory allocation.

* gettext-tools/src/x-c.c (phase5_get): Allocate the mixed_string_buffer on the
stack, not on the heap.
* gettext-tools/src/x-csharp.c (phase6_get): Likewise.
* gettext-tools/src/x-javascript.c (phase5_get): Likewise.
* gettext-tools/src/x-python.c (phase5_get): Likewise.
* gettext-tools/src/x-vala.c (phase3_get): Likewise.
* gettext-tools/src/x-rst.c (stringbuf, parse_string, extract_rsj): Allocate the
mixed_string_buffer statically, not on the heap.
* gettext-tools/src/xg-mixed-string.h (mixed_string_buffer_alloc,
mixed_string_buffer_done): Remove declarations.
* gettext-tools/src/xg-mixed-string.c (mixed_string_buffer_alloc,
mixed_string_buffer_done): Remove functions.
gettext-tools/src/x-c.c
gettext-tools/src/x-csharp.c
gettext-tools/src/x-javascript.c
gettext-tools/src/x-python.c
gettext-tools/src/x-rst.c
gettext-tools/src/x-vala.c
gettext-tools/src/xg-mixed-string.c
gettext-tools/src/xg-mixed-string.h