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 MarkupRich 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
3c3
< * $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 $

37c37,38
<
---

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

62d62
< #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
3c3
< * $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 $

39,40c39
< #include <parallel/sort.h>
<
---

> #include <algorithm>

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

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

1233c1232
< 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());

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

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-cleanup