search for: get_length

Displaying 19 results from an estimated 19 matches for "get_length".

Did you mean: set_length
2003 Dec 10
0
C++: SET_LENGTH() Over Many Iterations?
...d slots; i.e., I'm not trying to create an R object too big to be handled by R within the context of my OS's available memory. Here's some simple test code I've been running: <CPP Code> #define PUSH_BACK_INTEGER(v, x) \ do {\ UNPROTECT_PTR(v);\ SET_LENGTH(v, GET_LENGTH(v) + 1);\ PROTECT(v);\ INTEGER_POINTER(v)[GET_LENGTH(v) - 1] = x;\ }\ while (false) SEXP R_SimplePushBackTest(SEXP args) { SEXP arg1, arg2, int_vect; PROTECT(arg1 = AS_INTEGER(CADR(args))); int n_reps = INTEGER_POINTER(arg1)[0]; PROTECT(arg2 = AS_LOGICAL(CA...
2004 Jun 22
3
[Q] GET_DIM() crash on Windows only
...nrow, int *ncol) { SEXP vntXdim; int nX; #ifdef DEBUG_GETDIM REprintf("In GetMatrixDimen()...\n"); #endif /**** Code crashes here on Windoze ******/ PROTECT(vntXdim = GET_DIM(vntX)); #ifdef DEBUG_GETDIM REprintf("\tgot dimension object\n"); #endif nX = GET_LENGTH(vntXdim); #ifdef DEBUG_GETDIM REprintf("\tgot length from dimension object\n"); #endif if (nX == 2) { int *piXdim = INTEGER_POINTER(vntXdim); *nrow = piXdim[0]; *ncol = piXdim[1]; } else { *nrow = -1; *ncol = -1; }...
2003 Dec 12
3
C++: Appending Values onto an R-Vector.
Hi folks. I posted this question a few days ago, but maybe it got lost because of the code I included with it. I'm having a problem using the SET_LENGTH() macro in an R extension I'm writing in C++. In a function within the extension I use SET_LENGTH() to resize R vectors so as to allow the concatenation of single values onto the vectors -- it's a "push back" function to
2015 Oct 08
2
[PATCH 0/1] opusenc support for WavPack input
This patch to opus-tools adds optional support to WavPack lossless format as input to opusenc. Like support to FLAC, it depends on an external library, libwavpack, and may be disabled on configure. Lucas Clemente Vella (1): Reading input from WavPack files. Makefile.am | 7 +- configure.ac | 37 ++++++++ src/audio-in.c | 71 ++++++++------- src/opusenc.c | 19 +++- src/opusenc.h
2004 Apr 06
1
A question about embedded R
...R_command(); double eval_R_command(const char *funcName) { SEXP exp,e; ParseStatus status = PARSE_OK; int i,n; double val; PROTECT(exp=NEW_CHARACTER(1)); SET_STRING_ELT(exp, 0, COPY_TO_USER_STRING(funcName)); PROTECT(e = R_ParseVector(exp, 1, &status)); n = GET_LENGTH(e); for(i = 0; i < n ; i++) val = (double)REAL(eval(VECTOR_ELT(e,i), R_GlobalEnv))[0]; UNPROTECT(2); return(val); } Then if i call with eval_R_command("mean(1:5)") it worked fine and got 3, but eval_R_command("sum(1:5)") it produced a strange number 7...
2013 Apr 26
0
Wine release 1.5.29
...not needed. ole32: Simplify IEnumSTATSTG initialization. msdaps: Added proxy/stub for IDBInitialize_Uninitialize(). msdaps: Added some proxy/stubs for IDBDataSourceAdmin methods. Piotr Caban (9): wininet: Fixed Cache-Content: no-cache tests. mshtml: Added IOmHistory::get_length implementation. wininet: Improve searching for no-store header in HTTP response. wininet: Fix cache container prefix initialization. mshtml: Added IOmHistory::get_length test. mshtml: Allocate smaller cookies buffer size in HTMLDocument_get_cookie. wininet: Load persis...
2007 Oct 12
0
Wine release 0.9.47
...of IDispatch from HTMLElementCollection_Create. mshtml: Include document element in collection returned by IHTMLDocument2::get_all. mshtml: Added IHTMLOptionElement interface stub implementation. mshtml: IHTMLElementContainer::item rewrite. mshtml: Added IHTMLSelectElement::get_length implementation. mshtml.idl: Added IHTMLInputTextElement interface. mshtml: Added IHTMLInputTextElement interface implementation. mshtml: Move most code from handle_editor_load to exec_editmode. mshtml: Skip tests if we can't get body object - it means that there is no Ge...
2010 Feb 19
0
Wine release 1.1.39
...DOMDocument::createProcessingInstruction() on top of ::createNode(). msxml3: Accept NODE_ENTITY_REFERENCE in ::createNode() and use it for ::createEntityReference(). msxml3: Fix return value for IXMLDOMNode_put_nodeValue() for unsupported types. msxml3: Use interface methods for ::get_length() calls. msxml3: Simplify ::insertData() for Text, Comment and CDATA nodes. msxml3: Implement ::replaceData() for Text, Comment and CDATA nodes. msxml3: Simplify ::appendData() for Text, Comment and CDATA nodes. msxml3: Get rid of libxml2 accessors in ::substringData() for T...
2011 Jun 10
0
Wine release 1.3.22
.... mshtml: Added IOmNavigator::get_mimeTypes implementation. mshtml: Don't release plugins collection in OmNavigator destructor since it contains a weak reference. mshtml: Added IDispatchEx support to HTMLMimeTypesCollection object. mshtml: Added IHTMLMimeTypesCollection::get_length implementation. mshtml: Added IHTMLElement::get_offsetParent implementation. iextag.idl: Added ClientCaps coclass declaration. urlmon: Initialize PROTOCOLDATA structure before passing it to Switch. urlmon: Avoid accessing an uninitialized variable (valgrind). urlmon: A...
2007 Dec 14
0
Wine release 0.9.51
...tead of empty string in IHTMLBodyElement::get_background. mshtml: Improve debug traces. shlwapi: Uncomment IUnknown_EnableModeless code. mshtml: Added more DOM tests. mshtml: Added IHTMLStyleSheet::get_rules implementation. mshtml: Added IHTMLStyleSheetRulesCollection::get_length implementation. mshtml: Fixed ref counting. mshtml: Added HTMLTxtRange::Exec(IDM_INDENT) implementation. mshtml: Added HTMLTxtRange::Exec(IDM_INDENT) test. hlink: Added IHttpNegotiate interface to ExtensionService. shdocvw: Added client site's IOleCommandTarget tes...
2007 Sep 28
0
Wine release 0.9.46
...nterface. mshtml: Return NULL for empty results in get_style_attr. mshtml: Added more IHTMLStyle getters implementation. mshtml: Added HTMLStyle::get_textDecoration* implementation. mshtml: Added get_styleSheets implementation. mshtml: Added IHTMLStyleSheetsCollection::get_length implementation. mshtml: Fixed IHTMLTxtRange::get_text implementation with no nsrange associated. mshtml: Added more tests. mshtml: Added Exec(IDM_FONT) stub implementation. shdocvw: Added WebBrowser::FullScreen property implementation. shdocvw: Added WebBrowser::Resiza...
2019 Mar 15
0
Wine release 4.4
...e documents with no window associated in IHTMLDocument2::get_location. mshtml: Use is_main_content_window in a few more places. mshtml: Access document object via browser object in IActiveScriptSiteWindow::GetWindow. mshtml: Access document object via browser object in IOmHistory::get_length. mshtml: Access document object via browser object in refresh_proc. mshtml: Access document object via browser object in nsIChannel::AsyncOpen. mshtml: Access document object via browser object in IHTMLWindow2 implementation. mshtml: Access document object via browser object...
2011 Aug 05
0
Wine release 1.3.26
...egistration to ieframe. shdocvw: Moved remaining code out of factory.c. iexplore: Use ieframe instead of shdocvw. winnt.h: Added LOCALE_CUSTOM_* declarations. mshtml: Added semi-stub implementation of IHTMLWindow2::status property. mshtml: Added IHTMLPluginsCollection::get_length implementation. mshtml: Added IOmNavigator::get_*Language implementations. mshtml: Added IOmNavigator::get_*Language tests. mshtml: Added IOmNavigator::get_appMinorVersion implementation. mshtml: Rename call_event to fire_event. mshtml: Added possibility for node imple...
2008 Oct 24
0
Wine release 1.1.7
...jscript: Check for This->ctx and This->site earlier (Coverity). mshtml: Initialize nswindow in create_doc_from_nsdoc. Michael Karcher (14): msxml3: Implementation of IXMLDOMNamedNodeMap::removeNamedItem. msxml3: Correct handling of listLength == NULL in IXMLDOMNamedNodeMap::get_length. msxml3: IXMLDOMNode_put_nodeValue: Use variant coercion. msxml3: Use right COM invocation macro. msxml3: Remove superflous re-conversion from wide chars to utf8. msxml3: Fix leaks in callers of xmlChar_from_wchar. msxml3: Fix leaking the BindStatusCallback if bind_url...
2009 Oct 23
0
Wine release 1.1.32
...Improved IHTMLElement2::doScroll stub. mshtml: Moved QueryService call to hlink_frame_navigate. mshtml: Added IHTMLLocation::put_href implementation. shdocvw: Improved debug messages. mshtml: Added IHTMLWindow2::name property implementation. mshtml: Added IHTMLWindow2::get_length implementation. mshtml: Create nsIDOMEvent in create_event if not available. mshtml: Added IHTMLElement3::fireEvent implementation. mshtml: Added IHTMLElement::click implementation. mshtml: Added more events tests. mshtml: Added IHTMLBaseFrame interface stub implementa...
2009 Sep 25
0
Wine release 1.1.30
...this' to be host object in builtin functions. jscript: Allow this_obj to be host object in call_function. jscript: Added Object.toString for host objects implementation. jscript: Allow 'this' to be host object in invoke_value_proc. jscript: Throw correct error in get_length. jscript: Fixed to_object for NULL IDispatch. jscript: Throw type error fot Array.toString with wrong 'this' call. jscript: Added Object.toString implementation for variable object. jscript: Throw type error from call and apply functions. Jaime Rave (1): wined...
2009 Dec 18
0
Wine release 1.1.35
...NULL for URLs in file:///... format. wininet: Make InternetCrackUrlA tests more generic and add more tests. wininet: Set lpszUrlPath in InternetCrackUrlW if its length is 0. urlmon: Include extra info in object name passed to HttpOpenRequest. mshtml: Added IHTMLDOMTextNode::get_length implementation. mshtml: Removed ref count tests that fail on some Windows. jscript: Reorder functions in function.c. jscript: Added Function constructor implementation. jscript: Added Function constructor tests. jscript: Fixed tests on some Windows. mshtml: Added...
2008 May 02
0
Wine release 0.9.61
...atchEx support to HTMLInputElement. mshtml: Added IDispatchEx support to HTMLOptionElement. mshtml.idl: Added DispHTMLImg implementation. mshtml.idl: Added DispHTMLStyle declaration. mshtml: Added get_childNodes implementation. mshtml: Added IHTMLDOMChildrenCollection::get_length implementation. mshtml: Added IHTMLDOMChildrenCollection::item implementation. mshtml: Added IDispatchEx support to HTMLDOMChildrenCollection. mshtml: Moved IDispatchEx initialization to HTMLElement_Init. mshtml: Don't assume that nselem is valid in HTMLElement. ms...
2010 May 07
0
Wine release 1.1.44
...ersion to IE8. urlmon: Set BINF_NEEDFILE flag for synchronous binding of builtin protocols. urlmon: Use cache file to read in synchronous binding. urlmon: Added reading from cache file tests. mshtml: Fixed IObjectSafety failure handling. mshtml: Added IHTMLFormElement::get_length implementation. mshtml: Added IHTMLDocument2::clear implementation. mshtml: Added beginning support for oncontextmenu event. mshtml: Added IHTMLInputElement::put_type implementation. mshtml: Added IHTMLInputElement::get_type tests. mshtml: Added IHTMLInputElement::put_...