Separate "" and nil.

It turns out this is required for compatibility with qcc (and C, really).
Once string to boolean conversions are sorted out completely (not that
simple as qcc is inconsistent with if (string) vs if (!string)), Qgets can
be implemented :)
This commit is contained in:
Bill Currie 2012-12-20 09:57:24 +09:00
parent 99a8e8f228
commit 77337e2402

View file

@ -103,7 +103,7 @@ strpool_addstr (strpool_t *strpool, const char *str)
intptr_t s;
int len;
if (!str || !*str)
if (!str)
return 0;
s = (intptr_t) Hash_Find (strpool->str_tab, str);
if (s)