Skip to content

Commit 629ec16

Browse files
authored
adjust sequence
1 parent b7f5c84 commit 629ec16

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/source/core/data-structures/zend_string.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -288,18 +288,6 @@ There are various functions to compare strings.
288288
- - ``ZSTR_COPY_CONCAT_PROPERTIES_BOTH(out, in1, in2)``
289289
- Copies only properties that are set on both inputs.
290290

291-
.. list-table:: Stack allocation helper macros
292-
:header-rows: 1
293-
294-
- - Macro
295-
- Description
296-
- - ``ZSTR_ALLOCA_ALLOC(str, l, use_heap)``
297-
- Allocates a temporary string buffer using ``do_alloca``.
298-
- - ``ZSTR_ALLOCA_INIT(str, s, l, use_heap)``
299-
- Same as ``ZSTR_ALLOCA_ALLOC``, then copies data from ``s`` and appends ``'\0'``.
300-
- - ``ZSTR_ALLOCA_FREE(str, use_heap)``
301-
- Frees memory previously allocated with ``ZSTR_ALLOCA_ALLOC`` / ``ZSTR_ALLOCA_INIT``.
302-
303291
.. list-table:: Interned string APIs
304292
:header-rows: 1
305293

@@ -326,6 +314,18 @@ There are various functions to compare strings.
326314
- - ``zend_interned_strings_switch_storage(request)``
327315
- Switches between request and persistent interned string storage backends.
328316

317+
.. list-table:: Stack allocation helper macros
318+
:header-rows: 1
319+
320+
- - Macro
321+
- Description
322+
- - ``ZSTR_ALLOCA_ALLOC(str, l, use_heap)``
323+
- Allocates a temporary string buffer using ``do_alloca``.
324+
- - ``ZSTR_ALLOCA_INIT(str, s, l, use_heap)``
325+
- Same as ``ZSTR_ALLOCA_ALLOC``, then copies data from ``s`` and appends ``'\0'``.
326+
- - ``ZSTR_ALLOCA_FREE(str, use_heap)``
327+
- Frees memory previously allocated with ``ZSTR_ALLOCA_ALLOC`` / ``ZSTR_ALLOCA_INIT``.
328+
329329
******************
330330
Interned strings
331331
******************

0 commit comments

Comments
 (0)