summaryrefslogtreecommitdiff
path: root/plugins/Console
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-26 23:41:55 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-26 23:41:55 +0000
commit25221b7d2afb70f82eb3805330fd39a6f6708049 (patch)
tree6fdd3eb5c5642788e1f8286385b15535f9a7ec16 /plugins/Console
parentef81e9edc10e2478f514e1fbfb0828ad1e7d8e49 (diff)
mk: removed all LIST_INTERFACE, MI_INTERFACE & UTF8_INTERFACE instances.
all related functions moved to mir_core. git-svn-id: http://svn.miranda-ng.org/main/trunk@644 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Console')
-rw-r--r--plugins/Console/Console.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/plugins/Console/Console.cpp b/plugins/Console/Console.cpp
index 3a5db7f64c..b0f0a97073 100644
--- a/plugins/Console/Console.cpp
+++ b/plugins/Console/Console.cpp
@@ -82,9 +82,6 @@ typedef struct {
} LOGWIN;
-struct MM_INTERFACE mmi;
-struct UTF8_INTERFACE utfi;
-struct LIST_INTERFACE li;
static SortedList lModules = {0};
@@ -750,7 +747,7 @@ static INT_PTR CALLBACK ConsoleDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,L
if (!gSingleMode)
{
lw2.Module = dumpMsg->szModule;
- if (!li.List_GetIndex(&lModules, &lw2, &idx))
+ if (!List_GetIndex(&lModules, &lw2, &idx))
SendMessage(hwndDlg, HM_ADD, (WPARAM)idx, (LPARAM)dumpMsg->szModule);
lw = (LOGWIN*)lModules.items[idx];
@@ -778,7 +775,7 @@ static INT_PTR CALLBACK ConsoleDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,L
lw = (LOGWIN*)mir_calloc( sizeof(LOGWIN));
lw->Module = (char*)mir_strdup(str);
- li.List_Insert(&lModules, lw, idx);
+ List_Insert(&lModules, lw, idx);
if (!gSingleMode && lParam)
{
@@ -859,7 +856,7 @@ static INT_PTR CALLBACK ConsoleDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,L
}
}
- li.List_RemovePtr(&lModules, lw);
+ List_RemovePtr(&lModules, lw);
mir_free(lw->Module);
mir_free(lw);
return TRUE;
@@ -1389,12 +1386,7 @@ static UINT logicons[] = {IDI_EMPTY, IDI_ARROW, IDI_IN, IDI_OUT, IDI_INFO};
void InitConsole()
{
int i;
- HICON hi;
-
- mir_getMMI(&mmi);
- mir_getUTFI(&utfi);
- mir_getLI(&li);
-
+ HICON hi;
lModules.sortFunc = (FSortFunc)stringCompare;
lModules.increment = 5;
@@ -1433,7 +1425,7 @@ void ShutdownConsole(void)
{
int i;
- li.List_Destroy(&lModules);
+ List_Destroy(&lModules);
if (gImg) ImageList_Destroy(gImg);