mirror of
https://github.com/labwc/labwc.git
synced 2026-03-22 05:33:57 -04:00
rcxml: convert dotted properties into nested nodes before processing
For example, the following node:
<keybind name.action="ShowMenu" menu.action="root-menu"
x.position.action="1" y.position.action="2" />
is converted to:
<keybind>
<action>
<name>ShowMenu</name>
<menu>root-menu</menu>
<position>
<x>1</x>
<y>2</y>
</position>
</action>
</keybind>
...before processing the entire xml tree. This is a preparation to prevent
breaking changes when we refactor rcxml.c to use recursion instead of
encoding nodes into dotted strings.
This commit is contained in:
parent
330c55e1b2
commit
503af10505
6 changed files with 302 additions and 3 deletions
|
|
@ -3,15 +3,21 @@ test_lib = static_library(
|
|||
sources: files(
|
||||
'../src/common/buf.c',
|
||||
'../src/common/mem.c',
|
||||
'../src/common/string-helpers.c'
|
||||
'../src/common/string-helpers.c',
|
||||
'../src/common/xml.c',
|
||||
),
|
||||
include_directories: [labwc_inc],
|
||||
dependencies: [dep_cmocka],
|
||||
dependencies: [
|
||||
dep_cmocka,
|
||||
glib,
|
||||
xml2,
|
||||
],
|
||||
)
|
||||
|
||||
tests = [
|
||||
'buf-simple',
|
||||
'str',
|
||||
'xml',
|
||||
]
|
||||
|
||||
foreach t : tests
|
||||
|
|
@ -22,6 +28,7 @@ foreach t : tests
|
|||
sources: '@0@.c'.format(t),
|
||||
include_directories: [labwc_inc],
|
||||
link_with: [test_lib],
|
||||
dependencies: [xml2],
|
||||
),
|
||||
is_parallel: false,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue