Go Back   ZeroC Forums > Patches

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-31-2006
dwayne's Avatar
dwayne dwayne is offline
ZeroC Staff
 
Name: Dwayne Boone
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Jan 2005
Location: St. John's, Newfoundland
Posts: 164
Patch #6 for Ice 3.1.0: byte sequences in dictionaries

Hi,

The following patch is a fix for the slice2cpp compiler, which generates incorrect code when a byte sequence is used in a dictionary.

To apply the patch:

$ cd Ice-3.1.0
$ patch -p0 < patch.slice2cpp.txt

Regards,
Dwayne
Attached Files
File Type: txt patch.slice2cpp.txt (1.1 KB, 114 views)

Last edited by dwayne : 07-31-2006 at 08:43 AM.
Reply With Quote
  #2 (permalink)  
Old 07-31-2006
ctennis ctennis is offline
Registered User
 
Name: Caleb Tennis
Organization: AEI
Project: Project GINA
 
Join Date: Mar 2006
Posts: 119
FYI, this patch required a small tweak for me to get it to apply properly:

The first hunk had a newline in it that wasn't in the original source for me. I used this hunk instead:

*** 857,862 ****
--- 857,866 ----
StringList md;
md.push_back("cpp:array");
string tmpParam = "___";
+ //
+ // Catch some case in which it is not possible to just prepend
+ // underscores to param to use as temporary variable.
+ //
if(fixedParam.find("(*") == 0)
{
tmpParam += fixedParam.substr(2, fixedParam.length() - 3);
__________________
Caleb Tennis
Analytical Engineering, Inc.
http://www.aei-tech.com
Project: Our facility infrastructure heavily utilizes Ice

Gentoo ebuild maintainer for Ice, IceRuby, etc.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
My first Python code fails with dictionaries Anhur Help Center 2 10-02-2006 09:03 AM
UnmarshalOutOfBoundsException when sending byte sequences csammis Help Center 3 08-03-2005 03:37 PM
java dictionaries xdm Help Center 1 03-03-2005 09:03 PM
desing question about dictionaries xdm Help Center 0 11-23-2004 12:03 PM
Chars to Ice::Byte catalin Help Center 6 12-14-2003 09:03 AM


All times are GMT -4. The time now is 03:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.