From: Jean-Sebastien Gelinas Date: Mon, 21 Sep 2009 21:11:00 +0000 (-0400) Subject: compile: generate tables only for live local classes X-Git-Tag: v0.4~95 X-Git-Url: http://nitlanguage.org compile: generate tables only for live local classes Signed-off-by: Jean-Sebastien Gelinas Signed-off-by: Jean Privat --- diff --git a/src/compiling/compiling_global.nit b/src/compiling/compiling_global.nit index 347d873..cab99dc 100644 --- a/src/compiling/compiling_global.nit +++ b/src/compiling/compiling_global.nit @@ -28,9 +28,10 @@ redef class Program m.compile_local_table_to_c(v) end - for c in module.local_classes do + with_each_live_local_classes !action(c) do c.compile_tables_to_c(v) end + var s = new Buffer.from("classtable_t TAG2VFT[4] = \{NULL") for t in ["Int","Char","Bool"] do if module.has_global_class_named(t.to_symbol) then