summaryrefslogtreecommitdiff
path: root/macros/SymbolTable
diff options
context:
space:
mode:
authorSandeep Gupta2017-06-21 12:42:02 +0530
committerSandeep Gupta2017-06-21 12:42:02 +0530
commitd8c9e974d3ce553198b487dadc51c7612e92de85 (patch)
tree7dc3555c1675960321ce93b2df81915f2b8840e7 /macros/SymbolTable
parent681fe5c15be0a3a29dc9fdfa30142916a2ce6675 (diff)
parente92d6c6791aae06053637ad3bf6b0f9d8986986c (diff)
downloadScilab2C_fossee_old-d8c9e974d3ce553198b487dadc51c7612e92de85.tar.gz
Scilab2C_fossee_old-d8c9e974d3ce553198b487dadc51c7612e92de85.tar.bz2
Scilab2C_fossee_old-d8c9e974d3ce553198b487dadc51c7612e92de85.zip
Updated - Linear Algebra
Diffstat (limited to 'macros/SymbolTable')
-rw-r--r--macros/SymbolTable/ST_AnalyzeScope.binbin16792 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_Del.binbin4552 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_FindPos.binbin5104 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_Get.binbin8108 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_GetInArgInfo.binbin37384 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_GetInArgInfo.sci15
-rw-r--r--macros/SymbolTable/ST_GetSymbolInfo.binbin13320 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_InsForCntVars.binbin25508 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_InsOutArg.binbin33516 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_InsOutArg.sci2
-rw-r--r--macros/SymbolTable/ST_Load.binbin4288 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_MatchSymbol.binbin9112 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_Save.binbin5440 -> 0 bytes
-rw-r--r--macros/SymbolTable/ST_Set.binbin7048 -> 0 bytes
-rw-r--r--macros/SymbolTable/libbin684 -> 890 bytes
15 files changed, 13 insertions, 4 deletions
diff --git a/macros/SymbolTable/ST_AnalyzeScope.bin b/macros/SymbolTable/ST_AnalyzeScope.bin
deleted file mode 100644
index 7e727a0..0000000
--- a/macros/SymbolTable/ST_AnalyzeScope.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_Del.bin b/macros/SymbolTable/ST_Del.bin
deleted file mode 100644
index c26e2e5..0000000
--- a/macros/SymbolTable/ST_Del.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_FindPos.bin b/macros/SymbolTable/ST_FindPos.bin
deleted file mode 100644
index c7003f3..0000000
--- a/macros/SymbolTable/ST_FindPos.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_Get.bin b/macros/SymbolTable/ST_Get.bin
deleted file mode 100644
index 512e72b..0000000
--- a/macros/SymbolTable/ST_Get.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_GetInArgInfo.bin b/macros/SymbolTable/ST_GetInArgInfo.bin
deleted file mode 100644
index 6eb16e3..0000000
--- a/macros/SymbolTable/ST_GetInArgInfo.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_GetInArgInfo.sci b/macros/SymbolTable/ST_GetInArgInfo.sci
index 9f5cbd4..4c85408 100644
--- a/macros/SymbolTable/ST_GetInArgInfo.sci
+++ b/macros/SymbolTable/ST_GetInArgInfo.sci
@@ -49,13 +49,13 @@ for cntinarg = 1:NInArg
tmpname = InArg(cntinarg).Name;
tmpscope = InArg(cntinarg).Scope;
lengthNumber = length('Number_');
- if (part(tmpscope,1:lengthNumber) == 'Number_')
+ if (part(tmpscope,1:lengthNumber) == 'Number_')
// #RNU_RES_B
PrintStringInfo('Input Argument '+string(cntinarg)+' is a number: '+tmpname+'.',FileInfo.Funct(nxtscifunnumber).ReportFileName,'file');
// #RNU_RES_E
UpdatedInArg(cntinarg).Type = part(tmpscope,lengthNumber+1:lengthNumber+1);
if (UpdatedInArg(cntinarg).Type == 'x')
- UpdatedInArg(cntinarg).Type = SharedInfo.DefaultPrecision; // It is the default.
+ UpdatedInArg(cntinarg).Type = SharedInfo.DefaultPrecision; // It is the default
elseif (UpdatedInArg(cntinarg).Type == 'X')
if (SharedInfo.DefaultPrecision == 's')
UpdatedInArg(cntinarg).Type = 'c'; // It is the default.
@@ -101,6 +101,17 @@ for cntinarg = 1:NInArg
UpdatedInArg(cntinarg).FindLike = 0;
UpdatedInArg(cntinarg).Dimension = 0;
UpdatedInArg(cntinarg).Scope = 'Number';
+ if((ASTFunName == 'cmd_analog_in' | ASTFunName == 'cmd_analog_in_volt' ) & cntinarg == 2)
+ numvalue = eval(tmpname);
+ if (SharedInfo.Board_name == 'mega' | SharedInfo.Board_name == 'mega2560') then
+ tmpname = string(numvalue + 54)
+ UpdatedInArg(cntinarg).Value = 54 + numvalue;
+ else
+ tmpname = string(numvalue + 14)
+ UpdatedInArg(cntinarg).Value = 14 + numvalue;
+ end
+ UpdatedInArg(cntinarg).Name = tmpname; // Change the name.
+ end
elseif (tmpscope == 'String')
// #RNU_RES_B
diff --git a/macros/SymbolTable/ST_GetSymbolInfo.bin b/macros/SymbolTable/ST_GetSymbolInfo.bin
deleted file mode 100644
index b8a7cf7..0000000
--- a/macros/SymbolTable/ST_GetSymbolInfo.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_InsForCntVars.bin b/macros/SymbolTable/ST_InsForCntVars.bin
deleted file mode 100644
index 12882fc..0000000
--- a/macros/SymbolTable/ST_InsForCntVars.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_InsOutArg.bin b/macros/SymbolTable/ST_InsOutArg.bin
deleted file mode 100644
index ec9970c..0000000
--- a/macros/SymbolTable/ST_InsOutArg.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_InsOutArg.sci b/macros/SymbolTable/ST_InsOutArg.sci
index f4958ff..fd6b426 100644
--- a/macros/SymbolTable/ST_InsOutArg.sci
+++ b/macros/SymbolTable/ST_InsOutArg.sci
@@ -47,8 +47,6 @@ PrintStringInfo('***Putting output arguments in the symbol table***',ReportFileN
// ---------------------------
// --- End Initialization. ---
// ---------------------------
-
-
for counteroutput = 1:NOutArg
// #RNU_RES_B
PrintStringInfo(' Symbol ""'+OutArg(counteroutput).Name+'""',ReportFileName,'file','y','n');
diff --git a/macros/SymbolTable/ST_Load.bin b/macros/SymbolTable/ST_Load.bin
deleted file mode 100644
index f158c2b..0000000
--- a/macros/SymbolTable/ST_Load.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_MatchSymbol.bin b/macros/SymbolTable/ST_MatchSymbol.bin
deleted file mode 100644
index 278560d..0000000
--- a/macros/SymbolTable/ST_MatchSymbol.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_Save.bin b/macros/SymbolTable/ST_Save.bin
deleted file mode 100644
index 4aa50a2..0000000
--- a/macros/SymbolTable/ST_Save.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/ST_Set.bin b/macros/SymbolTable/ST_Set.bin
deleted file mode 100644
index cbd2627..0000000
--- a/macros/SymbolTable/ST_Set.bin
+++ /dev/null
Binary files differ
diff --git a/macros/SymbolTable/lib b/macros/SymbolTable/lib
index 102c8c9..ad10f77 100644
--- a/macros/SymbolTable/lib
+++ b/macros/SymbolTable/lib
Binary files differ