Warning: session_start(): open(/var/lib/php/sessions/sess_sn4q95ibh574u17jh3m9jg314a, 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
ifndef SymbolAsString
sclass symbol_Tester {
Symbol symbol;
*() {}
*(Symbol *symbol) {}
public int hashCode() { ret symbol.text.hashCode(); }
public bool equals(O o) {
if (!o instanceof symbol_Tester) false;
ret eq(symbol.text, o/symbol_Tester.symbol.text);
}
}
static WeakHashMap symbol_map = unsyncedWeakHashMap();
endifndef
static Symbol symbol(S s) {
ifdef SymbolAsString
ret s;
endifdef
ifndef SymbolAsString
if (s == null) null;
synchronized(symbol_map) {
// This is a trick that works because of how WeakHashMap compares keys.
symbol_Tester tester = symbol_Tester(new MasterSymbol(s, true));
O e = call(symbol_map, 'getEntry, tester);
symbol_Tester sym = e == null ? null : ((WeakReference) e).get();
if (sym == null)
symbol_map.put(sym = tester, true);
ret sym;
}
endifndef
}
static Symbol symbol(CharSequence s) {
if (s == null) null;
ifdef SymbolAsString
ret str(s);
endifdef
ifndef SymbolAsString
if (s instanceof Symbol) ret (Symbol) s;
if (s instanceof S) ret symbol((S) s);
ret symbol(str(s));
endifndef
}