summaryrefslogtreecommitdiff
path: root/plugins/ConnectionNotify/src/debug.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-27 07:36:58 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-27 07:36:58 +0000
commit1319f3775c793bdfb8299f5757e7c198d7a61339 (patch)
treee132a96411aedeb5b86cdea901b15ff8028f00f5 /plugins/ConnectionNotify/src/debug.cpp
parentfd511dcd6739e2994445833ac8f03f01a2c5df95 (diff)
ConnectionNotify common project
git-svn-id: http://svn.miranda-ng.org/main/trunk@13191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ConnectionNotify/src/debug.cpp')
-rw-r--r--plugins/ConnectionNotify/src/debug.cpp72
1 files changed, 36 insertions, 36 deletions
diff --git a/plugins/ConnectionNotify/src/debug.cpp b/plugins/ConnectionNotify/src/debug.cpp
index 2af13f218c..d20d46f314 100644
--- a/plugins/ConnectionNotify/src/debug.cpp
+++ b/plugins/ConnectionNotify/src/debug.cpp
@@ -1,17 +1,17 @@
-#include "ConnectionNotify.h"
+#include "stdafx.h"
-void _OutputDebugString(TCHAR* lpOutputString, ... )
+void _OutputDebugString(TCHAR* lpOutputString, ...)
{
TCHAR OutMsg[MAX_LENGTH];
TCHAR format[MAX_LENGTH];
- int i,j;
- va_list argptr;
+ int i, j;
+ va_list argptr;
- va_start( argptr, lpOutputString );
+ va_start(argptr, lpOutputString);
- for(i=0,j=0;lpOutputString[i] != '\0';i++)
+ for (i = 0, j = 0; lpOutputString[i] != '\0'; i++)
{
format[j++] = lpOutputString[i];
format[j] = '\0';
@@ -21,44 +21,44 @@ void _OutputDebugString(TCHAR* lpOutputString, ... )
format[j++] = lpOutputString[++i];
format[j] = '\0';
- switch(lpOutputString[i])
+ switch (lpOutputString[i])
{
// string
case 's':
- {
- TCHAR* s = va_arg( argptr, TCHAR * );
- mir_sntprintf(OutMsg, SIZEOF(OutMsg), format, s);
- _tcsncpy(format,OutMsg,_countof(OutMsg));
- j = (int)_tcslen(format);
- _tcscat(format,_T(" "));
- break;
- }
- // character
+ {
+ TCHAR* s = va_arg(argptr, TCHAR *);
+ mir_sntprintf(OutMsg, SIZEOF(OutMsg), format, s);
+ _tcsncpy(format, OutMsg, _countof(OutMsg));
+ j = (int)_tcslen(format);
+ _tcscat(format, _T(" "));
+ break;
+ }
+ // character
case 'c':
- {
- char c = (char) va_arg( argptr, int );
- mir_sntprintf(OutMsg, SIZEOF(OutMsg), format, c);
- _tcsncpy(format,OutMsg,_countof(OutMsg));
- j = (int)_tcslen(format);
- _tcscat(format,_T(" "));
- break;
- }
- // integer
+ {
+ char c = (char)va_arg(argptr, int);
+ mir_sntprintf(OutMsg, SIZEOF(OutMsg), format, c);
+ _tcsncpy(format, OutMsg, _countof(OutMsg));
+ j = (int)_tcslen(format);
+ _tcscat(format, _T(" "));
+ break;
+ }
+ // integer
case 'd':
- {
- int d = va_arg( argptr, int );
- mir_sntprintf(OutMsg, SIZEOF(OutMsg), format, d);
- _tcsncpy(format,OutMsg,_countof(OutMsg));
- j = (int)_tcslen(format);
- _tcscat(format,_T(" "));
- break;
- }
+ {
+ int d = va_arg(argptr, int);
+ mir_sntprintf(OutMsg, SIZEOF(OutMsg), format, d);
+ _tcsncpy(format, OutMsg, _countof(OutMsg));
+ j = (int)_tcslen(format);
+ _tcscat(format, _T(" "));
+ break;
+ }
}
- format[j+1] = '\0';
+ format[j + 1] = '\0';
}
- _tcscat(format,_T("\n"));
+ _tcscat(format, _T("\n"));
OutputDebugString(format);
- va_end( argptr );
+ va_end(argptr);
}