Added SQLite support and updated the Handbook. (0.32.0)
This commit is contained in:
parent
3411a4d846
commit
9416ec3457
17 changed files with 631 additions and 388 deletions
|
|
@ -441,6 +441,15 @@ char *value_to_string_alloc(const Value *v) {
|
|||
snprintf(buf, sizeof(buf), "[array n=%d]", n);
|
||||
return strdup(buf);
|
||||
}
|
||||
case VAL_MAP: {
|
||||
int n = 0;
|
||||
if (v->type == VAL_MAP && v->map) {
|
||||
const Map *m = (const Map*)v->map;
|
||||
n = m ? m->count : 0;
|
||||
}
|
||||
snprintf(buf, sizeof(buf), "{map n=%d}", n);
|
||||
return strdup(buf);
|
||||
}
|
||||
case VAL_NIL:
|
||||
default:
|
||||
return strdup("nil");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue