michael@0: function runRichards() { michael@0: queue = new Packet; michael@0: Packet(queue, ID_DEVICE_A, KIND_DEVICE); michael@0: new Packet; michael@0: } michael@0: var ID_DEVICE_A = 4; michael@0: var KIND_DEVICE = 0; michael@0: Packet = function (queue) { michael@0: this.link = null michael@0: if (queue == null) return; michael@0: var peek, next = queue; michael@0: while ((peek = next.link) != null) michael@0: ID_HANDLER_B michael@0: }; michael@0: runRichards()