Initialize Lua debugger data structures. */
| 1841 | |
| 1842 | /* Initialize Lua debugger data structures. */ |
| 1843 | void ldbInit(void) { |
| 1844 | ldb.conn = NULL; |
| 1845 | ldb.active = 0; |
| 1846 | ldb.logs = listCreate(); |
| 1847 | listSetFreeMethod(ldb.logs,(void (*)(void*))sdsfree); |
| 1848 | ldb.children = listCreate(); |
| 1849 | ldb.src = NULL; |
| 1850 | ldb.lines = 0; |
| 1851 | ldb.cbuf = sdsempty(); |
| 1852 | } |
| 1853 | |
| 1854 | /* Remove all the pending messages in the specified list. */ |
| 1855 | void ldbFlushLog(list *log) { |
no test coverage detected