types: lowercase type_name for the object type (object, not Object)

Matches the lowercase convention of every other type (int, bool,
generator, native, list).  Updates table.c, empty.c and the ffi test
expectation.  84/84 tests.
This commit is contained in:
Minus committed 2026-11-16 04:09:38 +00:00
1 parent d29b0706c9
commit 0292d88a53
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ static int empty_set_attribute(CAT_VALUE_Value *self, const char *name,
} }
static CAT_VALUE_Vtable g_empty_vtable = { static CAT_VALUE_Vtable g_empty_vtable = {
.type_name = "Object", .type_name = "object",
.kind = CAT_VALUE_KIND_TABLE, .kind = CAT_VALUE_KIND_TABLE,
.get_attribute = { empty_get_attribute }, .get_attribute = { empty_get_attribute },
.set_attribute = { empty_set_attribute }, .set_attribute = { empty_set_attribute },
+1 -1
View File
@@ -84,7 +84,7 @@ static void table_destroy(CAT_VALUE_Value *self)
} }
static CAT_VALUE_Vtable g_table_vtable = { static CAT_VALUE_Vtable g_table_vtable = {
.type_name = "Object", .type_name = "object",
.kind = CAT_VALUE_KIND_TABLE, .kind = CAT_VALUE_KIND_TABLE,
.call = { table_call }, .call = { table_call },
.get_attribute = { table_get_attribute }, .get_attribute = { table_get_attribute },
+1 -1
View File
@@ -120,7 +120,7 @@ check "ffi-abs" "abs(-42) = 42" "`echo "$out" | sed -n 5p`"
out=`$BIN tests/ffi.cat` out=`$BIN tests/ffi.cat`
check "ffi-badload-empty" "bad load empty: true" "`echo "$out" | sed -n 1p`" check "ffi-badload-empty" "bad load empty: true" "`echo "$out" | sed -n 1p`"
check "ffi-badload-type" "bad load type: Object" "`echo "$out" | sed -n 2p`" check "ffi-badload-type" "bad load type: object" "`echo "$out" | sed -n 2p`"
check "ffi-bound" "pow bound: true" "`echo "$out" | sed -n 3p`" check "ffi-bound" "pow bound: true" "`echo "$out" | sed -n 3p`"
check "ffi-missing-sym" "missing sym empty: true" "`echo "$out" | sed -n 4p`" check "ffi-missing-sym" "missing sym empty: true" "`echo "$out" | sed -n 4p`"
check "ffi-badsig" "bad sig empty: true" "`echo "$out" | sed -n 5p`" check "ffi-badsig" "bad sig empty: true" "`echo "$out" | sed -n 5p`"