Cleanup for API purposes
authorMiguel de Icaza <miguel@gnome.org>
Mon, 29 Nov 2004 01:44:51 +0000 (01:44 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Mon, 29 Nov 2004 01:44:51 +0000 (01:44 -0000)
svn path=/trunk/mono/; revision=36739

mono/docscripts/check
mono/docscripts/exdoc
mono/interpreter/interp.c
mono/metadata/appdomain.c
mono/metadata/reflection.c
mono/mini/mini.c

index cb8c9c1134ac9ec46652bb78140c8e54338bea54..40a6685411731b1f1319ae276f40417506c76eb6 100644 (file)
@@ -1,11 +1,15 @@
 #!/bin/sh
 dir=`dirname $0`
-perl $dir/exdoc $1 | grep ^Function:  | sed -e 's/Function: //' -e 's/://' > documented
-nm .libs/`basename $1 .c`.o | grep ' T ' | sed 's/.* T //' > public
-for i in `cat public`; do
-       if grep $i documented > /dev/null; then
-               true
-       else
-               echo $i is not documented
-       fi
+
+for file in $*; 
+do
+       perl $dir/exdoc $file | grep ^Function:  | sed -e 's/Function: //' -e 's/://' > documented
+       nm `dirname $file`/.libs/`basename $file .c`.o | grep ' T ' | sed 's/.* T //' > public
+       for i in `cat public`; do
+               if grep $i documented > /dev/null; then
+                       true
+               else
+                       echo $i is not documented | grep -v ves_icall
+               fi
+       done
 done
index 9c646fa454f86f4961d5bb212bfc124545ca8c05..d1697c1cb350a9db516292b98b7dbd442f0ed53b 100644 (file)
@@ -1,11 +1,15 @@
 #!/usr/bin/perl
 
+if ($ARGV[0] eq "-h"){
+    $html = 1;
+    shift @ARGV;
+}
 
-while (<>){
+while (<ARGV>){
        if (/\/\*\* *\n/){
                &process_doc;
        } else {
-               # print "IGNORING: $_";
+               #print "IGNORING: $_";
        }
 }
 
@@ -27,4 +31,4 @@ sub process_doc {
                s/^\ \*//;
                $body .= "\t$_\n";
        }
-}
\ No newline at end of file
+}
index 851e3b85965b155f9355bbae059ec813c15f6ad8..851059219318bf438e1a9b788a7874c73bf67c84 100644 (file)
@@ -4396,7 +4396,7 @@ mono_interp_init(const char *file)
 
        mono_install_handler (interp_ex_handler);
        mono_install_stack_walk (interp_walk_stack);
-       mono_runtime_install_cleanup (quit_function);
+       mono_install_runtime_cleanup (quit_function);
        abort_requested = mono_thread_interruption_request_flag ();
 
        domain = mono_init_from_assembly (file, file);
index 21cd862d6b05b2e509614b8e248d1d84fa009337..7a0ec1a6755ed6bd305d9641354c817fad24fae4 100644 (file)
@@ -55,7 +55,7 @@ add_assemblies_to_domain (MonoDomain *domain, MonoAssembly *ass);
 static void
 mono_domain_unload (MonoDomain *domain);
 
-/*
+/**
  * mono_runtime_init:
  * @domain: domain returned by mono_init ()
  *
@@ -188,7 +188,7 @@ mono_runtime_cleanup (MonoDomain *domain)
 static MonoDomainFunc quit_function = NULL;
 
 void
-mono_runtime_install_cleanup (MonoDomainFunc func)
+mono_install_runtime_cleanup (MonoDomainFunc func)
 {
        quit_function = func;
 }
index 511ca0e6d73ba32ec4411b9ec4c3fed63972f691..5d1bc9789eb00931ed415c0dda9b49dcb4ef1f33 100644 (file)
@@ -8628,7 +8628,7 @@ mono_reflection_create_dynamic_method (MonoReflectionDynamicMethod *mb)
 /**
  * mono_reflection_lookup_dynamic_token:
  *
- *  Finish the Builder object pointed to by TOKEN and return the corresponding
+ * Finish the Builder object pointed to by TOKEN and return the corresponding
  * runtime structure.
  */
 gpointer
@@ -8674,7 +8674,7 @@ resolve_object (MonoImage *image, MonoObject *obj)
                         * Hopefully this has been filled in by calling CreateType() on the
                         * TypeBuilder.
                         */
-                       /**
+                       /*
                         * TODO: This won't work if the application finishes another 
                         * TypeBuilder instance instead of this one.
                         */
index be700fab2d056cfc73156048428b4c6d0594ceba..dce34b9efdc3a24dcaf762ae11fdfea0a29649e3 100644 (file)
@@ -3641,8 +3641,8 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
                                        }
                                }
                        }
-                       if (sp != stack_start)
-                               goto unverified;
+                       //if (sp != stack_start)
+                       //              goto unverified;
                        MONO_INST_NEW (cfg, ins, CEE_BR);
                        ins->cil_code = ip++;
                        ins->inst_target_bb = end_bblock;
@@ -8542,7 +8542,7 @@ mini_init (const char *filename)
 
 #define JIT_RUNTIME_WORKS
 #ifdef JIT_RUNTIME_WORKS
-       mono_runtime_install_cleanup ((MonoDomainFunc)mini_cleanup);
+       mono_install_runtime_cleanup ((MonoDomainFunc)mini_cleanup);
        mono_runtime_init (domain, mono_thread_start_cb, mono_thread_attach_cb);
 #endif