src: clean white-spaces and license in some files
authorJean Privat <jean@pryen.org>
Tue, 2 Sep 2014 19:00:23 +0000 (15:00 -0400)
committerJean Privat <jean@pryen.org>
Wed, 3 Sep 2014 17:07:20 +0000 (13:07 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/abstract_compiler.nit
src/android_annotations.nit
src/android_platform.nit
src/coloring.nit
src/compiler_ffi.nit

index eb0d1d5..c1d1120 100644 (file)
@@ -394,7 +394,7 @@ class MakefileToolchain
                        if f.compiles_to_o_file then ofiles.add(o)
                        if f.add_to_jar then java_files.add(f)
                end
-               
+
                if not java_files.is_empty then
                        var jar_file = "{outpath}.jar"
 
@@ -642,10 +642,12 @@ extern void nitni_global_ref_decr( struct nitni_ref *ref );
        end
 
        # Generate the main C function.
+       #
        # This function:
-       #       * allocate the Sys object if it exists
-       #       * call init if is exists
-       #       * call main if it exists
+       #
+       # * allocate the Sys object if it exists
+       # * call init if is exists
+       # * call main if it exists
        fun compile_main_function
        do
                var v = self.new_visitor
@@ -929,12 +931,13 @@ extern void nitni_global_ref_decr( struct nitni_ref *ref ) {
        end
 
        # Display stats about compilation process
+       #
        # Metrics used:
-       #       * type tests against resolved types (`x isa Collection[Animal]`)
-       #       * type tests against unresolved types (`x isa Collection[E]`)
-       #       * type tests skipped
-       #       * type tests total
-       #       *
+       #
+       # * type tests against resolved types (`x isa Collection[Animal]`)
+       # * type tests against unresolved types (`x isa Collection[E]`)
+       # * type tests skipped
+       # * type tests total
        fun display_stats
        do
                if self.modelbuilder.toolcontext.opt_typing_test_metrics.value then
@@ -1250,7 +1253,7 @@ abstract class AbstractCompilerVisitor
        private var escapemark_names = new HashMap[EscapeMark, String]
 
        # Return a "const char*" variable associated to the classname of the dynamic type of an object
-       # NOTE: we do not return a `RuntimeVariable` "NativeString" as the class may not exist in the module/program
+       # NOTE: we do not return a `RuntimeVariable` "NativeString" as the class may not exist in the module/program
        fun class_name_string(value: RuntimeVariable): String is abstract
 
        # Variables handling
@@ -1311,7 +1314,7 @@ abstract class AbstractCompilerVisitor
                var mtype = recv.mtype
                var finalizable_type = compiler.mainmodule.finalizable_type
                if finalizable_type != null and not mtype.need_anchor and
-                  mtype.is_subtype(compiler.mainmodule, null, finalizable_type) then
+                               mtype.is_subtype(compiler.mainmodule, null, finalizable_type) then
                        add "gc_register_finalizer({recv});"
                end
        end
@@ -3018,4 +3021,3 @@ for mmodule in mmodules do
        end
        toolcontext.run_global_phases(ms)
 end
-
index 6ef4e04..a6fc4e2 100644 (file)
@@ -136,7 +136,7 @@ redef class AAnnotation
                else
                        for arg in args do
                                var format_error = "Annotation error: \"{name}\" expects its arguments to be of type Int or a call to `git_revision`"
-                               
+
                                var value
                                value = arg.as_int
                                if value != null then
index 8532cf8..c06a374 100644 (file)
@@ -1,3 +1,4 @@
+# This file is part of NIT ( http://www.nitlanguage.org ).
 #
 # Copyright 2014 Alexis Laferrière <alexis.laf@xymus.net>
 #
index aa65f32..ed9b466 100644 (file)
@@ -386,5 +386,3 @@ class POSetBucketsColorer[H: Object, E: Object]
                return true
        end
 end
-
-
index 9a83ba4..f3ac581 100644 (file)
@@ -342,7 +342,7 @@ redef class MNullableType
                var base_cname = "null_{mtype.mangled_cname}"
                var full_cname = "NIT_NULL___{base_cname}"
 
-               # In nitni files, declare internal function as extern 
+               # In nitni files, declare internal function as extern
                var full_friendly_csignature = "{cname_blind} {full_cname}()"
                ccu.header_decl.add("extern {full_friendly_csignature};\n")
 
@@ -374,7 +374,7 @@ redef class MExplicitCall
                var mproperty = mproperty
                assert mproperty isa MMethod
 
-               # In nitni files, declare internal function as extern 
+               # In nitni files, declare internal function as extern
                var full_friendly_csignature = mproperty.build_csignature(recv_mtype, v.compiler.mainmodule, null, long_signature, internal_call_context)
                ccu.header_decl.add("extern {full_friendly_csignature};\n")
 
@@ -489,7 +489,7 @@ redef class MExplicitCast
                ## check type
                #
 
-               # In nitni files, declare internal function as extern 
+               # In nitni files, declare internal function as extern
                var full_friendly_csignature = "int {v.compiler.mainmodule.name }___{from.mangled_cname}_is_a_{to.mangled_cname}({from.cname_blind})"
                ccu.header_decl.add("extern {full_friendly_csignature};\n")