diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-02 21:21:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-02 21:21:45 +0000 |
commit | d2946eb5bb3692806bb67e6e8a8d981f0e599850 (patch) | |
tree | 55dc7a15199c69824aa1a4550a326369c9a372f5 /plugins/Watrack_MPD/src | |
parent | 53551a6153e66fff4b35eb92366b0d1be906d624 (diff) |
removal of the rest of __DATE__ and __TIME__
git-svn-id: http://svn.miranda-ng.org/main/trunk@1332 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack_MPD/src')
-rwxr-xr-x | plugins/Watrack_MPD/src/init.c | 16 | ||||
-rwxr-xr-x | plugins/Watrack_MPD/src/utilities.c | 78 |
2 files changed, 2 insertions, 92 deletions
diff --git a/plugins/Watrack_MPD/src/init.c b/plugins/Watrack_MPD/src/init.c index 4d4f9eba29..ca3d9e71b0 100755 --- a/plugins/Watrack_MPD/src/init.c +++ b/plugins/Watrack_MPD/src/init.c @@ -16,7 +16,6 @@ #include "commonheaders.h" - #define PLUGIN_NAME "Watrack_MPD" HINSTANCE hInst; @@ -26,10 +25,9 @@ static int OnModulesLoaded(WPARAM wParam,LPARAM lParam); extern char *date(); extern int WaMpdOptInit(WPARAM wParam,LPARAM lParam); - PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), - 0, + PLUGIN_NAME, PLUGIN_MAKE_VERSION(0,0,0,4), "Music Player Daemon support for watrack", "sss, others..", @@ -37,8 +35,7 @@ PLUGININFOEX pluginInfo={ "© 2009 sss, others...", "http://sss.chaoslab.ru:81/tracker/mim_plugs/", 1, //unicode - { 0x692e87d0, 0x6c71, 0x4cdc, { 0x9e, 0x36, 0x2b, 0x2d, 0x69, 0xfb, 0xdc, 0x4c } } - + { 0x692e87d0, 0x6c71, 0x4cdc, { 0x9e, 0x36, 0x2b, 0x2d, 0x69, 0xfb, 0xdc, 0x4c } } }; BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) @@ -49,15 +46,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { - { - static char plugname[52]; - strcpy(plugname, PLUGIN_NAME" ["); - strcat(plugname, date()); - strcat(plugname, " "); - strcat(plugname, __TIME__); - strcat(plugname, "]"); - pluginInfo.shortName = plugname; - } return &pluginInfo; } diff --git a/plugins/Watrack_MPD/src/utilities.c b/plugins/Watrack_MPD/src/utilities.c index 444a6d210d..4d63f1f7f4 100755 --- a/plugins/Watrack_MPD/src/utilities.c +++ b/plugins/Watrack_MPD/src/utilities.c @@ -17,23 +17,6 @@ #include "commonheaders.h" -/*HANDLE CreateThreadEx(pThreadFuncEx AFunc, void* arg, DWORD* pThreadID) -{ - FORK_THREADEX_PARAMS params; - DWORD dwThreadId; - HANDLE hThread; - - params.pFunc = AFunc; - params.arg = arg; - params.iStackSize = 0; - params.threadID = &dwThreadId; - hThread = (HANDLE)CallService(MS_SYSTEM_FORK_THREAD_EX, 0, (LPARAM)¶ms); - if (pThreadID) - *pThreadID = dwThreadId; - - return hThread; -}*/ - TCHAR* __stdcall UniGetContactSettingUtf(HANDLE hContact, const char *szModule,const char* szSetting, TCHAR* szDef) { DBVARIANT dbv = {DBVT_DELETED}; @@ -46,67 +29,6 @@ TCHAR* __stdcall UniGetContactSettingUtf(HANDLE hContact, const char *szModule,c return szRes; } -// case-insensitive _tcsstr -/*#define NEWTSTR_ALLOCA(A) (A==NULL)?NULL:_tcscpy((TCHAR*)alloca(sizeof(TCHAR)*(_tcslen(A)+1)),A) -const TCHAR *stristr( const TCHAR *str, const TCHAR *substr) -{ - TCHAR *p; - TCHAR *str_up = NEWTSTR_ALLOCA(str); - TCHAR *substr_up = NEWTSTR_ALLOCA(substr); - - CharUpperBuff(str_up, lstrlen(str_up)); - CharUpperBuff(substr_up, lstrlen(substr_up)); - - p = _tcsstr(str_up, substr_up); - return p ? (str + (p - str_up)) : NULL; -}*/ - -char *date() -{ - static char d[11]; - char *tmp = __DATE__, m[4], mn[3] = "01"; - m[0]=tmp[0]; - m[1]=tmp[1]; - m[2]=tmp[2]; - if(strstr(m,"Jan")) - strcpy(mn,"01"); - else if(strstr(m,"Feb")) - strcpy(mn,"02"); - else if(strstr(m,"Mar")) - strcpy(mn,"03"); - else if(strstr(m,"Apr")) - strcpy(mn,"04"); - else if(strstr(m,"May")) - strcpy(mn,"05"); - else if(strstr(m,"Jun")) - strcpy(mn,"06"); - else if(strstr(m,"Jul")) - strcpy(mn,"07"); - else if(strstr(m,"Aug")) - strcpy(mn,"08"); - else if(strstr(m,"Sep")) - strcpy(mn,"09"); - else if(strstr(m,"Oct")) - strcpy(mn,"10"); - else if(strstr(m,"Nov")) - strcpy(mn,"11"); - else if(strstr(m,"Dec")) - strcpy(mn,"12"); - d[0]=tmp[7]; - d[1]=tmp[8]; - d[2]=tmp[9]; - d[3]=tmp[10]; - d[4]='.'; - d[5]=mn[0]; - d[6]=mn[1]; - d[7]='.'; - if (tmp[4] == ' ') - d[8] = '0'; - else - d[8]=tmp[4]; - d[9]=tmp[5]; - return d; -} HANDLE NetLib_CreateConnection(HANDLE hUser, NETLIBOPENCONNECTION* nloc) //from icq ) { HANDLE hConnection; |