lib: fixed bad mallocs in socket
[nit.git] / src / utils.nit
index f8dbfbd..df2e9f5 100644 (file)
 # limitations under the License.
 
 # Various functions for NIT tools
-package utils
+module utils
+
+import symbol
 
 # Mangle an array of symbol using only alphanums and underscores
-meth cmangle(symbols: Symbol...): String
+fun cmangle(symbols: Symbol...): String
 do
        var table = once cmangle_table
        var res = new Buffer
@@ -56,7 +58,7 @@ do
 end
 
 # Build the table that associates character to mangle to string
-private meth cmangle_table: HashMap[Char, String]
+private fun cmangle_table: HashMap[Char, String]
 do
        var res = new HashMap[Char, String]
        res['+'] = "plus"