| 2266 | |
| 2267 | |
| 2268 | static void createcat (lua_State *L, const char *catname, int (catf) (int)) { |
| 2269 | Instruction *p = newcharset(L); |
| 2270 | int i; |
| 2271 | for (i = 0; i < CHAR_MAX; i++) |
| 2272 | if (catf(i)) setchar(p[1].buff, i); |
| 2273 | lua_setfield(L, -2, catname); |
| 2274 | } |
| 2275 | |
| 2276 | |
| 2277 | static int locale_l (lua_State *L) { |
no test coverage detected