Bugfixes
authorMatthew Mondor <mmondor@pulsar-zone.net>
Sat, 21 Oct 2006 05:44:46 +0000 (05:44 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Sat, 21 Oct 2006 05:44:46 +0000 (05:44 +0000)
mmsoftware/js/classes/js_dir.c
mmsoftware/js/classes/js_file.c
mmsoftware/js/classes/js_fs.c

index f46dc3b..3826314 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: js_dir.c,v 1.5 2006/09/15 18:30:49 mmondor Exp $ */
+/* $Id: js_dir.c,v 1.6 2006/10/21 05:44:45 mmondor Exp $ */
 
 /*
  * Copyright (c) 2006, Matthew Mondor
@@ -76,7 +76,8 @@ static JSFunctionSpec dir_methods[] = {
        { "tell", dir_m_tell, 0, 0, 0 },
        { "seek", dir_m_seek, 1, 0, 0 },
        { "rewind", dir_m_rewind, 0, 0, 0 },
-       { "close", dir_m_close, 0, 0, 0 }
+       { "close", dir_m_close, 0, 0, 0 },
+       { NULL, NULL, 0, 0, 0 },
 };
 
 /* Static properties */
@@ -91,8 +92,9 @@ static struct property_spec   dir_sprops[] = {
        SP(DT_LNK),
        SP(DT_SOCK),
 #ifdef DT_WHT
-       SP(DT_WHT)
+       SP(DT_WHT),
 #endif
+       { NULL, 0 }
 };
 
 
index 19f61e8..fe041f7 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: js_file.c,v 1.6 2006/10/01 15:43:39 mmondor Exp $ */
+/* $Id: js_file.c,v 1.7 2006/10/21 05:44:46 mmondor Exp $ */
 
 /*
  * Copyright (c) 2006, Matthew Mondor
@@ -147,7 +147,8 @@ static struct property_spec file_sprops[] = {
        SP(_IOFBF),
        SP(STDIN_FILENO),
        SP(STDOUT_FILENO),
-       SP(STDERR_FILENO)
+       SP(STDERR_FILENO),
+       { NULL, 0 }
 };
 
 /* Static methods */
@@ -155,7 +156,8 @@ static JSFunctionSpec file_smethods[] = {
        { "popen", file_sm_popen, 2, 0, 0 },
        { "tmpfile", file_sm_tmpfile, 0, 0, 0 },
        { "remove", file_sm_remove, 1, 0, 0 },
-       { "strerror", file_sm_strerror, 1, 0, 0 }
+       { "strerror", file_sm_strerror, 1, 0, 0 },
+       { NULL, NULL, 0, 0, 0 }
 };
 
 /* Methods */
@@ -177,7 +179,8 @@ static JSFunctionSpec file_methods[] = {
        { "gets", file_m_gets, 2, 0, 0 },
        { "getc", file_m_getc, 1, 0, 0 },
        { "ungetc", file_m_ungetc, 1, 0, 0 },
-       { "putc", file_m_putc, 1, 0, 0 }
+       { "putc", file_m_putc, 1, 0, 0 },
+       { NULL, NULL, 0, 0, 0 }
 };
 
 /*
index c4ffb7d..e8c7fad 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: js_fs.c,v 1.1 2006/09/15 21:04:48 mmondor Exp $ */
+/* $Id: js_fs.c,v 1.2 2006/10/21 05:44:46 mmondor Exp $ */
 
 /*
  * Copyright (c) 2006, Matthew Mondor
@@ -102,7 +102,8 @@ static JSFunctionSpec fs_smethods[] = {
        { "creat", fs_sm_creat, 2, 0, 0 },
        { "mknod", fs_sm_mknod, 3, 0, 0 },
        { "mkfifo", fs_sm_mkfifo, 2, 0, 0 },
-       { "symlink", fs_sm_symlink, 2, 0, 0 }
+       { "symlink", fs_sm_symlink, 2, 0, 0 },
+       { NULL, NULL, 0, 0, 0 }
 };