** Clear API string cache. (Entries cannot be empty, so fill them with ** a non-collectable string.) */
| 101 | ** a non-collectable string.) |
| 102 | */ |
| 103 | void luaS_clearcache (global_State *g) { |
| 104 | int i, j; |
| 105 | for (i = 0; i < STRCACHE_N; i++) |
| 106 | for (j = 0; j < STRCACHE_M; j++) { |
| 107 | if (iswhite(g->strcache[i][j])) /* will entry be collected? */ |
| 108 | g->strcache[i][j] = g->memerrmsg; /* replace it with something fixed */ |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | |
| 113 | /* |