| 72 | static void fxSerialSetFormat(xsMachine *the, xsSerial s, char *format); |
| 73 | |
| 74 | void xs_serial_destructor(void *data) |
| 75 | { |
| 76 | xsSerial s = data; |
| 77 | if (!s) return; |
| 78 | |
| 79 | if (s->writable) |
| 80 | modTimerRemove(s->writable); |
| 81 | |
| 82 | if (s->flush) |
| 83 | modTimerRemove(s->flush); |
| 84 | |
| 85 | if (s->serialSocket) |
| 86 | CFSocketInvalidate(s->serialSocket); |
| 87 | |
| 88 | free(data); |
| 89 | } |
| 90 | |
| 91 | void xs_serial_constructor(xsMachine *the) |
| 92 | { |
no test coverage detected