Use linked list for gadgets chaining

行尾有多餘的空白