summaryrefslogtreecommitdiff
path: root/macros/ASTManagement
diff options
context:
space:
mode:
Diffstat (limited to 'macros/ASTManagement')
-rw-r--r--macros/ASTManagement/AST_HandleEndGenFun.binbin77644 -> 78824 bytes
-rw-r--r--macros/ASTManagement/AST_HandleEndGenFun.sci18
-rw-r--r--macros/ASTManagement/libbin1468 -> 1644 bytes
-rw-r--r--macros/ASTManagement/names68
4 files changed, 46 insertions, 40 deletions
diff --git a/macros/ASTManagement/AST_HandleEndGenFun.bin b/macros/ASTManagement/AST_HandleEndGenFun.bin
index 12f738d..8b3ce65 100644
--- a/macros/ASTManagement/AST_HandleEndGenFun.bin
+++ b/macros/ASTManagement/AST_HandleEndGenFun.bin
Binary files differ
diff --git a/macros/ASTManagement/AST_HandleEndGenFun.sci b/macros/ASTManagement/AST_HandleEndGenFun.sci
index 69fbb82..f9515cd 100644
--- a/macros/ASTManagement/AST_HandleEndGenFun.sci
+++ b/macros/ASTManagement/AST_HandleEndGenFun.sci
@@ -40,12 +40,13 @@ SCI2CNInArgCheck(argn(2),3,3);
// -----------------------
// --- Initialization. ---
// -----------------------
-nxtscifunname = SharedInfo.NextSCIFunName;
-nxtscifunnumber = SharedInfo.NextSCIFunNumber;
-ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName;
-Pass1HeaderFileName = FileInfo.Funct(nxtscifunnumber).Pass1HeaderFileName;
-FunInfoDatDir = FileInfo.FunctionList.FunInfoDatDir;
-CGblDeclarFileName = FileInfo.Funct(nxtscifunnumber).CGblDeclarFileName;
+nxtscifunname = SharedInfo.NextSCIFunName;
+nxtscifunnumber = SharedInfo.NextSCIFunNumber;
+ReportFileName = FileInfo.Funct(nxtscifunnumber).ReportFileName;
+Pass1HeaderFileName = FileInfo.Funct(nxtscifunnumber).Pass1HeaderFileName;
+FunInfoDatDir = FileInfo.FunctionList.FunInfoDatDir;
+CGblDeclarFileName = FileInfo.Funct(nxtscifunnumber).CGblDeclarFileName;
+PeripheralInitListFile = FileInfo.PeripheralInitListFile;
Flag_FunAlreadyCalled = 0;
// #RNU_RES_B
@@ -101,6 +102,11 @@ elseif (ASTFunName == 'global')
PrintStringInfo(' ',ReportFileName,'both','y');
error(9999, 'SCI2CERROR: Unexpected number of output arguments for global function.');
end
+//elseif(IsAVRSupportFunction(ASTFunName))
+ //Get the peripheral from function name and input arguements, insert it in
+ //list of used peripherals.
+ // PeripheralUsed=GetPeripheral(ASTFunName,InArg);
+ // InsertPeripheralInList(PeripheralUsed,PeripheralInitListFile);
end
// #RNU_RES_B
diff --git a/macros/ASTManagement/lib b/macros/ASTManagement/lib
index ccecc91..4cd697c 100644
--- a/macros/ASTManagement/lib
+++ b/macros/ASTManagement/lib
Binary files differ
diff --git a/macros/ASTManagement/names b/macros/ASTManagement/names
index 3e6bfa8..7f6d053 100644
--- a/macros/ASTManagement/names
+++ b/macros/ASTManagement/names
@@ -1,44 +1,44 @@
-AST_ParseOperStruct
-AST_HandleEOL
-AST_ReadEqualRhsNames
-AST_HandleFor
+%comment_string
+%cste_string
+%equal_string
+%for_string
+%funcall_string
+%ifthenel_string
+%operatio_string
+%program_p
+%program_string
%variable_string
-AST_GetASTFile
-AST_HandleEndFor
+%while_string
AST2Ccode
-AST_GetFuncallPrm
-AST_HandleEndGenFun
+AST_CheckCommonInOutArgs
+AST_CheckLastFunc
AST_CheckLineLength
-SciFile2ASTFile
AST_CheckPrecSpecifier
-%operatio_string
-AST_HandleIfElse
+AST_DisplayStack
+AST_ExtractNameAndScope
+AST_GetASTFile
+AST_GetFuncallPrm
+AST_GetPrecAndLhsArg
+AST_HandleEOL
+AST_HandleEndFor
+AST_HandleEndGenFun
+AST_HandleEndProgram
AST_HandleEndWhile
-AST_CheckCommonInOutArgs
-AST_HandleWhileStatem
+AST_HandleFor
AST_HandleForStatem
-%ifthenel_string
+AST_HandleHeader
+AST_HandleIfElse
+AST_HandleWhileExpr
+AST_HandleWhileStatem
AST_ParseEqualStruct
-%while_string
-AST_GetPrecAndLhsArg
-AST_ExtractNameAndScope
-objectlist2string
-%comment_string
+AST_ParseFuncallStruct
+AST_ParseIfExprStruct
+AST_ParseOperStruct
AST_PopASTStack
-AST_CheckLastFunc
-GenOutArgNames
-%equal_string
-AST_ReadASTHeader
-%cste_string
-AST_HandleEndProgram
AST_PushASTStack
-AST_DisplayStack
-%funcall_string
-AST_HandleWhileExpr
-AST_ParseFuncallStruct
+AST_ReadASTHeader
+AST_ReadEqualRhsNames
+GenOutArgNames
Operator2FunName
-%program_p
-AST_HandleHeader
-AST_ParseIfExprStruct
-%program_string
-%for_string
+SciFile2ASTFile
+objectlist2string