Hi All,

While porting some module on Linux I feel that there are lot of
Windows specific call exists. IMHO we should at least wrap these
function with OS macros and bound further development to use that
functions. This will really reduce the porting effort  on different
OS, because whenever you start porting a module you should wrap that
function first and then do actual function. This looks like a
mechanical work and totally waste of time.

Here is the example what I want to state here.

We are using GetLastError() function  almost 100+ times. So it Should
looks like this

Calling
====
platform::GetLastError();


Function
=====
namespace platform (or any other name)
{

  int GetLastError()
  {
#if defined(OS_WIN)
    return GetLastError();
#elif defined(OS_POSIX)
    return errno;
#endif
}

}


Comments?

-- 
   Ibrar Ahmed
   EnterpriseDB   http://www.enterprisedb.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to