- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -12,12 +12,27 @@
   GCC is currently being converted from C to C++, and it looks like this 
conversion is going to be merged into the upcoming GCC 4.8 to be released in 
2013. Some inspiration and ideas for refactoring OpenSAF can be found when 
looking at their wiki page for the C++ conversion, even though not everything 
is applicable to us. Their page can be found here:  
http://gcc.gnu.org/wiki/cxx-conversion
 
 
-Changed 3 weeks ago by hafe ¶
-  changeset: 4207:096b6746fd2e
-tag: tip
-user: Hans Nordeback <hans.nordeback@…>
-date: Mon Apr 22 14:53:08 2013 +0200
-summary: avsv: convert AMF director C++ (part 1, #2631)
+changeset:   4739:ec6112920be9
+user:        Hans Nordeback <[email protected]>
+date:        Mon Nov 11 16:03:41 2013 +0100
+summary:     amfd: replace malloc/calloc with new and delete for amfd [#94]
 
+changeset:   4738:d63d3d1b6de2
+user:        Hans Nordeback <[email protected]>
+date:        Mon Nov 11 16:04:27 2013 +0100
+summary:     amfnd: replace malloc/calloc with new and delete for amfnd [#94]
 
+changeset:   4539:7d484cc6647c
+user:        Hans Nordeback <[email protected]>
+date:        Tue Oct 08 14:56:30 2013 +0200
+summary:     amf: add c++ new_handler to enable using new instead of 
malloc/calloc [#94]
 
+changeset:   4511:67902409fb88
+user:        Hans Nordeback <[email protected]>
+date:        Mon Sep 23 14:17:32 2013 +0200
+summary:     amfnd: Convert amfnd to C++ and remove avnd prefix from files 
[#94]
+
+changeset:   4207:096b6746fd2e
+user:        Hans Nordeback <[email protected]>
+date:        Mon Apr 22 14:53:08 2013 +0200
+summary:     avsv: convert AMF director C++ (part 1, #2631)

~~~~

- **Milestone**: future --> 4.4.RC1



---

** [tickets:#94] Convert AMF to C++**

**Status:** fixed
**Created:** Mon May 13, 2013 05:00 AM UTC by Nagendra Kumar
**Last Updated:** Thu Jan 09, 2014 01:59 PM UTC
**Owner:** hano

Migrated from http://devel.opensaf.org/ticket/2631

As part of the refactoring effort in AMF, the suggestion is that AMF is 
converted from C to C++. This will make it possible to take advantage of the 
the higher-level language constructs in the C++ standard library, for example 
std::list, std::string, std::set and std::map. By using higher level language 
features like these, the code can be simplified and made easier to maintain.


Since C is basically a subset of C++, conversion from C to C++ should be fairly 
straightforward. In the best case, it can be a simple matter of renaming the C 
source files from *.c to *.cc and the header files from *.h to *.hh


In reality, there are a few minor differences between C and C++. For example, 
functions taking no parameters are declared differently in C and C++. Also C++ 
has stricter type-checking than C which means that in some cases C++ may 
require an explicit cast where C is happy with an implicit cast.
----------------------------------------------
Changed 9 months ago by anwi ¶
  GCC is currently being converted from C to C++, and it looks like this 
conversion is going to be merged into the upcoming GCC 4.8 to be released in 
2013. Some inspiration and ideas for refactoring OpenSAF can be found when 
looking at their wiki page for the C++ conversion, even though not everything 
is applicable to us. Their page can be found here:  
http://gcc.gnu.org/wiki/cxx-conversion


changeset:   4739:ec6112920be9
user:        Hans Nordeback <[email protected]>
date:        Mon Nov 11 16:03:41 2013 +0100
summary:     amfd: replace malloc/calloc with new and delete for amfd [#94]

changeset:   4738:d63d3d1b6de2
user:        Hans Nordeback <[email protected]>
date:        Mon Nov 11 16:04:27 2013 +0100
summary:     amfnd: replace malloc/calloc with new and delete for amfnd [#94]

changeset:   4539:7d484cc6647c
user:        Hans Nordeback <[email protected]>
date:        Tue Oct 08 14:56:30 2013 +0200
summary:     amf: add c++ new_handler to enable using new instead of 
malloc/calloc [#94]

changeset:   4511:67902409fb88
user:        Hans Nordeback <[email protected]>
date:        Mon Sep 23 14:17:32 2013 +0200
summary:     amfnd: Convert amfnd to C++ and remove avnd prefix from files [#94]

changeset:   4207:096b6746fd2e
user:        Hans Nordeback <[email protected]>
date:        Mon Apr 22 14:53:08 2013 +0200
summary:     avsv: convert AMF director C++ (part 1, #2631)



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to