diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 06:07:51 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 06:07:51 +0000 |
commit | 2f0617376dcb4be5b837c5f888762e4e1ef3aceb (patch) | |
tree | 25d3640030a60a7e4b4006877064f1ec28936c7e /plugins/Variables/src/parse_alias.cpp | |
parent | 6612e80e4d91179b9a315cf0c81a20cf96c9b415 (diff) |
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@13272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Variables/src/parse_alias.cpp')
-rw-r--r-- | plugins/Variables/src/parse_alias.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/Variables/src/parse_alias.cpp b/plugins/Variables/src/parse_alias.cpp index 13c771f128..a28f0d844c 100644 --- a/plugins/Variables/src/parse_alias.cpp +++ b/plugins/Variables/src/parse_alias.cpp @@ -28,7 +28,7 @@ struct ALIASREGISTER };
static LIST<ALIASREGISTER> arAliases(5);
-static CRITICAL_SECTION csAliasRegister;
+static mir_cs csAliasRegister;
static ALIASREGISTER *searchAliasRegister(TCHAR *szAlias)
{
@@ -190,13 +190,10 @@ static TCHAR *parseAddAlias(ARGUMENTSINFO *ai) void registerAliasTokens()
{
registerIntToken(ADDALIAS, parseAddAlias, TRF_FUNCTION | TRF_UNPARSEDARGS, LPGEN("Variables")"\t(x,y)\t"LPGEN("stores y as alias named x"));//TRF_UNPARSEDARGS);
- InitializeCriticalSection(&csAliasRegister);
}
void unregisterAliasTokens()
{
- DeleteCriticalSection(&csAliasRegister);
-
for (int i = 0; i < arAliases.getCount(); i++) {
ALIASREGISTER *p = arAliases[i];
for (unsigned j = 0; j < p->argc; j++)
|