Add null sentinels to the end of seed_static_function and seed_static_value
authorTim Horton <hortont424@gmail.com>
Fri, 8 Jan 2010 00:17:09 +0000 (19:17 -0500)
committerTim Horton <hortont424@gmail.com>
Fri, 8 Jan 2010 00:17:09 +0000 (19:17 -0500)
arrays in all modules; fixes BGO #592585

modules/gettext/seed-gettext.c
modules/libxml/seed-libxml.c
modules/multiprocessing/seed-multiprocessing.c
modules/os/seed-os.c
modules/readline/seed-readline.c
modules/sqlite/seed-sqlite.c

index 13450b1..3061bdc 100644 (file)
@@ -287,7 +287,8 @@ seed_static_function gettext_funcs[] = {
        {"dngettext", seed_gettext_dngettext, 0},
        {"dcngettext", seed_gettext_dcngettext, 0},
        {"setlocale", seed_gettext_setlocale, 0},
-       {"gettext", seed_gettext_gettext, 0}
+       {"gettext", seed_gettext_gettext, 0},
+       {0, 0, 0}
 };
 
 SeedObject
index f144753..0adf21b 100644 (file)
@@ -449,7 +449,8 @@ seed_xml_xpathobj_get_value (SeedContext ctx,
 
 
 seed_static_function doc_funcs[] = {
-  {"xpathNewContext", seed_xml_construct_xpath_context, 0}
+  {"xpathNewContext", seed_xml_construct_xpath_context, 0},
+  {0, 0, 0}
 };
 
 seed_static_value doc_values[] = {
index 202146a..f00a2e3 100644 (file)
@@ -183,7 +183,8 @@ SeedValue seed_pipe_add_watch(SeedContext ctx,
 seed_static_function pipe_funcs[] = {
   {"read", seed_pipe_read, 0},
   {"write", seed_pipe_write, 0},
-  {"add_watch", seed_pipe_add_watch, 0}
+  {"add_watch", seed_pipe_add_watch, 0},
+  {0, 0, 0}
 };
 
 SeedObject
index 9b32718..b227229 100644 (file)
@@ -1065,7 +1065,8 @@ seed_static_function os_funcs[] = {
   {"ttyname", seed_os_ttyname, 0},
   {"tcgetpgrp", seed_os_tcgetpgrp, 0},
   {"tcsetpgrp", seed_os_tcsetpgrp, 0},
-  {"access", seed_os_access, 0}
+  {"access", seed_os_access, 0},
+  {0, 0, 0}
 };
 
 #define OS_DEFINE_ENUM(name, value) \
index 5861d22..8dac0a9 100644 (file)
@@ -177,7 +177,8 @@ seed_static_function readline_funcs[] = {
        {"bind", seed_readline_bind, 0},
        {"done", seed_rl_done, 0},
        {"buffer", seed_rl_buffer, 0},
-       {"insert", seed_rl_insert, 0}
+       {"insert", seed_rl_insert, 0},
+       {0, 0, 0}
 };
 
 SeedObject
index 1776fbc..b6a4c94 100644 (file)
@@ -182,10 +182,8 @@ SeedValue seed_sqlite_close(SeedContext ctx,
 }
 
 seed_static_function database_funcs[] = {
-  {"close", seed_sqlite_close, 0}
-  ,
-  {"exec", seed_sqlite_exec, 0}
-  ,
+  {"close", seed_sqlite_close, 0},
+  {"exec", seed_sqlite_exec, 0},
   {0, 0, 0}
 };