maincgicc - Support: sr #106786, diff fixes

 
 

sr #106786: diff fixes

Submitter:  None
Submitted:  Mon 25 May 2009 12:20:46 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  sebdiaz
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2009-11-21 sebdiaz Assigned toNone sebdiaz

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code