# HG changeset patch # User Richard Laager # Date 1130286801 0 # Node ID 5c50be815a4ee56462ec014889465c7785721f07 # Parent f588ced280bf329661eafe78adfe3f210ddacfc7 [gaim-migrate @ 14119] Comment changes. This one was weird. We apparently had two copies of a couple big function calls. One copy per function was completely commented out with /* */ and had // comments describing the arguments. The other copies were just the straight function calls without comments. I moved the comments to the in-use function call, changing // to /* */ and removed the duplication. committer: Tailor Script diff -r f588ced280bf -r 5c50be815a4e src/win32/IdleTracker/idletrack.c --- a/src/win32/IdleTracker/idletrack.c Wed Oct 26 00:31:45 2005 +0000 +++ b/src/win32/IdleTracker/idletrack.c Wed Oct 26 00:33:21 2005 +0000 @@ -40,19 +40,12 @@ BOOL fInit; /* Set up the shared memory. */ - /*hMapObject = CreateFileMapping((HANDLE) 0xFFFFFFFF, // use paging file - NULL, // no security attributes - PAGE_READWRITE, // read/write access - 0, // size: high 32-bits - sizeof(DWORD), // size: low 32-bits - "timermem"); // name of map object - */ - hMapObject = CreateFileMapping((HANDLE) 0xFFFFFFFF, - NULL, - PAGE_READWRITE, - 0, - sizeof(DWORD), - "timermem"); + hMapObject = CreateFileMapping((HANDLE) 0xFFFFFFFF, /* use paging file */ + NULL, /* no security attributes */ + PAGE_READWRITE, /* read/write access */ + 0, /* size: high 32-bits */ + sizeof(DWORD), /* size: low 32-bits */ + "timermem"); /* name of map object */ if (hMapObject == NULL) return NULL; @@ -61,17 +54,11 @@ fInit = (GetLastError() != ERROR_ALREADY_EXISTS); /* Get a pointer to the file-mapped shared memory. */ - /*lastTime = (DWORD*) MapViewOfFile(hMapObject, // object to map view of - * FILE_MAP_WRITE, // read/write access - * 0, // high offset: map from - * 0, // low offset: beginning - * 0); // default: map entire file - */ - lastTime = (DWORD*) MapViewOfFile(hMapObject, - FILE_MAP_WRITE, - 0, - 0, - 0); + lastTime = (DWORD*) MapViewOfFile(hMapObject, /* object to map view of */ + FILE_MAP_WRITE, /* read/write access */ + 0, /* high offset: map from */ + 0, /* low offset: beginning */ + 0); /* default: map entire file */ if (lastTime == NULL) return NULL;