| 2656 | */ |
| 2657 | #ifdef notyet |
| 2658 | staticfn boolean |
| 2659 | start_luapat(void) |
| 2660 | { |
| 2661 | int rv; |
| 2662 | /* XXX set memory and step limits */ |
| 2663 | nhl_sandbox_info sbi = { NHL_SB_STRING, 0, 0, 0 }; |
| 2664 | |
| 2665 | if ((luapat = nhl_init(&sbi)) == NULL) |
| 2666 | return FALSE; |
| 2667 | |
| 2668 | /* load a pattern matching function */ |
| 2669 | rv = luaL_loadstring( |
| 2670 | luapat, |
| 2671 | "function matches(s,p) return not not stringm.match(s,p) end"); |
| 2672 | if (rv != LUA_OK) { |
| 2673 | panic("start_luapat: %d", rv); |
| 2674 | } |
| 2675 | return TRUE; |
| 2676 | } |
| 2677 | #endif |
| 2678 | |
| 2679 | staticfn void |
no test coverage detected