Skip to content
Snippets Groups Projects
Commit 1765d8a8 authored by Erwan Jahier's avatar Erwan Jahier
Browse files

Fixing the ec generator: node and function does not have the same meaning in v4.

parent f16632c4
No related branches found
No related tags found
No related merge requests found
(** Time-stamp: <modified the 05/02/2009 (at 15:01) by Erwan Jahier> *) (** Time-stamp: <modified the 05/02/2009 (at 16:42) by Erwan Jahier> *)
open Printf open Printf
open Lxm open Lxm
...@@ -497,8 +497,17 @@ and (const_decl: Ident.long -> Eff.const -> string) = ...@@ -497,8 +497,17 @@ and (const_decl: Ident.long -> Eff.const -> string) =
and (node_of_node_exp_eff: Eff.node_exp -> string) = and (node_of_node_exp_eff: Eff.node_exp -> string) =
fun neff -> fun neff ->
wrap_long_profile ( wrap_long_profile (
(if neff.def_eff = ExternEff && not (!Global.lv4) then "extern " else "") ^ (if
(if neff.has_mem_eff then "node " else "function ") ^ neff.def_eff = ExternEff
&& not (!Global.lv4) (* no extern kwd in v4... *)
then "extern "
else "") ^
(if !Global.lv4 then
(* nodeand function does not have the same meaning in v4... *)
(if neff.def_eff = ExternEff then "function " else "node ")
else
(if neff.has_mem_eff then "node " else "function ")
) ^
(string_of_node_key_rec neff.node_key_eff) ^ (string_of_node_key_rec neff.node_key_eff) ^
(profile_of_node_exp_eff neff)) ^ (profile_of_node_exp_eff neff)) ^
(match neff.def_eff with (match neff.def_eff with
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment