Ignore:
Timestamp:
Jan 23, 2009, 11:40:56 AM (16 years ago)
Author:
[email protected]
Message:

2009-01-23 Anders Carlsson <[email protected]>

Reviewed by Sam Weinig.


Turn on -Wmissing-prototypes and fix the warnings.


  • API/JSClassRef.cpp: (clearReferenceToPrototype):
  • Configurations/Base.xcconfig:
  • runtime/Collector.cpp: (JSC::getPlatformThreadRegisters):
  • runtime/ExceptionHelpers.cpp: (JSC::createError):
  • runtime/JSGlobalObjectFunctions.h:
  • runtime/JSNumberCell.h:
  • runtime/UString.cpp: (JSC::initializeStaticBaseString): (JSC::createRep):
  • wtf/FastMalloc.cpp:
  • wtf/Threading.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/ExceptionHelpers.cpp

    r40046 r40169  
    3232#include "CodeBlock.h"
    3333#include "CallFrame.h"
     34#include "JSGlobalObjectFunctions.h"
    3435#include "JSObject.h"
    3536#include "JSNotAnObject.h"
     
    3839
    3940namespace JSC {
    40 
    41 static void substitute(UString& string, const UString& substring)
    42 {
    43     int position = string.find("%s");
    44     ASSERT(position != -1);
    45     UString newString = string.substr(0, position);
    46     newString.append(substring);
    47     newString.append(string.substr(position + 2));
    48     string = newString;
    49 }
    5041
    5142class InterruptedExecutionError : public JSObject {
     
    6455}
    6556
    66 JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg)
     57static JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg)
    6758{
    6859    return Error::create(exec, e, msg, -1, -1, 0);
    69 }
    70 
    71 JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg, const Identifier& label)
    72 {
    73     UString message = msg;
    74     substitute(message, label.ustring());
    75     return Error::create(exec, e, message, -1, -1, 0);
    76 }
    77 
    78 JSValuePtr createError(ExecState* exec, ErrorType e, const char* msg, JSValuePtr v)
    79 {
    80     UString message = msg;
    81     substitute(message, v.toString(exec));
    82     return Error::create(exec, e, message, -1, -1, 0);
    8360}
    8461
     
    10380}
    10481   
    105 bool isStrWhiteSpace(UChar c);
    106 
    10782static UString createErrorMessage(ExecState* exec, CodeBlock* codeBlock, int, int expressionStart, int expressionStop, JSValuePtr value, UString error)
    10883{
Note: See TracChangeset for help on using the changeset viewer.