helpcgicc - Support: sr #106786, diff fixes


sr #106786: diff fixes

Submitted by:  None
Submitted on:  Mon 25 May 2009 12:20:46 AM UTC  
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: sebastien diaz <sebdiaz>
Originator Email: -unavailable-Open/Closed: Open
Operating System: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Mon 25 May 2009 12:20:46 AM UTC, original submission:

I noticed that my fixes to some of the demo programs in 3.2.6 varied slightly different from what seems to be available in 3.2.8.

Awkward as it seems, the single include of string.h gets memcpy.

$ diff cgicc-3.2.6/demo/dns.cpp cgicc-3.2.8/demo/dns.cpp
< * $Id: dns.cpp,v 1.24 2007/07/02 18:48:19 sebdiaz Exp $

> * $Id: dns.cpp,v 1.25 2009/01/03 17:26:43 sebdiaz Exp $


> #include <stdio.h>
> #include <memory.h>

< #include <string.h>

It may a bit unfair, but using the parallel sort does not require the use of the std namespace,

$ diff cgicc-3.2.6/demo/cardgame.cpp cgicc-3.2.8/demo/cardgame.cpp
< * $Id: cardgame.cpp,v 1.6 2007/07/15 12:38:00 sebdiaz Exp $

> * $Id: cardgame.cpp,v 1.7 2009/01/03 17:26:43 sebdiaz Exp $

< #include <parallel/sort.h>

> #include <algorithm>

< sort (vPlayer->cardsList->begin(),vPlayer->cardsList->end());

> std::sort (vPlayer->cardsList->begin(),vPlayer->cardsList->end());

< sort(readedGame->playersList->at(pId)->cardsList->begin(),readedGame->playersList->at(pId)->cardsList->end());

> std::sort(readedGame->playersList->at(pId)->cardsList->begin(),readedGame->playersList->at(pId)->cardsList->end());



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.


Please enter the title of George Orwell's famous dystopian book (it's a date):



Follows 1 latest change.

Date Changed By Updated Field Previous Value => Replaced By
Sat 21 Nov 2009 10:13:52 PM UTCsebdiazAssigned toNone=>sebdiaz

Back to the top

Powered by Savane 3.1-cleanup1