Initialize Lua debugger data structures. */
| 1864 | |
| 1865 | /* Initialize Lua debugger data structures. */ |
| 1866 | void ldbInit(void) { |
| 1867 | ldb.conn = NULL; |
| 1868 | ldb.active = 0; |
| 1869 | ldb.logs = listCreate(); |
| 1870 | listSetFreeMethod(ldb.logs,(void (*)(const void*))sdsfree); |
| 1871 | ldb.children = listCreate(); |
| 1872 | ldb.src = NULL; |
| 1873 | ldb.lines = 0; |
| 1874 | ldb.cbuf = sdsempty(); |
| 1875 | } |
| 1876 | |
| 1877 | /* Remove all the pending messages in the specified list. */ |
| 1878 | void ldbFlushLog(list *log) { |
no test coverage detected