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