Commit 704e8bb4 authored by adele's avatar adele
Browse files

JavaScriptCore:

        Change by Darin, reviewed by me and Maciej.

        Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=4547
        use int instead of long for 32-bit (to prepare for LP64 compiling)

        * bindings/c/c_class.h:
        (KJS::Bindings::CClass::constructorAt):
        (KJS::Bindings::CClass::numConstructors):
        * bindings/c/c_runtime.h:
        (KJS::Bindings::CMethod::numParameters):
        * bindings/jni/jni_class.cpp:
        (JavaClass::JavaClass):
        * bindings/jni/jni_class.h:
        (KJS::Bindings::JavaClass::constructorAt):
        (KJS::Bindings::JavaClass::numConstructors):
        * bindings/jni/jni_instance.cpp:
        (JavaInstance::invokeMethod):
        * bindings/jni/jni_jsobject.cpp:
        (JSObject::convertJObjectToValue):
        (JSObject::listFromJArray):
        * bindings/jni/jni_runtime.cpp:
        (JavaMethod::JavaMethod):
        * bindings/jni/jni_runtime.h:
        (KJS::Bindings::JavaConstructor::_commonCopy):
        (KJS::Bindings::JavaConstructor::parameterAt):
        (KJS::Bindings::JavaConstructor::numParameters):
        (KJS::Bindings::JavaMethod::_commonCopy):
        (KJS::Bindings::JavaMethod::parameterAt):
        (KJS::Bindings::JavaMethod::numParameters):
        * bindings/npapi.h:
        * bindings/objc/WebScriptObject.mm:
        (listFromNSArray):
        * bindings/objc/objc_class.h:
        (KJS::Bindings::ObjcClass::constructorAt):
        (KJS::Bindings::ObjcClass::numConstructors):
        * bindings/objc/objc_instance.h:
        * bindings/objc/objc_runtime.h:
        * bindings/objc/objc_runtime.mm:
        (ObjcMethod::numParameters):
        * bindings/runtime.h:
        * kjs/identifier.h:
        * kjs/internal.h:
        * kjs/property_slot.h:
        (KJS::PropertySlot::setCustomIndex):
        (KJS::PropertySlot::index):
        (KJS::PropertySlot::):
        * kjs/regexp_object.cpp:
        (RegExpObjectImp::backrefGetter):
        (RegExpObjectImp::getOwnPropertySlot):
        * kjs/simple_number.h:
        (KJS::SimpleNumber::):
        (KJS::SimpleNumber::value):
        (KJS::SimpleNumber::fits):
        (KJS::SimpleNumber::integerFits):
        (KJS::SimpleNumber::make):
        * kjs/string_object.cpp:
        (substituteBackreferences):
        * kjs/ustring.cpp:
        (KJS::UString::from):
        (KJS::UString::toUInt32):
        (KJS::UString::find):
        (KJS::UString::rfind):
        * kjs/ustring.h:
        * kjs/value.cpp:
        (KJS::jsNumber):
        * kjs/value.h:

WebCore:

        Change by Darin, reviewed by me and Maciej.

        Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=4547
        use int instead of long for 32-bit (to prepare for LP64 compiling)

        Changed longs (which IDL files use as 32-bit) to ints

        * ForwardingHeaders/khtml_pagecache.h:
        * khtml/css/css_base.h:
        (DOM::StyleListImpl::length):
        (DOM::StyleListImpl::item):
        * khtml/css/css_computedstyle.cpp:
        (DOM::CSSComputedStyleDeclarationImpl::length):
        (DOM::CSSComputedStyleDeclarationImpl::item):
        * khtml/css/css_computedstyle.h:
        * khtml/css/css_ruleimpl.cpp:
        (CSSMediaRuleImpl::append):
        (CSSMediaRuleImpl::insertRule):
        (CSSMediaRuleImpl::cssText):
        (CSSRuleListImpl::CSSRuleListImpl):
        (CSSRuleListImpl::deleteRule):
        (CSSRuleListImpl::insertRule):
        * khtml/css/css_ruleimpl.h:
        (DOM::CSSRuleListImpl::length):
        (DOM::CSSRuleListImpl::item):
        (DOM::CSSMediaRuleImpl::deleteRule):
        * khtml/css/css_stylesheetimpl.cpp:
        (CSSStyleSheetImpl::insertRule):
        (CSSStyleSheetImpl::addRule):
        (CSSStyleSheetImpl::deleteRule):
        (StyleSheetListImpl::length):
        (StyleSheetListImpl::item):
        * khtml/css/css_stylesheetimpl.h:
        (DOM::MediaListImpl::length):
        (DOM::MediaListImpl::item):
        * khtml/css/css_valueimpl.cpp:
        (DOM::CSSMutableStyleDeclarationImpl::length):
        (DOM::CSSMutableStyleDeclarationImpl::item):
        * khtml/css/css_valueimpl.h:
        (DOM::CSSValueListImpl::length):
        (DOM::CSSValueListImpl::item):
        * khtml/dom/css_rule.h:
        * khtml/dom/css_stylesheet.h:
        * khtml/dom/css_value.h:
        * khtml/dom/dom2_events.cpp:
        (DOM::UIEvent::detail):
        (DOM::UIEvent::initUIEvent):
        (DOM::MouseEvent::screenX):
        (DOM::MouseEvent::screenY):
        (DOM::MouseEvent::clientX):
        (DOM::MouseEvent::clientY):
        (DOM::MouseEvent::initMouseEvent):
        (DOM::KeyboardEvent::keyLocation):
        (DOM::KeyboardEvent::initKeyboardEvent):
        * khtml/dom/dom2_events.h:
        * khtml/dom/dom2_range.h:
        * khtml/dom/dom2_traversal.cpp:
        (DOM::NodeIterator::whatToShow):
        (DOM::TreeWalker::whatToShow):
        * khtml/dom/dom2_traversal.h:
        * khtml/dom/dom_node.h:
        * khtml/ecma/kjs_css.cpp:
        (KJS::DOMCSSStyleDeclaration::getOwnPropertySlot):
        (KJS::DOMStyleSheetList::getOwnPropertySlot):
        (KJS::DOMMediaList::getOwnPropertySlot):
        (KJS::DOMCSSStyleSheetProtoFunc::callAsFunction):
        (KJS::DOMCSSRuleList::getOwnPropertySlot):
        (KJS::DOMCSSValueList::getOwnPropertySlot):
        * khtml/ecma/kjs_dom.cpp:
        (KJS::DOMNodeList::getOwnPropertySlot):
        (KJS::DOMNodeList::callAsFunction):
        (KJS::DOMNamedNodeMap::getOwnPropertySlot):
        (KJS::DOMNamedNodesCollection::getOwnPropertySlot):
        * khtml/ecma/kjs_events.cpp:
        (KJS::DOMEvent::getValueProperty):
        * khtml/ecma/kjs_html.cpp:
        (KJS::HTMLElement::getOwnPropertySlot):
        (KJS::KJS::HTMLElement::put):
        (KJS::HTMLCollection::getOwnPropertySlot):
        (KJS::KJS::HTMLCollection::callAsFunction):
        (KJS::KJS::HTMLSelectCollection::put):
        * khtml/ecma/kjs_navigator.cpp:
        (KJS::Plugins::getOwnPropertySlot):
        (KJS::MimeTypes::getOwnPropertySlot):
        (KJS::Plugin::getOwnPropertySlot):
        * khtml/editing/apply_style_command.cpp:
        (khtml::ApplyStyleCommand::splitTextAtStartIfNeeded):
        (khtml::ApplyStyleCommand::splitTextElementAtStartIfNeeded):
        (khtml::ApplyStyleCommand::mergeStartWithPreviousIfIdentical):
        * khtml/editing/break_blockquote_command.cpp:
        (khtml::BreakBlockquoteCommand::doApply):
        * khtml/editing/composite_edit_command.cpp:
        (khtml::CompositeEditCommand::insertNodeAt):
        (khtml::CompositeEditCommand::splitTextNode):
        (khtml::CompositeEditCommand::splitTextNodeContainingElement):
        (khtml::CompositeEditCommand::insertTextIntoNode):
        (khtml::CompositeEditCommand::deleteTextFromNode):
        (khtml::CompositeEditCommand::replaceTextInNode):
        (khtml::CompositeEditCommand::deleteInsignificantText):
        * khtml/editing/composite_edit_command.h:
        * khtml/editing/delete_from_text_node_command.cpp:
        (khtml::DeleteFromTextNodeCommand::DeleteFromTextNodeCommand):
        * khtml/editing/delete_from_text_node_command.h:
        (khtml::DeleteFromTextNodeCommand::offset):
        (khtml::DeleteFromTextNodeCommand::count):
        * khtml/editing/insert_into_text_node_command.cpp:
        (khtml::InsertIntoTextNodeCommand::InsertIntoTextNodeCommand):
        * khtml/editing/insert_into_text_node_command.h:
        (khtml::InsertIntoTextNodeCommand::offset):
        * khtml/editing/insert_paragraph_separator_command.cpp:
        (khtml::InsertParagraphSeparatorCommand::doApply):
        * khtml/editing/insert_text_command.cpp:
        (khtml::InsertTextCommand::input):
        (khtml::InsertTextCommand::insertSpace):
        * khtml/editing/insert_text_command.h:
        (khtml::InsertTextCommand::charactersAdded):
        * khtml/editing/join_text_nodes_command.h:
        * khtml/editing/markup.cpp:
        (khtml::startMarkup):
        (khtml::completeURLs):
        * khtml/editing/move_selection_command.cpp:
        (khtml::MoveSelectionCommand::doApply):
        * khtml/editing/rebalance_whitespace_command.cpp:
        (khtml::RebalanceWhitespaceCommand::doApply):
        * khtml/editing/rebalance_whitespace_command.h:
        * khtml/editing/replace_selection_command.cpp:
        (khtml::ReplaceSelectionCommand::insertNodeAtAndUpdateNodesInserted):
        * khtml/editing/replace_selection_command.h:
        * khtml/editing/selection.cpp:
        (khtml::Selection::debugPosition):
        * khtml/editing/split_text_node_command.cpp:
        (khtml::SplitTextNodeCommand::SplitTextNodeCommand):
        * khtml/editing/split_text_node_command.h:
        (khtml::SplitTextNodeCommand::offset):
        * khtml/editing/split_text_node_containing_element.cpp:
        (khtml::SplitTextNodeContainingElementCommand::SplitTextNodeContainingElementCommand):
        * khtml/editing/split_text_node_containing_element_command.h:
        * khtml/editing/visible_position.cpp:
        (khtml::VisiblePosition::VisiblePosition):
        (khtml::VisiblePosition::deepEquivalent):
        (khtml::VisiblePosition::rangeCompliantEquivalent):
        (khtml::VisiblePosition::maxOffset):
        (khtml::VisiblePosition::character):
        (khtml::VisiblePosition::debugPosition):
        * khtml/editing/visible_position.h:
        * khtml/editing/visible_range.h:
        * khtml/editing/visible_text.cpp:
        (khtml::CircularSearchBuffer::length):
        (khtml::TextIterator::TextIterator):
        (khtml::TextIterator::handleTextNode):
        (khtml::TextIterator::handleTextBox):
        (khtml::TextIterator::emitCharacter):
        (khtml::TextIterator::range):
        (khtml::SimplifiedBackwardsTextIterator::SimplifiedBackwardsTextIterator):
        (khtml::SimplifiedBackwardsTextIterator::handleReplacedElement):
        (khtml::SimplifiedBackwardsTextIterator::emitCharacter):
        (khtml::SimplifiedBackwardsTextIterator::emitNewlineForBROrText):
        (khtml::CharacterIterator::range):
        (khtml::CharacterIterator::advance):
        (khtml::CharacterIterator::string):
        (khtml::WordAwareIterator::length):
        (khtml::CircularSearchBuffer::append):
        (khtml::CircularSearchBuffer::neededCharacters):
        (khtml::CircularSearchBuffer::isMatch):
        (khtml::TextIterator::rangeLength):
        (khtml::TextIterator::rangeFromLocationAndLength):
        (khtml::plainText):
        (khtml::findPlainText):
        * khtml/editing/visible_text.h:
        (khtml::TextIterator::length):
        (khtml::SimplifiedBackwardsTextIterator::length):
        (khtml::CharacterIterator::length):
        (khtml::CharacterIterator::characterOffset):
        * khtml/editing/visible_units.cpp:
        (khtml::startOfLine):
        (khtml::endOfLine):
        (khtml::startOfParagraph):
        (khtml::endOfParagraph):
        * khtml/html/html_blockimpl.cpp:
        (HTMLPreElementImpl::width):
        (HTMLPreElementImpl::setWidth):
        * khtml/html/html_blockimpl.h:
        * khtml/html/html_formimpl.cpp:
        (DOM::HTMLFormElementImpl::length):
        (DOM::HTMLGenericFormElementImpl::tabIndex):
        (DOM::HTMLGenericFormElementImpl::setTabIndex):
        (DOM::HTMLInputElementImpl::selectionStart):
        (DOM::HTMLInputElementImpl::selectionEnd):
        (DOM::HTMLInputElementImpl::setSelectionStart):
        (DOM::HTMLInputElementImpl::setSelectionEnd):
        (DOM::HTMLInputElementImpl::setSelectionRange):
        (DOM::HTMLInputElementImpl::setMaxLength):
        (DOM::HTMLInputElementImpl::setSize):
        (DOM::HTMLSelectElementImpl::selectedIndex):
        (DOM::HTMLSelectElementImpl::setSelectedIndex):
        (DOM::HTMLSelectElementImpl::length):
        (DOM::HTMLSelectElementImpl::remove):
        (DOM::HTMLSelectElementImpl::setSize):
        (DOM::HTMLOptionElementImpl::index):
        (DOM::HTMLOptionElementImpl::setIndex):
        (DOM::HTMLTextAreaElementImpl::selectionStart):
        (DOM::HTMLTextAreaElementImpl::selectionEnd):
        (DOM::HTMLTextAreaElementImpl::setSelectionStart):
        (DOM::HTMLTextAreaElementImpl::setSelectionEnd):
        (DOM::HTMLTextAreaElementImpl::setSelectionRange):
        (DOM::HTMLTextAreaElementImpl::setCols):
        (DOM::HTMLTextAreaElementImpl::setRows):
        (DOM::HTMLOptionsCollectionImpl::length):
        (DOM::HTMLOptionsCollectionImpl::setLength):
        (DOM::HTMLOptionsCollectionImpl::item):
        * khtml/html/html_formimpl.h:
        (DOM::HTMLInputElementImpl::maxLength):
        (DOM::HTMLInputElementImpl::maxResults):
        (DOM::HTMLSelectElementImpl::minWidth):
        (DOM::HTMLSelectElementImpl::size):
        (DOM::HTMLTextAreaElementImpl::cols):
        (DOM::HTMLTextAreaElementImpl::rows):
        * khtml/html/html_imageimpl.cpp:
        (HTMLImageElementImpl::width):
        (HTMLImageElementImpl::height):
        (HTMLImageElementImpl::border):
        (HTMLImageElementImpl::setBorder):
        (HTMLImageElementImpl::setHeight):
        (HTMLImageElementImpl::hspace):
        (HTMLImageElementImpl::setHspace):
        (HTMLImageElementImpl::vspace):
        (HTMLImageElementImpl::setVspace):
        (HTMLImageElementImpl::setWidth):
        (HTMLImageElementImpl::x):
        (HTMLImageElementImpl::y):
        (HTMLAreaElementImpl::tabIndex):
        (HTMLAreaElementImpl::setTabIndex):
        * khtml/html/html_imageimpl.h:
        * khtml/html/html_inlineimpl.cpp:
        (DOM::HTMLAnchorElementImpl::tabIndex):
        (DOM::HTMLAnchorElementImpl::setTabIndex):
        * khtml/html/html_inlineimpl.h:
        * khtml/html/html_listimpl.cpp:
        (DOM::HTMLOListElementImpl::setStart):
        (DOM::HTMLLIElementImpl::value):
        (DOM::HTMLLIElementImpl::setValue):
        * khtml/html/html_listimpl.h:
        (DOM::HTMLUListElementImpl::start):
        (DOM::HTMLOListElementImpl::start):
        * khtml/html/html_miscimpl.cpp:
        (DOM::HTMLCollectionImpl::calcLength):
        (DOM::HTMLCollectionImpl::length):
        (DOM::HTMLCollectionImpl::item):
        (DOM::HTMLFormCollectionImpl::calcLength):
        (DOM::HTMLFormCollectionImpl::item):
        * khtml/html/html_miscimpl.h:
        * khtml/html/html_objectimpl.cpp:
        (DOM::HTMLObjectElementImpl::tabIndex):
        (DOM::HTMLObjectElementImpl::setTabIndex):
        * khtml/html/html_objectimpl.h:
        * khtml/html/html_tableimpl.cpp:
        (DOM::HTMLTableElementImpl::insertRow):
        (DOM::HTMLTableElementImpl::deleteRow):
        (DOM::HTMLTableSectionElementImpl::insertRow):
        (DOM::HTMLTableSectionElementImpl::deleteRow):
        (DOM::HTMLTableRowElementImpl::rowIndex):
        (DOM::HTMLTableRowElementImpl::sectionRowIndex):
        (DOM::HTMLTableRowElementImpl::insertCell):
        (DOM::HTMLTableRowElementImpl::deleteCell):
        (DOM::HTMLTableCellElementImpl::cellIndex):
        (DOM::HTMLTableCellElementImpl::setColSpan):
        (DOM::HTMLTableCellElementImpl::setRowSpan):
        (DOM::HTMLTableColElementImpl::setSpan):
        * khtml/html/html_tableimpl.h:
        (DOM::HTMLTableColElementImpl::span):
        * khtml/html/htmlparser.cpp:
        (HTMLParser::handleError):
        * khtml/html/htmltokenizer.cpp:
        (khtml::HTMLTokenizer::processToken):
        * khtml/khtml_events.cpp:
        (khtml::MouseEvent::offset):
        * khtml/khtml_events.h:
        (khtml::MouseReleaseEvent::MouseReleaseEvent):
        * khtml/khtml_part.cpp:
        (KHTMLPart::restoreURL):
        (KHTMLPart::stopLoading):
        (KHTMLPart::receivedFirstData):
        (KHTMLPart::slotFinished):
        (KHTMLPart::begin):
        (KHTMLPart::slotViewFrameSource):
        (KHTMLPart::selectFrameElementInParentIfFullySelected):
        * khtml/khtml_part.h:
        * khtml/khtmlpart_p.h:
        (KHTMLPartPrivate::KHTMLPartPrivate):
        * khtml/misc/loader.h:
        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::positionForRenderer):
        * khtml/rendering/render_br.cpp:
        (RenderBR::caretMinOffset):
        (RenderBR::caretMaxOffset):
        (RenderBR::caretMaxRenderedOffset):
        (RenderBR::inlineBox):
        * khtml/rendering/render_br.h:
        * khtml/rendering/render_form.cpp:
        (RenderLineEdit::selectionStart):
        (RenderLineEdit::selectionEnd):
        (RenderLineEdit::setSelectionStart):
        (RenderLineEdit::setSelectionEnd):
        (RenderLineEdit::setSelectionRange):
        (RenderTextArea::calcMinMaxWidth):
        (RenderTextArea::selectionStart):
        (RenderTextArea::selectionEnd):
        (RenderTextArea::setSelectionStart):
        (RenderTextArea::setSelectionEnd):
        (RenderTextArea::setSelectionRange):
        * khtml/rendering/render_form.h:
        * khtml/rendering/render_frames.cpp:
        (RenderPartObject::updateWidget):
        * khtml/rendering/render_line.cpp:
        (khtml::InlineBox::caretMinOffset):
        (khtml::InlineBox::caretMaxOffset):
        (khtml::InlineBox::caretMaxRenderedOffset):
        * khtml/rendering/render_line.h:
        * khtml/rendering/render_list.cpp:
        (RenderListMarker::calcMinMaxWidth):
        * khtml/rendering/render_list.h:
        (khtml::RenderListItem::value):
        (khtml::RenderListItem::setValue):
        * khtml/rendering/render_object.cpp:
        (RenderObject::caretMinOffset):
        (RenderObject::caretMaxOffset):
        (RenderObject::caretMaxRenderedOffset):
        (RenderObject::previousOffset):
        (RenderObject::nextOffset):
        (RenderObject::inlineBox):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_replaced.cpp:
        (RenderReplaced::caretMinOffset):
        (RenderReplaced::caretMaxOffset):
        (RenderReplaced::caretMaxRenderedOffset):
        * khtml/rendering/render_replaced.h:
        * khtml/rendering/render_table.h:
        (khtml::RenderTableCell::cellIndex):
        (khtml::RenderTableCell::setCellIndex):
        * khtml/rendering/render_text.cpp:
        (InlineTextBox::paintMarker):
        (InlineTextBox::paintMarkedTextUnderline):
        (InlineTextBox::caretMinOffset):
        (InlineTextBox::caretMaxOffset):
        (InlineTextBox::caretMaxRenderedOffset):
        (RenderText::previousOffset):
        (RenderText::nextOffset):
        (InlineTextBox::positionForOffset):
        (RenderText::caretMinOffset):
        (RenderText::caretMaxOffset):
        (RenderText::caretMaxRenderedOffset):
        (RenderText::inlineBox):
        * khtml/rendering/render_text.h:
        * khtml/xml/dom2_eventsimpl.cpp:
        (DOM::EventImpl::timeStamp):
        (DOM::UIEventImpl::UIEventImpl):
        (DOM::UIEventImpl::initUIEvent):
        (DOM::UIEventImpl::layerX):
        (DOM::UIEventImpl::layerY):
        (DOM::UIEventImpl::pageX):
        (DOM::UIEventImpl::pageY):
        (DOM::UIEventImpl::which):
        (DOM::MouseRelatedEventImpl::MouseRelatedEventImpl):
        (DOM::MouseRelatedEventImpl::pageX):
        (DOM::MouseRelatedEventImpl::pageY):
        (DOM::MouseEventImpl::MouseEventImpl):
        (DOM::MouseEventImpl::initMouseEvent):
        (DOM::MouseEventImpl::which):
        (DOM::KeyboardEventImpl::KeyboardEventImpl):
        (DOM::KeyboardEventImpl::initKeyboardEvent):
        (DOM::KeyboardEventImpl::which):
        (DOM::WheelEventImpl::WheelEventImpl):
        * khtml/xml/dom2_eventsimpl.h:
        (DOM::UIEventImpl::detail):
        (DOM::UIEventWithKeyStateImpl::UIEventWithKeyStateImpl):
        (DOM::MouseRelatedEventImpl::screenX):
        (DOM::MouseRelatedEventImpl::screenY):
        (DOM::MouseRelatedEventImpl::clientX):
        (DOM::MouseRelatedEventImpl::clientY):
        (DOM::MouseRelatedEventImpl::layerX):
        (DOM::MouseRelatedEventImpl::layerY):
        (DOM::KeyboardEventImpl::keyLocation):
        (DOM::WheelEventImpl::wheelDelta):
        * khtml/xml/dom2_rangeimpl.cpp:
        (DOM::RangeImpl::RangeImpl):
        (DOM::RangeImpl::startOffset):
        (DOM::RangeImpl::endOffset):
        (DOM::RangeImpl::setStart):
        (DOM::RangeImpl::setEnd):
        (DOM::RangeImpl::compareBoundaryPoints):
        (DOM::RangeImpl::processContents):
        (DOM::RangeImpl::checkNodeWOffset):
        * khtml/xml/dom2_rangeimpl.h:
        * khtml/xml/dom2_traversalimpl.cpp:
        (DOM::TraversalImpl::TraversalImpl):
        (DOM::TreeWalkerImpl::TreeWalkerImpl):
        * khtml/xml/dom2_traversalimpl.h:
        (DOM::TraversalImpl::whatToShow):
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::createNodeIterator):
        (DocumentImpl::createTreeWalker):
        (DocumentImpl::processHttpEquiv):
        (DocumentImpl::removeMarkers):
        (DocumentImpl::copyMarkers):
        (DocumentImpl::markersForNode):
        (DocumentImpl::shiftMarkers):
        * khtml/xml/dom_docimpl.h:
        * khtml/xml/dom_elementimpl.cpp:
        (ElementImpl::openTagStartToString):
        (NamedAttrMapImpl::item):
        (NamedAttrMapImpl::getAttributeItem):
        (NamedAttrMapImpl::removeAttribute):
        * khtml/xml/dom_elementimpl.h:
        (DOM::NamedAttrMapImpl::length):
        (DOM::NamedAttrMapImpl::attributeItem):
        (DOM::NamedMappedAttrMapImpl::attributeItem):
        * khtml/xml/dom_nodeimpl.cpp:
        (DOM::NodeImpl::normalize):
        (DOM::NodeImpl::nodeIndex):
        (DOM::NodeImpl::childNodeCount):
        (DOM::NodeImpl::childNode):
        (DOM::NodeImpl::maxOffset):
        (DOM::NodeImpl::maxDeepOffset):
        (DOM::NodeImpl::caretMinOffset):
        (DOM::NodeImpl::caretMaxOffset):
        (DOM::NodeImpl::caretMaxRenderedOffset):
        (DOM::NodeImpl::previousOffset):
        (DOM::NodeImpl::nextOffset):
        (DOM::ContainerNodeImpl::childNodeCount):
        (DOM::ContainerNodeImpl::childNode):
        (DOM::NodeListImpl::recursiveLength):
        (DOM::NodeListImpl::recursiveItem):
        (DOM::NodeListImpl::itemById):
        (DOM::ChildNodeListImpl::length):
        (DOM::ChildNodeListImpl::item):
        (DOM::TagNodeListImpl::length):
        (DOM::TagNodeListImpl::item):
        (DOM::NameNodeListImpl::length):
        (DOM::NameNodeListImpl::item):
        * khtml/xml/dom_nodeimpl.h:
        * khtml/xml/dom_position.cpp:
        (DOM::Position::Position):
        (DOM::Position::previous):
        (DOM::Position::next):
        (DOM::Position::renderedOffset):
        (DOM::Position::equivalentRangeCompliantPosition):
        (DOM::Position::rendersInDifferentPosition):
        (DOM::Position::trailingWhitespacePosition):
        (DOM::Position::debugPosition):
        * khtml/xml/dom_position.h:
        (DOM::Position::offset):
        * khtml/xml/dom_textimpl.cpp:
        (CharacterDataImpl::length):
        (CharacterDataImpl::substringData):
        (CharacterDataImpl::insertData):
        (CharacterDataImpl::deleteData):
        (CharacterDataImpl::replaceData):
        (CharacterDataImpl::checkCharDataOperation):
        (CharacterDataImpl::maxOffset):
        (CharacterDataImpl::caretMinOffset):
        (CharacterDataImpl::caretMaxOffset):
        (CharacterDataImpl::caretMaxRenderedOffset):
        (TextImpl::splitText):
        * khtml/xml/dom_textimpl.h:
        * kwq/DOM-CSS.mm:
        (-[DOMStyleSheetList length]):
        (-[DOMStyleSheetList item:]):
        (-[DOMCSSStyleSheet insertRule::]):
        (-[DOMCSSStyleSheet deleteRule:]):
        (-[DOMMediaList length]):
        (-[DOMMediaList item:]):
        (-[DOMCSSRuleList length]):
        (-[DOMCSSRuleList item:]):
        (-[DOMCSSMediaRule insertRule::]):
        (-[DOMCSSMediaRule deleteRule:]):
        (-[DOMCSSStyleDeclaration length]):
        (-[DOMCSSStyleDeclaration item:]):
        (-[DOMCSSValueList length]):
        (-[DOMCSSValueList item:]):
        * kwq/DOM.mm:
        (-[DOMNamedNodeMap item:]):
        (-[DOMNamedNodeMap length]):
        (-[DOMNodeList item:]):
        (-[DOMNodeList length]):
        (-[DOMCharacterData length]):
        (-[DOMCharacterData substringData::]):
        (-[DOMCharacterData insertData::]):
        (-[DOMCharacterData deleteData::]):
        (-[DOMCharacterData replaceData:::]):
        (-[DOMText splitText:]):
        (-[DOMRange description]):
        (-[DOMRange startOffset]):
        (-[DOMRange endOffset]):
        (-[DOMRange setStart::]):
        (-[DOMRange setEnd::]):
        (-[DOMNodeIterator whatToShow]):
        (-[DOMTreeWalker whatToShow]):
        (-[DOMDocument createNodeIterator::::]):
        (-[DOMDocument createTreeWalker::::]):
        * kwq/DOMCSS.h:
        * kwq/DOMCore.h:
        * kwq/DOMEvents.h:
        (-[DOMMouseEvent initMouseEvent:::::::::::::::]):
        * kwq/DOMEvents.mm:
        (-[DOMMouseEvent screenX]):
        (-[DOMMouseEvent screenY]):
        (-[DOMMouseEvent clientX]):
        (-[DOMMouseEvent clientY]):
        (-[DOMMouseEvent initMouseEvent:::::::::::::::]):
        (-[DOMUIEvent detail]):
        (-[DOMUIEvent initUIEvent:::::]):
        * kwq/DOMExtensions.h:
        * kwq/DOMHTML.h:
        * kwq/DOMHTML.mm:
        (-[DOMHTMLCollection length]):
        (-[DOMHTMLCollection item:]):
        (-[DOMHTMLOptionsCollection length]):
        (-[DOMHTMLOptionsCollection setLength:]):
        (-[DOMHTMLOptionsCollection item:]):
        (-[DOMHTMLFormElement length]):
        (-[DOMHTMLSelectElement selectedIndex]):
        (-[DOMHTMLSelectElement setSelectedIndex:]):
        (-[DOMHTMLSelectElement length]):
        (-[DOMHTMLSelectElement setLength:]):
        (-[DOMHTMLSelectElement size]):
        (-[DOMHTMLSelectElement setSize:]):
        (-[DOMHTMLSelectElement tabIndex]):
        (-[DOMHTMLSelectElement setTabIndex:]):
        (-[DOMHTMLSelectElement remove:]):
        (-[DOMHTMLOptionElement index]):
        (-[DOMHTMLInputElement maxLength]):
        (-[DOMHTMLInputElement setMaxLength:]):
        (-[DOMHTMLInputElement size]):
        (-[DOMHTMLInputElement setSize:]):
        (-[DOMHTMLInputElement tabIndex]):
        (-[DOMHTMLInputElement setTabIndex:]):
        (-[DOMHTMLTextAreaElement cols]):
        (-[DOMHTMLTextAreaElement setCols:]):
        (-[DOMHTMLTextAreaElement rows]):
        (-[DOMHTMLTextAreaElement setRows:]):
        (-[DOMHTMLTextAreaElement tabIndex]):
        (-[DOMHTMLTextAreaElement setTabIndex:]):
        (-[DOMHTMLButtonElement tabIndex]):
        (-[DOMHTMLButtonElement setTabIndex:]):
        (-[DOMHTMLOListElement start]):
        (-[DOMHTMLOListElement setStart:]):
        (-[DOMHTMLLIElement value]):
        (-[DOMHTMLLIElement setValue:]):
        (-[DOMHTMLPreElement width]):
        (-[DOMHTMLPreElement setWidth:]):
        (-[DOMHTMLAnchorElement tabIndex]):
        (-[DOMHTMLAnchorElement setTabIndex:]):
        (-[DOMHTMLImageElement height]):
        (-[DOMHTMLImageElement setHeight:]):
        (-[DOMHTMLImageElement hspace]):
        (-[DOMHTMLImageElement setHspace:]):
        (-[DOMHTMLImageElement vspace]):
        (-[DOMHTMLImageElement setVspace:]):
        (-[DOMHTMLImageElement width]):
        (-[DOMHTMLImageElement setWidth:]):
        (-[DOMHTMLObjectElement hspace]):
        (-[DOMHTMLObjectElement setHspace:]):
        (-[DOMHTMLObjectElement tabIndex]):
        (-[DOMHTMLObjectElement setTabIndex:]):
        (-[DOMHTMLObjectElement vspace]):
        (-[DOMHTMLObjectElement setVspace:]):
        (-[DOMHTMLAppletElement hspace]):
        (-[DOMHTMLAppletElement setHspace:]):
        (-[DOMHTMLAppletElement vspace]):
        (-[DOMHTMLAppletElement setVspace:]):
        (-[DOMHTMLAreaElement tabIndex]):
        (-[DOMHTMLAreaElement setTabIndex:]):
        (-[DOMHTMLTableSectionElement insertRow:]):
        (-[DOMHTMLTableSectionElement deleteRow:]):
        (-[DOMHTMLTableElement insertRow:]):
        (-[DOMHTMLTableElement deleteRow:]):
        (-[DOMHTMLTableColElement span]):
        (-[DOMHTMLTableColElement setSpan:]):
        (-[DOMHTMLTableRowElement rowIndex]):
        (-[DOMHTMLTableRowElement sectionRowIndex]):
        (-[DOMHTMLTableRowElement insertCell:]):
        (-[DOMHTMLTableRowElement deleteCell:]):
        (-[DOMHTMLTableCellElement cellIndex]):
        (-[DOMHTMLTableCellElement colSpan]):
        (-[DOMHTMLTableCellElement setColSpan:]):
        (-[DOMHTMLTableCellElement rowSpan]):
        (-[DOMHTMLTableCellElement setRowSpan:]):
        (-[DOMHTMLEmbedElement height]):
        (-[DOMHTMLEmbedElement setHeight:]):
        (-[DOMHTMLEmbedElement width]):
        (-[DOMHTMLEmbedElement setWidth:]):
        * kwq/DOMRange.h:
        * kwq/DOMStylesheets.h:
        * kwq/DOMTraversal.h:
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::advanceToNextMisspelling):
        (KWQKHTMLPart::openURLFromPageCache):
        (KWQKHTMLPart::markMisspellings):
        * kwq/KWQString.h:
        * kwq/KWQString.mm:
        (QString::toShort):
        (QString::toUShort):
        (QString::toInt):
        (QString::toUInt):
        * kwq/KWQTextEdit.h:
        * kwq/KWQTextEdit.mm:
        (QTextEdit::selectionStart):
        (QTextEdit::selectionEnd):
        (QTextEdit::setSelectionStart):
        (QTextEdit::setSelectionEnd):
        (QTextEdit::setSelectionRange):
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge convertToNSRange:DOM::]):

