[SCM] Lisaac compiler branch, living-external, updated. lisaac-0.12-548-gf6e3b14

Mildred Ki'Lya silkensedai at online.fr
Thu Oct 8 17:06:24 UTC 2009


The following commit has been merged in the living-external branch:
commit aeaa0e27f3723c6a1516ef396519252a7e436da9
Author: Mildred Ki'Lya <silkensedai at online.fr>
Date:   Thu Oct 8 16:33:00 2009 +0200

    Update profil handler generation (add a comment to show dead profiles)

diff --git a/src/profil.li b/src/profil.li
index 995065f..15cc21b 100644
--- a/src/profil.li
+++ b/src/profil.li
@@ -341,14 +341,26 @@ Section Public
   - is_static:BOOLEAN <- deferred;
   
   - genere_handler buffer:STRING <-
-  (
-    (link_count != 0).if {
+  ( + alive :BOOLEAN;
+    ((force_alive) || {link_count != 0}).if {
       genere_handler_intern buffer;
-      buffer.append ";\n"; 
+      buffer.append ";\n";
+      alive := TRUE;
     };
     ((cop_link_count != 0) && {result_list.count = 0}).if {
       genere_handler_cop buffer;
-      buffer.append ";\n"; 
+      buffer.append ";\n";
+      alive := TRUE; 
+    };
+    (! alive).if {
+      buffer.append "// DEAD PROFIL: ";
+      genere_handler_intern buffer;
+      buffer.append " (link_count: ";
+      link_count.append_in buffer;
+      force_alive.if {
+        buffer.append ", force alive";
+      };
+      buffer.append ")\n";
     };
   );
   

-- 
Lisaac compiler



More information about the Lisaac-commits mailing list