[uim-commit] r2028 - branches/r5rs/sigscheme/script

kzk at freedesktop.org kzk at freedesktop.org
Sat Nov 5 23:54:55 PST 2005


Author: kzk
Date: 2005-11-05 23:54:43 -0800 (Sat, 05 Nov 2005)
New Revision: 2028

Added:
   branches/r5rs/sigscheme/script/check_initialize_scm_null.rb
Log:
* sigscheme/script/check_initialize_scm_null.rb
  - script to check the initialization with SCM_NULL.
    but we need manual check by this informatin because SCM_NULL
    initialization is used for list head default value.


Added: branches/r5rs/sigscheme/script/check_initialize_scm_null.rb
===================================================================
--- branches/r5rs/sigscheme/script/check_initialize_scm_null.rb	2005-11-06 07:34:28 UTC (rev 2027)
+++ branches/r5rs/sigscheme/script/check_initialize_scm_null.rb	2005-11-06 07:54:43 UTC (rev 2028)
@@ -0,0 +1,44 @@
+#!/usr/bin/env ruby
+#===========================================================================
+#  FileName : build_func_table.rb
+#  About    : script to building built-in function table
+#
+#  Copyright (C) 2005      by Kazuki Ohta <mover at hct.zaq.ne.jp>
+#
+#  All rights reserved.
+#
+#  Redistribution and use in source and binary forms, with or without
+#  modification, are permitted provided that the following conditions
+#  are met:
+#
+#  1. Redistributions of source code must retain the above copyright
+#     notice, this list of conditions and the following disclaimer.
+#  2. Redistributions in binary form must reproduce the above copyright
+#     notice, this list of conditions and the following disclaimer in the
+#     documentation and/or other materials provided with the distribution.
+#  3. Neither the name of authors nor the names of its contributors
+#     may be used to endorse or promote products derived from this software
+#     without specific prior written permission.
+#
+#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
+#  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+#  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+#  ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
+#  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+#  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+#  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+#  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+#  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+#  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+#  SUCH DAMAGE.
+#===========================================================================
+ARGV.each { |file|
+  lnum = 0
+  IO.readlines(file).each { |line|
+    if (/ScmObj\s+\w+\s*=\s+SCM_NULL;*/ =~ line)
+      print file, " : ", lnum, " : ", line.strip, "\n"
+    end
+
+    lnum += 1
+  }
+}


Property changes on: branches/r5rs/sigscheme/script/check_initialize_scm_null.rb
___________________________________________________________________
Name: svn:executable
   + *



More information about the uim-commit mailing list