MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuStyleLinkMatch

Function PiuStyleLinkMatch

modules/piu/All/piuStyle.c:115–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115PiuStyleLink* PiuStyleLinkMatch(xsMachine *the, PiuStyleLink* list, PiuStyleLink* chain, PiuStyle* style)
116{
117 PiuStyleLink* link = (*list)->first;
118 while (link) {
119 if ((*link)->style == style)
120 break;
121 link = (*link)->next;
122 }
123 if (!link) {
124 PiuStyleLinkNew(the);
125 link = PIU(StyleLink, xsResult);
126 (*link)->chain = chain;
127 (*link)->next = (*list)->first;
128 (*list)->first = link;
129 (*link)->style = style;
130 }
131 return link;
132}
133
134void PiuStyleLinkNew(xsMachine* the)
135{

Callers 6

PiuTextComputeStylesFunction · 0.85
PiuPortComputeStyleFunction · 0.85
PiuLabelComputeStyleFunction · 0.85
PiuCodeComputeStyleFunction · 0.85
PiuFieldComputeStyleFunction · 0.85
PiuFieldComputeStyleFunction · 0.85

Calls 1

PiuStyleLinkNewFunction · 0.85

Tested by

no test coverage detected