aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2010-03-26 23:58:26 +0800
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-03-27 04:45:35 +0800
commit56daae923f75506d49ff9677c7d629028925d9ef (patch)
tree083c706870103e904612bc56b1391e37033ee479 /modules
parent181b10d8b83b56fb53048af5a78b6be88f665ba3 (diff)
downloadgsoc2013-evolution-56daae923f75506d49ff9677c7d629028925d9ef.tar
gsoc2013-evolution-56daae923f75506d49ff9677c7d629028925d9ef.tar.gz
gsoc2013-evolution-56daae923f75506d49ff9677c7d629028925d9ef.tar.bz2
gsoc2013-evolution-56daae923f75506d49ff9677c7d629028925d9ef.tar.lz
gsoc2013-evolution-56daae923f75506d49ff9677c7d629028925d9ef.tar.xz
gsoc2013-evolution-56daae923f75506d49ff9677c7d629028925d9ef.tar.zst
gsoc2013-evolution-56daae923f75506d49ff9677c7d629028925d9ef.zip
[win32] Converting the Windows SENS from C++ to plain C
Diffstat (limited to 'modules')
-rw-r--r--modules/windows-sens/Makefile.am2
-rw-r--r--modules/windows-sens/evolution-windows-sens.c (renamed from modules/windows-sens/evolution-windows-sens.cxx)19
2 files changed, 10 insertions, 11 deletions
diff --git a/modules/windows-sens/Makefile.am b/modules/windows-sens/Makefile.am
index 29b027fcf3..d49bad45c9 100644
--- a/modules/windows-sens/Makefile.am
+++ b/modules/windows-sens/Makefile.am
@@ -6,7 +6,7 @@ libevolution_module_windows_sens_la_CPPFLAGS = \
$(GNOME_PLATFORM_CFLAGS)
libevolution_module_windows_sens_la_SOURCES = \
- evolution-windows-sens.cxx
+ evolution-windows-sens.c
libevolution_module_windows_sens_la_LIBADD = \
$(top_builddir)/shell/libeshell.la \
diff --git a/modules/windows-sens/evolution-windows-sens.cxx b/modules/windows-sens/evolution-windows-sens.c
index 6433516544..19fecc260b 100644
--- a/modules/windows-sens/evolution-windows-sens.cxx
+++ b/modules/windows-sens/evolution-windows-sens.c
@@ -25,7 +25,6 @@ extern "C" {
#include <eventsys.h>
#include <sensevts.h>
#include <rpc.h>
-#include <stdio.h>
#include <shell/e-shell.h>
#include <e-util/e-extension.h>
@@ -42,16 +41,16 @@ _mb2wchar (const char* a)
static const char* add_curly_braces_to_uuid (const char* string_uuid)
{
- static char curly_braced_uuid_string[64];
- unsigned i;
- if (!string_uuid)
+ static char curlyBracedUuidString[64];
+ int i;
+ if (!stringUUID)
return NULL;
- curly_braced_uuid_string[0]='{';
- for (i=0; i<strlen(string_uuid) && i<60; i++)
- curly_braced_uuid_string[i+1] = string_uuid[i];
- curly_braced_uuid_string[i+1] = '}';
- curly_braced_uuid_string[i+2] = '\0';
- return curly_braced_uuid_string;
+ lstrcpy(curlyBracedUuidString,"{");
+ i = strlen(curlyBracedUuidString);
+ lstrcat(curlyBracedUuidString+i,stringUUID);
+ i = strlen(curlyBracedUuidString);
+ lstrcat(curlyBracedUuidString+i,"}");
+ return curlyBracedUuidString;
}