WebKit:

        Change by Darin, reviewed by me and Maciej.

        Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=4547
        use int instead of long for 32-bit (to prepare for LP64 compiling)

        * Plugins.subproj/npapi.m: changed types to match those defined in npapi.h
        (NPN_MemAlloc):
        (NPN_MemFlush):
        (NPN_PostURLNotify):
        (NPN_PostURL):
        (NPN_Write):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 24ba9376
2005-09-16 Adele Peterson <adele@apple.com>
Change by Darin, reviewed by me and Maciej.
Fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=4547
use int instead of long for 32-bit (to prepare for LP64 compiling)
* bindings/c/c_class.h:
(KJS::Bindings::CClass::constructorAt):
(KJS::Bindings::CClass::numConstructors):
* bindings/c/c_runtime.h:
(KJS::Bindings::CMethod::numParameters):
* bindings/jni/jni_class.cpp:
(JavaClass::JavaClass):
* bindings/jni/jni_class.h:
(KJS::Bindings::JavaClass::constructorAt):
(KJS::Bindings::JavaClass::numConstructors):
* bindings/jni/jni_instance.cpp:
(JavaInstance::invokeMethod):
* bindings/jni/jni_jsobject.cpp:
(JSObject::convertJObjectToValue):
(JSObject::listFromJArray):
* bindings/jni/jni_runtime.cpp:
(JavaMethod::JavaMethod):
* bindings/jni/jni_runtime.h:
(KJS::Bindings::JavaConstructor::_commonCopy):
(KJS::Bindings::JavaConstructor::parameterAt):
(KJS::Bindings::JavaConstructor::numParameters):
(KJS::Bindings::JavaMethod::_commonCopy):
(KJS::Bindings::JavaMethod::parameterAt):
(KJS::Bindings::JavaMethod::numParameters):
* bindings/npapi.h:
* bindings/objc/WebScriptObject.mm:
(listFromNSArray):
* bindings/objc/objc_class.h:
(KJS::Bindings::ObjcClass::constructorAt):
(KJS::Bindings::ObjcClass::numConstructors):
* bindings/objc/objc_instance.h:
* bindings/objc/objc_runtime.h:
* bindings/objc/objc_runtime.mm:
(ObjcMethod::numParameters):
* bindings/runtime.h:
* kjs/identifier.h:
* kjs/internal.h:
* kjs/property_slot.h:
(KJS::PropertySlot::setCustomIndex):
(KJS::PropertySlot::index):
(KJS::PropertySlot::):
* kjs/regexp_object.cpp:
(RegExpObjectImp::backrefGetter):
(RegExpObjectImp::getOwnPropertySlot):
* kjs/simple_number.h:
(KJS::SimpleNumber::):
(KJS::SimpleNumber::value):
(KJS::SimpleNumber::fits):
(KJS::SimpleNumber::integerFits):
(KJS::SimpleNumber::make):
* kjs/string_object.cpp:
(substituteBackreferences):
* kjs/ustring.cpp:
(KJS::UString::from):
(KJS::UString::toUInt32):
(KJS::UString::find):
(KJS::UString::rfind):
* kjs/ustring.h:
* kjs/value.cpp:
(KJS::jsNumber):
* kjs/value.h:
2005-09-11 Eric Seidel <eseidel@apple.com>
No review requested, build fix affects only SVG.
......
......@@ -77,11 +77,11 @@ public:
virtual Field *fieldNamed(const char *name, Instance *instance) const;
virtual Constructor *constructorAt(long i) const {
virtual Constructor *constructorAt(int i) const {
return 0;
};
virtual long numConstructors() const { return 0; };
virtual int numConstructors() const { return 0; };
private:
NPClass *_isa;
......
......@@ -68,7 +68,7 @@ public:
virtual const char *name() const { return _NPN_UTF8FromIdentifier(_methodIdentifier); };
virtual long numParameters() const { return 0; };
virtual int numParameters() const { return 0; };
private:
NPIdentifier _methodIdentifier;
......
......@@ -43,12 +43,12 @@ JavaClass::JavaClass (jobject anInstance)
_name = strdup (classNameC);
releaseCharactersForJString(className, classNameC);
long i;
int i;
JNIEnv *env = getJNIEnv();
// Get the fields
jarray fields = (jarray)callJNIObjectMethod (aClass, "getFields", "()[Ljava/lang/reflect/Field;");
long numFields = env->GetArrayLength (fields);
int numFields = env->GetArrayLength (fields);
_fields = CFDictionaryCreateMutable(NULL, numFields, &kCFTypeDictionaryKeyCallBacks, NULL);
for (i = 0; i < numFields; i++) {
jobject aJField = env->GetObjectArrayElement ((jobjectArray)fields, i);
......@@ -61,7 +61,7 @@ JavaClass::JavaClass (jobject anInstance)
// Get the methods
jarray methods = (jarray)callJNIObjectMethod (aClass, "getMethods", "()[Ljava/lang/reflect/Method;");
long numMethods = env->GetArrayLength (methods);
int numMethods = env->GetArrayLength (methods);
_methods = CFDictionaryCreateMutable(NULL, numMethods, &kCFTypeDictionaryKeyCallBacks, NULL);
for (i = 0; i < numMethods; i++) {
jobject aJMethod = env->GetObjectArrayElement ((jobjectArray)methods, i);
......
......@@ -48,11 +48,11 @@ public:
virtual Field *fieldNamed(const char *name, Instance *instance) const;
virtual Constructor *constructorAt(long i) const {
virtual Constructor *constructorAt(int i) const {
return &_constructors[i];
};
virtual long numConstructors() const { return _numConstructors; };
virtual int numConstructors() const { return _numConstructors; };
bool isNumberClass() const;
bool isBooleanClass() const;
......@@ -67,7 +67,7 @@ private:
CFDictionaryRef _fields;
CFDictionaryRef _methods;
JavaConstructor *_constructors;
long _numConstructors;
int _numConstructors;
};
} // namespace Bindings
......
......@@ -267,7 +267,7 @@ ValueImp *JavaInstance::invokeMethod (ExecState *exec, const MethodList &methodL
break;
case long_type: {
resultValue = Number((long int)result.j);
resultValue = jsNumber(result.j);
}
break;
......
......@@ -425,7 +425,7 @@ ValueImp *JSObject::convertJObjectToValue (jobject theObject) const
// Pull the nativeJSObject value from the Java instance. This is a
// pointer to the ObjectImp.
JNIEnv *env = getJNIEnv();
jfieldID fieldID = env->GetFieldID((jclass)classOfInstance, "nativeJSObject", "long");
jfieldID fieldID = env->GetFieldID((jclass)classOfInstance, "nativeJSObject", "int");
if (fieldID == NULL) {
return Undefined();
}
......@@ -447,7 +447,7 @@ ValueImp *JSObject::convertJObjectToValue (jobject theObject) const
List JSObject::listFromJArray(jobjectArray jArray) const
{
JNIEnv *env = getJNIEnv();
long i, numObjects = jArray ? env->GetArrayLength (jArray) : 0;
int i, numObjects = jArray ? env->GetArrayLength (jArray) : 0;
List aList;
for (i = 0; i < numObjects; i++) {
......
......@@ -297,7 +297,7 @@ JavaMethod::JavaMethod (JNIEnv *env, jobject aMethod)
_methodID = 0;
jclass modifierClass = env->FindClass("java/lang/reflect/Modifier");
long modifiers = callJNIIntMethod (aMethod, "getModifiers", "()I");
int modifiers = callJNIIntMethod (aMethod, "getModifiers", "()I");
_isStatic = (bool)callJNIStaticBooleanMethod (modifierClass, "isStatic", "(I)Z", modifiers);
}
......
......@@ -124,7 +124,7 @@ public:
void _commonCopy(const JavaConstructor &other) {
_numParameters = other._numParameters;
_parameters = new JavaParameter[_numParameters];
long i;
int i;
for (i = 0; i < _numParameters; i++) {
_parameters[i] = other._parameters[i];
}
......@@ -146,12 +146,12 @@ public:
return *this;
}
virtual Parameter *parameterAt(long i) const { return &_parameters[i]; };
virtual long numParameters() const { return _numParameters; };
virtual Parameter *parameterAt(int i) const { return &_parameters[i]; };
virtual int numParameters() const { return _numParameters; };
private:
JavaParameter *_parameters;
long _numParameters;
int _numParameters;
};
......@@ -222,7 +222,7 @@ public:
_numParameters = other._numParameters;
_parameters = new JavaParameter[_numParameters];
long i;
int i;
for (i = 0; i < _numParameters; i++) {
_parameters[i] = other._parameters[i];
}
......@@ -246,8 +246,8 @@ public:
virtual const char *name() const { return _name.UTF8String(); };
RuntimeType returnType() const { return _returnType.UTF8String(); };
virtual Parameter *parameterAt(long i) const { return &_parameters[i]; };
virtual long numParameters() const { return _numParameters; };
virtual Parameter *parameterAt(int i) const { return &_parameters[i]; };
virtual int numParameters() const { return _numParameters; };
const char *signature() const;
JNIType JNIReturnType() const;
......@@ -258,7 +258,7 @@ public:
private:
JavaParameter *_parameters;
long _numParameters;
int _numParameters;
JavaString _name;
mutable UString *_signature;
JavaString _returnType;
......
......@@ -108,21 +108,21 @@
typedef unsigned short uint16;
#endif
#ifndef _UINT32
#if defined(__alpha)
#if __LP64__
typedef unsigned int uint32;
#else /* __alpha */
#else /* __LP64__ */
typedef unsigned long uint32;
#endif /* __alpha */
#endif /* __LP64__ */
#endif
#ifndef _INT16
typedef short int16;
#endif
#ifndef _INT32
#if defined(__alpha)
#if __LP64__
typedef int int32;
#else /* __alpha */
#else /* __LP64__ */
typedef long int32;
#endif /* __alpha */
#endif /* __LP64__ */
#endif
#ifndef FALSE
......
......@@ -169,7 +169,7 @@ static void _didExecute(WebScriptObject *obj)
static List listFromNSArray(ExecState *exec, NSArray *array)
{
long i, numObjects = array ? [array count] : 0;
int i, numObjects = array ? [array count] : 0;
List aList;
for (i = 0; i < numObjects; i++) {
......
......@@ -70,8 +70,8 @@ public:
virtual ValueImp *fallbackObject(ExecState *exec, Instance *instance, const Identifier &propertyName);
virtual Constructor *constructorAt(long i) const { return 0; }
virtual long numConstructors() const { return 0; }
virtual Constructor *constructorAt(int i) const { return 0; }
virtual int numConstructors() const { return 0; }
ClassStructPtr isa() { return _isa; }
......
......@@ -76,7 +76,7 @@ private:
ObjectStructPtr _instance;
mutable ObjcClass *_class;
ObjectStructPtr _pool;
long _beginCount;
int _beginCount;
};
} // namespace Bindings
......
......@@ -118,7 +118,7 @@ public:
virtual const char *name() const;
virtual long numParameters() const;
virtual int numParameters() const;
NSMethodSignature *getMethodSignature() const;
......
......@@ -51,7 +51,7 @@ const char *ObjcMethod::name() const
return (const char *)_selector;
}
long ObjcMethod::numParameters() const
int ObjcMethod::numParameters() const
{
return [getMethodSignature() numberOfArguments] - 2;
}
......
......@@ -53,8 +53,8 @@ public:
class Constructor
{
public:
virtual Parameter *parameterAt(long i) const = 0;
virtual long numParameters() const = 0;
virtual Parameter *parameterAt(int i) const = 0;
virtual int numParameters() const = 0;
virtual ~Constructor() {}
};
......@@ -97,7 +97,7 @@ class Method
public:
virtual const char *name() const = 0;
virtual long numParameters() const = 0;
virtual int numParameters() const = 0;
virtual ~Method() {}
};
......@@ -109,8 +109,8 @@ public:
virtual MethodList methodsNamed(const char *name, Instance *instance) const = 0;
virtual Constructor *constructorAt(long i) const = 0;
virtual long numConstructors() const = 0;
virtual Constructor *constructorAt(int i) const = 0;
virtual int numConstructors() const = 0;
virtual Field *fieldNamed(const char *name, Instance *instance) const = 0;
......
......@@ -50,7 +50,6 @@ namespace KJS {
bool isNull() const { return _ustring.isNull(); }
bool isEmpty() const { return _ustring.isEmpty(); }
unsigned long toULong(bool *ok) const { return _ustring.toULong(ok); }
uint32_t toUInt32(bool *ok) const { return _ustring.toUInt32(ok); }
uint32_t toStrictUInt32(bool *ok) const { return _ustring.toStrictUInt32(ok); }
unsigned toArrayIndex(bool *ok) const { return _ustring.toArrayIndex(ok); }
......
......@@ -116,6 +116,8 @@ namespace KJS {
friend ValueImp *jsNumber(unsigned);
friend ValueImp *jsNumber(long);
friend ValueImp *jsNumber(unsigned long);
friend ValueImp *jsNumber(long long);
friend ValueImp *jsNumber(unsigned long long);
friend ValueImp *jsNumber(double);
friend ValueImp *jsNumber(double, bool);
public:
......
......@@ -74,7 +74,7 @@ public:
m_getValue = getValue;
}
void setCustomIndex(ObjectImp *slotBase, unsigned long index, GetValueFunc getValue)
void setCustomIndex(ObjectImp *slotBase, unsigned index, GetValueFunc getValue)
{
assert(getValue);
m_slotBase = slotBase;
......@@ -91,7 +91,7 @@ public:
ObjectImp *slotBase() const { return m_slotBase; }
const HashEntry *staticEntry() const { return m_data.staticEntry; }
unsigned long index() const { return m_data.index; }
unsigned index() const { return m_data.index; }
private:
static ValueImp *undefinedGetter(ExecState *, const Identifier&, const PropertySlot&);
......@@ -102,7 +102,7 @@ private:
union {
ValueImp **valueSlot;
const HashEntry *staticEntry;
unsigned long index;
unsigned index;
} m_data;
};
......
......@@ -214,7 +214,7 @@ ObjectImp *RegExpObjectImp::arrayOfMatches(ExecState *exec, const UString &resul
ValueImp *RegExpObjectImp::backrefGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
{
RegExpObjectImp *thisObj = static_cast<RegExpObjectImp *>(slot.slotBase());
unsigned long i = slot.index();
unsigned i = slot.index();
if (i < thisObj->lastNrSubPatterns + 1) {
int *lastOvector = thisObj->lastOvector;
......@@ -231,9 +231,8 @@ bool RegExpObjectImp::getOwnPropertySlot(ExecState *exec, const Identifier& prop
if (s[0] == '$' && lastOvector)
{
bool ok;
unsigned long i = s.substr(1).toULong(&ok);
if (ok)
{
unsigned i = s.substr(1).toUInt32(&ok);
if (ok) {
slot.setCustomIndex(this, i, backrefGetter);
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment