source: contrib/GoogleGears/Linux-Firefox3.6/gears-gcc433.diff @ 4070

Revision 4070, 6.6 KB checked in by rafaelraymundo, 13 years ago (diff)

Ticket #1775 - Adicionados os fontes do googlegears ao Contrib

  • gears/geolocation/backoff_manager.cc

     
    2626#include "gears/geolocation/backoff_manager.h" 
    2727 
    2828#include <assert.h> 
     29#include <stdlib.h> 
    2930 
    3031// The baseline minimum period between network requests. 
    3132static const int kBaselineMinimumRequestInterval = 1000 * 5;  // 5 seconds 
  • gears/cctests/test.cc

     
    700700 
    701701  bool ok = false; 
    702702  JsParamType t = context->GetArgumentType(1); 
    703   if (type == STRING16(L"bool") && t == JSPARAM_BOOL || 
    704       type == STRING16(L"int") && t == JSPARAM_INT || 
    705       type == STRING16(L"double") && t == JSPARAM_DOUBLE || 
    706       type == STRING16(L"string") && t == JSPARAM_STRING16 || 
    707       type == STRING16(L"null") && t == JSPARAM_NULL || 
    708       type == STRING16(L"undefined") && t == JSPARAM_UNDEFINED || 
    709       type == STRING16(L"array") && t == JSPARAM_ARRAY || 
    710       type == STRING16(L"function") && t == JSPARAM_FUNCTION || 
    711       type == STRING16(L"object") && t == JSPARAM_OBJECT) { 
     703  if ((type == STRING16(L"bool") && t == JSPARAM_BOOL) || 
     704      (type == STRING16(L"int") && t == JSPARAM_INT) || 
     705      (type == STRING16(L"double") && t == JSPARAM_DOUBLE) || 
     706      (type == STRING16(L"string") && t == JSPARAM_STRING16) || 
     707      (type == STRING16(L"null") && t == JSPARAM_NULL) || 
     708      (type == STRING16(L"undefined") && t == JSPARAM_UNDEFINED) || 
     709      (type == STRING16(L"array") && t == JSPARAM_ARRAY) || 
     710      (type == STRING16(L"function") && t == JSPARAM_FUNCTION) || 
     711      (type == STRING16(L"object") && t == JSPARAM_OBJECT)) { 
    712712    ok = true; 
    713713  } 
    714714  context->SetReturnValue(JSPARAM_BOOL, &ok); 
  • gears/desktop/desktop.cc

     
    216216  } 
    217217 
    218218  // Resolve the icon urls 
    219   if (!shortcut_info->icon16x16.url.empty() && 
    220       !ResolveUrl(&shortcut_info->icon16x16.url, &error_) || 
    221       !shortcut_info->icon32x32.url.empty() && 
    222       !ResolveUrl(&shortcut_info->icon32x32.url, &error_) || 
    223       !shortcut_info->icon48x48.url.empty() && 
    224       !ResolveUrl(&shortcut_info->icon48x48.url, &error_) || 
    225       !shortcut_info->icon128x128.url.empty() && 
    226       !ResolveUrl(&shortcut_info->icon128x128.url, &error_)) { 
     219  if ((!shortcut_info->icon16x16.url.empty() && 
     220      !ResolveUrl(&shortcut_info->icon16x16.url, &error_)) || 
     221      (!shortcut_info->icon32x32.url.empty() && 
     222      !ResolveUrl(&shortcut_info->icon32x32.url, &error_)) || 
     223      (!shortcut_info->icon48x48.url.empty() && 
     224      !ResolveUrl(&shortcut_info->icon48x48.url, &error_)) || 
     225      (!shortcut_info->icon128x128.url.empty() && 
     226      !ResolveUrl(&shortcut_info->icon128x128.url, &error_))) { 
    227227    return false; 
    228228  } 
    229229 
  • gears/base/common/string16.h

     
    4646#define GEARS_BASE_COMMON_STRING16_H__ 
    4747 
    4848#include <string> 
     49#include <string.h> 
    4950#include "gears/base/common/basictypes.h" 
    5051 
    5152// Need to cast literals (Linux, OSX) and SQLite void* retvals (all platforms) 
  • gears/base/common/string_utils.cc

     
    2525 
    2626#include "gears/base/common/string_utils.h" 
    2727#include "third_party/convert_utf/ConvertUTF.h" 
     28#include <limits.h> 
    2829 
    2930#if defined(OS_ANDROID) 
    3031// Android is missing wcslen. This is just a wide character strlen. 
  • gears/base/common/http_utils.cc

     
    2727 
    2828#include <iterator> 
    2929#include <vector> 
     30#include <stdlib.h> 
    3031#include "gears/base/common/http_utils.h" 
    3132 
    3233// ---------------------------------------------------------------------- 
  • third_party/jsoncpp/json_reader.cc

     
    33#include <utility> 
    44#include <stdio.h> 
    55#include <assert.h> 
     6#include <string.h> 
    67 
    78#if _MSC_VER >= 1400 // VC++ 8.0 
    89#pragma warning( disable : 4996 )   // disable warning about strdup being deprecated. 
  • third_party/jsoncpp/json_value.cc

     
    11#include "third_party/jsoncpp/value.h" 
    22#include "third_party/jsoncpp/writer.h" 
    33#include <utility> 
     4#include <string.h> 
    45#include "assert.h" 
    56#ifdef JSON_USE_CPPTL 
    67# include <cpptl/conststring.h> 
  • third_party/jsoncpp/json_writer.cc

     
    22#include <utility> 
    33#include <assert.h> 
    44#include <stdio.h> 
     5#include <string.h> 
    56 
    67#if _MSC_VER >= 1400 // VC++ 8.0 
    78#pragma warning( disable : 4996 )   // disable warning about strdup being deprecated. 
  • third_party/skia/src/core/SkDebug_stdio.cpp

     
    4949 
    5050void SkDebugf(const char format[], ...) 
    5151{ 
    52     char    buffer[kBufferSize + 1]; 
     52//    char    buffer[kBufferSize + 1]; 
    5353    va_list args; 
    5454    va_start(args, format); 
    55     vsnprintf(buffer, kBufferSize, format, args); 
     55//    vsnprintf(buffer, kBufferSize, format, args); 
     56    vfprintf(stderr, format, args); 
    5657    va_end(args); 
    57     fprintf(stderr, buffer); 
     58//    fprintf(stderr, buffer); 
    5859} 
    5960 
    6061#endif 
  • third_party/googleurl/src/url_parse.cc

     
    3838 
    3939#include "base/logging.h" 
    4040#include "googleurl/src/url_parse_internal.h" 
     41#include <cstdlib> 
    4142 
     43 
    4244namespace url_parse { 
    4345 
    4446namespace { 
Note: See TracBrowser for help on using the repository browser.