Warning: session_start(): open(/var/lib/php/sessions/sess_e236r73o5la1mclvmgrfgqrtp9, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static bool tok_repeatWithSleep_verbose;
static L tok_repeatWithSleep(L tok) {
int i;
while ((i = jfind(tok, "repeat with sleep * {")) >= 0) {
S seconds = tok.get(i+6); // int or id
int idx = findCodeTokens(tok, i, false, "{");
int j = findEndOfBracketPart(tok, idx);
if (tok_repeatWithSleep_verbose) print("idx=" + idx + ", j=" + j);
clearTokens(tok, i, idx+1);
tok.set(i, "repeat { pcall {");
tok.set(j-1, "} sleepSeconds(" + seconds + "); }");
reTok(tok, j-1, j);
reTok(tok, i, idx+1);
}
while ((i = jfind(tok, "repeat with ms sleep * {")) >= 0) {
S ms = tok.get(i+8); // int or id
int idx = findCodeTokens(tok, i, false, "{");
int j = findEndOfBracketPart(tok, idx);
if (tok_repeatWithSleep_verbose) print("idx=" + idx + ", j=" + j);
clearTokens(tok, i, idx+1);
tok.set(i, "repeat { pcall {");
tok.set(j-1, "} sleep(" + ms + "); }");
reTok(tok, j-1, j);
reTok(tok, i, idx+1);
}
ret tok;
}