Commit 15f4b7fb authored by julien.delange's avatar julien.delange

* backends/ocarina-backends-po_hi_c-deployment.adb

   backends/ocarina-backends-c_tree-nutils.ads
   backends/ocarina-backends-po_hi_c-naming.adb
   backends/ocarina-backends-po_hi_c-runtime.ads
    - Prefix all global variables with __po_hi
      to ease code analysis



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/ocarina@1768 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent fa4c6e87
......@@ -203,13 +203,9 @@ package Ocarina.Backends.C_Tree.Nutils is
type Variable_Id is
(V_Request,
V_Entity_Table,
V_Mynode,
V_Ret,
V_Tattr,
V_Next_Period,
V_Node_Addr,
V_Node_Port,
V_Port_Global_To_Entity,
V_Port_Global_To_Local_Port,
V_Server_Entity_Table,
......
......@@ -1427,8 +1427,7 @@ package body Ocarina.Backends.PO_HI_C.Deployment is
(Defining_Identifier =>
Make_Array_Declaration
(Defining_Identifier =>
Make_Defining_Identifier
(VN (V_Entity_Table)),
RE (RE_Entity_Table),
Array_Size =>
RE (RE_Nb_Entities)),
Used_Type =>
......
......@@ -620,8 +620,7 @@ package body Ocarina.Backends.PO_HI_C.Naming is
(Defining_Identifier =>
Make_Array_Declaration
(Defining_Identifier =>
Make_Defining_Identifier
(VN (V_Node_Port)),
RE (RE_Node_Port),
Array_Size =>
RE (RE_Nb_Nodes)),
Used_Type =>
......@@ -639,8 +638,7 @@ package body Ocarina.Backends.PO_HI_C.Naming is
(Defining_Identifier =>
Make_Array_Declaration
(Defining_Identifier =>
Make_Defining_Identifier
(VN (V_Node_Addr)),
RE (RE_Node_Addr),
Array_Size =>
RE (RE_Nb_Nodes)),
Used_Type =>
......@@ -655,8 +653,7 @@ package body Ocarina.Backends.PO_HI_C.Naming is
(Left_Expr =>
Make_Variable_Declaration
(Defining_Identifier =>
Make_Defining_Identifier
(VN (V_Mynode)),
RE (RE_Mynode),
Used_Type =>
RE (RE_Node_T)),
Operator => Op_Equal,
......
......@@ -208,6 +208,10 @@ package Ocarina.Backends.PO_HI_C.Runtime is
RE_Port_Global_To_Entity, -- __po_hi_port_global_to_entity
RE_Port_Global_To_Device, -- __po_hi_port_global_to_device
RE_Port_Global_Names, -- __po_hi_port_global_names
RE_Mynode, -- __po_hi_mynode
RE_Node_Port, -- __po_hi_node_port
RE_Node_Addr, -- __po_hi_node_addr
RE_Entity_Table, -- __po_hi_entity_table
RE_Port_Global_Model_Names, -- __po_hi_port_global_model_names
RE_Port_Global_To_Local -- __po_hi_port_global_to_local
);
......@@ -374,6 +378,10 @@ package Ocarina.Backends.PO_HI_C.Runtime is
RE_Port_Global_To_Entity => RH_Deployment,
RE_Port_Global_To_Device => RH_Deployment,
RE_Port_Global_Names => RH_Deployment,
RE_Mynode => RH_Deployment,
RE_Node_Port => RH_Deployment,
RE_Node_Addr => RH_Deployment,
RE_Entity_Table => RH_Deployment,
RE_Port_Global_Model_Names => RH_Deployment,
RE_Port_Global_To_Local => RH_Deployment
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment