Re: [Powertop] [PATCH v2 2/2] Add stubs to support Android platform

2012-09-28 Thread Sergey Senozhatsky
On (09/28/12 09:54), Chris Ferron wrote: [..] > Well to be fair, not that I agree any-more, but years ago it was > common practice to disable exceptions (via the compiler) for C++ in > very specialized "REAL" "Embedded Systems". This practice was > problematic in that you needed to have a will defi

Re: [Powertop] [PATCH v2 2/2] Add stubs to support Android platform

2012-09-28 Thread Chris Ferron
On 09/28/2012 10:10 AM, Sergey Senozhatsky wrote: On (09/28/12 09:54), Chris Ferron wrote: [..] Well to be fair, not that I agree any-more, but years ago it was common practice to disable exceptions (via the compiler) for C++ in very specialized "REAL" "Embedded Systems". This practice was probl

Re: [Powertop] [PATCH v2 2/2] Add stubs to support Android platform

2012-09-28 Thread Chris Ferron
On 09/26/2012 04:00 PM, Sergey Senozhatsky wrote: On (09/27/12 00:09), Magnus Fromreide wrote: That they fail to throw exceptions from new is no reason to disable set_new_handler, the newhandler is called by the runtime on out of memory and is intended to allow the user to try fixing the issue.

Re: [Powertop] [PATCH v2 2/2] Add stubs to support Android platform

2012-09-27 Thread Magnus Fromreide
On Mon, Sep 24, 2012 at 06:58:04PM +0530, Rajagopal Venkat wrote: > This patch adds stubs for features that are not supported > by Andriod. An header file which defines all stubs is > included only for Android builds. > > Signed-off-by: Rajagopal Venkat > diff --git a/src/android_stubs.h b/src/an

Re: [Powertop] [PATCH v2 2/2] Add stubs to support Android platform

2012-09-27 Thread Sergey Senozhatsky
On (09/27/12 00:09), Magnus Fromreide wrote: > That they fail to throw exceptions from new is no reason to disable > set_new_handler, the newhandler is called by the runtime on out of memory > and is intended to allow the user to try fixing the issue. This is true for > the noexcept version as well

[Powertop][PATCH v2 2/2] Add stubs to support Android platform

2012-09-24 Thread Rajagopal Venkat
This patch adds stubs for features that are not supported by Andriod. An header file which defines all stubs is included only for Android builds. Signed-off-by: Rajagopal Venkat --- Android.mk | 33 ++- src/android_stubs.h | 65 +++