summaryrefslogtreecommitdiff
path: root/macros/SymbolTable/ST_FindPos.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/SymbolTable/ST_FindPos.sci')
-rw-r--r--macros/SymbolTable/ST_FindPos.sci92
1 files changed, 46 insertions, 46 deletions
diff --git a/macros/SymbolTable/ST_FindPos.sci b/macros/SymbolTable/ST_FindPos.sci
index 737b7de4..2bb94b9e 100644
--- a/macros/SymbolTable/ST_FindPos.sci
+++ b/macros/SymbolTable/ST_FindPos.sci
@@ -1,46 +1,46 @@
-function [TBFlagfound,TBPosition] = ST_FindPos(TBName,SymbolTableFileName)
-// function [TBFlagfound,TBPosition] = ST_FindPos(TBName,SymbolTableFileName)
-// -----------------------------------------------------------------
-// #RNU_RES_B
-// Finds position of symbol TBName in the symbol table.
-//
-// Input data:
-// //NUT: add description here
-//
-// Output data:
-// //NUT: add description here
-//
-// #RNU_RES_E
-// 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),2,2);
-
-// --- Load symbol table. ---
-SCI2CSymbolTable = ST_Load(SymbolTableFileName);
-
-// --- Find position of the line to be removed. ---
-TBFlagfound = 0;
-TBPosition = 0;
-NEntries = max(size(SCI2CSymbolTable));
-for countertable = 1:NEntries
- if (mtlb_strcmp(TBName,SCI2CSymbolTable(countertable).Name))
- TBFlagfound = TBFlagfound + 1;
- TBPosition = countertable;
- end
-end
-
-if (TBFlagfound > 1)
- error(9999, 'Symbol table conflict: found two symbols with the same name ""'+TBName+'"".');
-end
-
-endfunction
+function [TBFlagfound,TBPosition] = ST_FindPos(TBName,SymbolTableFileName)
+// function [TBFlagfound,TBPosition] = ST_FindPos(TBName,SymbolTableFileName)
+// -----------------------------------------------------------------
+// #RNU_RES_B
+// Finds position of symbol TBName in the symbol table.
+//
+// Input data:
+// //NUT: add description here
+//
+// Output data:
+// //NUT: add description here
+//
+// #RNU_RES_E
+// 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),2,2);
+
+// --- Load symbol table. ---
+SCI2CSymbolTable = ST_Load(SymbolTableFileName);
+
+// --- Find position of the line to be removed. ---
+TBFlagfound = 0;
+TBPosition = 0;
+NEntries = max(size(SCI2CSymbolTable));
+for countertable = 1:NEntries
+ if (mtlb_strcmp(TBName,SCI2CSymbolTable(countertable).Name))
+ TBFlagfound = TBFlagfound + 1;
+ TBPosition = countertable;
+ end
+end
+
+if (TBFlagfound > 1)
+ error(9999, 'Symbol table conflict: found two symbols with the same name ""'+TBName+'"".');
+end
+
+endfunction