* Bug 14606 fixed: now `[names,mem]=who()` returns memory used by variables
[scilab.git] / scilab / modules / ast / includes / symbol / variables.hxx
index c96549d..a18ef6b 100644 (file)
@@ -155,14 +155,14 @@ struct Variables
     bool remove(const Symbol& _key, int _iLevel);
     int getMacrosName(std::list<std::wstring>& lst);
     int getVarsName(std::list<std::wstring>& lst);
-    bool getVarsNameForWho(std::list<std::wstring>& lstVarName, int* iVarLenMax, bool bSorted = false) const;
-    bool getGlobalNameForWho(std::list<std::wstring>& lstVarName, int* iVarLenMax, bool bSorted = false) const;
+    bool getVarsInfoForWho(std::list<std::pair<std::wstring, int>>& lst, int* iVarLenMax, bool bSorted = false) const;
+    bool getGlobalInfoForWho(std::list<std::pair<std::wstring, int>>& lst, int* iVarLenMax, bool bSorted = false) const;
     int getProtectedVarsName(std::list<std::wstring>& lstVarName) const;
     int getFunctionsName(std::list<std::wstring>& lst);
     int getFunctionList(std::list<Symbol>& lst, std::wstring _stModuleName, int _iLevel);
     int getFunctionList(std::list<types::Callable *>& lst, std::wstring _stModuleName, int _iLevel);
     int getVarsToVariableBrowser(std::list<Variable*>& lst);
-    int getCurrentScope(std::list<std::wstring>& lst, int level, bool sorted);
+    int getCurrentScope(std::list<std::pair<std::wstring, int>>& lst, int level, bool sorted);
     bool putInPreviousScope(Variable* _var, types::InternalType* _pIT, int _iLevel);
 
     //globals