libt2n-git Archives

Subject: C++ inter-process communication library branch, limit-exported-symbol-name-length, updated. v0.7-6-gf1b96c8

From: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 21 Oct 2016 17:31:56 +0200 (CEST)
The branch, limit-exported-symbol-name-length has been updated
       via  f1b96c88faa082a78a988a778c1db2d52bc7605b (commit)
      from  bde613e15a7a063ffd21bead6d3a6e0f01df0ff2 (commit)


- Log -----------------------------------------------------------------
commit f1b96c88faa082a78a988a778c1db2d52bc7605b
Author: Christian Herdtweck <christian.herdtweck@xxxxxxxxxxxxx>
Date:   Fri Oct 21 17:31:53 2016 +0200

    Ensure that return and command class names are different

-----------------------------------------------------------------------

Summary of changes:
 codegen/main.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/codegen/main.cpp b/codegen/main.cpp
index 0365600..4cf4fe7 100644
--- a/codegen/main.cpp
+++ b/codegen/main.cpp
@@ -225,11 +225,11 @@ struct t2n_procedure
 
     std::string ret_classname() const
     {
-        return (name+mangled+"_res").substr(0, 
BOOST_SERIALIZATION_MAX_KEY_SIZE-1);
+        return (name+mangled).substr(0, BOOST_SERIALIZATION_MAX_KEY_SIZE-5) + 
"_res";
     }
     std::string cmd_classname() const
     {
-        return (name+mangled+"_cmd").substr(0, 
BOOST_SERIALIZATION_MAX_KEY_SIZE-1);
+        return (name+mangled).substr(0, BOOST_SERIALIZATION_MAX_KEY_SIZE-5) + 
"_cmd";
     }
     bool hasReturn() const {return !ret_type.isVoid();}
 };


hooks/post-receive
-- 
C++ inter-process communication library

--
libt2n-git - see http://www.intra2net.com/en/developer/libt2n for details.
To unsubscribe send a mail to libt2n-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • C++ inter-process communication library branch, limit-exported-symbol-name-length, updated. v0.7-6-gf1b96c8, libt2n-git <=