| 113 | } |
| 114 | |
| 115 | PiuStyleLink* 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 | |
| 134 | void PiuStyleLinkNew(xsMachine* the) |
| 135 | { |
no test coverage detected