summaryrefslogtreecommitdiff
path: root/macros/SymbolTable/ST_Set.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/SymbolTable/ST_Set.sci')
-rw-r--r--macros/SymbolTable/ST_Set.sci98
1 files changed, 49 insertions, 49 deletions
diff --git a/macros/SymbolTable/ST_Set.sci b/macros/SymbolTable/ST_Set.sci
index 778f91aa..320c37b3 100644
--- a/macros/SymbolTable/ST_Set.sci
+++ b/macros/SymbolTable/ST_Set.sci
@@ -1,49 +1,49 @@
-function ST_Set(TBName,TBType,TBSize,TBValue,TBFindLike,TBDimension,SymbolTableFileName)
-// function ST_Set(TBName,TBType,TBSize,TBValue,TBFindLike,TBDimension,SymbolTableFileName)
-// -----------------------------------------------------------------
-// Set function for the symbol table.
-//
-// Input data:
-// //NUT: add description here
-//
-// Output data:
-// //NUT: add description here
-//
-// Status:
-// 26-Oct-2007 -- Raffaele Nutricato: Author.
-// 26-Oct-2007 -- Alberto Morea: Test Ok.
-//
-// Copyright 2007 Raffaele Nutricato & Alberto Morea.
-// Contact: raffaele.nutricato@tiscali.it
-// -----------------------------------------------------------------
-
-
-// ------------------------------
-// --- Check input arguments. ---
-// ------------------------------
-SCI2CNInArgCheck(argn(2),7,7);
-
-// --- Load symbol table. ---
-SCI2CSymbolTable = ST_Load(SymbolTableFileName);
-
-// --- Find symbol position (If exists). ---
-[TBFlagfound,TBPosition] = ST_FindPos(TBName,SymbolTableFileName);
-
-if (TBFlagfound == 0)
- TBPosition = max(size(SCI2CSymbolTable))+1;
-end
-
-// --- Update symbol table. ---
-SCI2CSymbolTable(TBPosition).Name = TBName; // string.
-SCI2CSymbolTable(TBPosition).Type = TBType; // char.
-SCI2CSymbolTable(TBPosition).Size = TBSize; // structure of two strings (Size(1) and Size(2)).
-SCI2CSymbolTable(TBPosition).Value = TBValue; // int/real/complex number. %nan when the value is not available or isn't a scalar.
-SCI2CSymbolTable(TBPosition).FindLike = TBFindLike; // int number. FindLike = 1, when the symbol comes from a find-like function.
- // FindLike = -1 when the function is not find-like but it is making use of input arguments that are find-like.
- // FindLike = 0 in all other cases.
-SCI2CSymbolTable(TBPosition).Dimension = TBDimension; // int number.
-
-// --- Save symbol table. ---
-ST_Save(SymbolTableFileName,SCI2CSymbolTable);
-
-endfunction
+function ST_Set(TBName,TBType,TBSize,TBValue,TBFindLike,TBDimension,SymbolTableFileName)
+// function ST_Set(TBName,TBType,TBSize,TBValue,TBFindLike,TBDimension,SymbolTableFileName)
+// -----------------------------------------------------------------
+// Set function for the symbol table.
+//
+// Input data:
+// //NUT: add description here
+//
+// Output data:
+// //NUT: add description here
+//
+// Status:
+// 26-Oct-2007 -- Raffaele Nutricato: Author.
+// 26-Oct-2007 -- Alberto Morea: Test Ok.
+//
+// Copyright 2007 Raffaele Nutricato & Alberto Morea.
+// Contact: raffaele.nutricato@tiscali.it
+// -----------------------------------------------------------------
+
+
+// ------------------------------
+// --- Check input arguments. ---
+// ------------------------------
+SCI2CNInArgCheck(argn(2),7,7);
+
+// --- Load symbol table. ---
+SCI2CSymbolTable = ST_Load(SymbolTableFileName);
+
+// --- Find symbol position (If exists). ---
+[TBFlagfound,TBPosition] = ST_FindPos(TBName,SymbolTableFileName);
+
+if (TBFlagfound == 0)
+ TBPosition = max(size(SCI2CSymbolTable))+1;
+end
+
+// --- Update symbol table. ---
+SCI2CSymbolTable(TBPosition).Name = TBName; // string.
+SCI2CSymbolTable(TBPosition).Type = TBType; // char.
+SCI2CSymbolTable(TBPosition).Size = TBSize; // structure of two strings (Size(1) and Size(2)).
+SCI2CSymbolTable(TBPosition).Value = TBValue; // int/real/complex number. %nan when the value is not available or isn't a scalar.
+SCI2CSymbolTable(TBPosition).FindLike = TBFindLike; // int number. FindLike = 1, when the symbol comes from a find-like function.
+ // FindLike = -1 when the function is not find-like but it is making use of input arguments that are find-like.
+ // FindLike = 0 in all other cases.
+SCI2CSymbolTable(TBPosition).Dimension = TBDimension; // int number.
+
+// --- Save symbol table. ---
+ST_Save(SymbolTableFileName,SCI2CSymbolTable);
+
+endfunction