search for: set_nam

Displaying 20 results from an estimated 56 matches for "set_nam".

Did you mean: set_name
2017 Sep 02
1
Please avoid direct use of NAMED and SET_NAMED macros
> To allow for future changes in the way the need for duplication is > detected in R internal C code, package C code should avoid direct > use of NAMED,and SET_NAMED, or assumptions on the maximal value > of NAMED. Use the macros MAYBE_REFERENCED, MAYBE_SHARED, and > MARK_NOT_MUTABLE instead. These currently correspond to > > MAYBE_REFERENCED(x): NAMED(x) > 0 > MAYBE_SHARED(x): NAMED(x) > 1 > MARK_NOT_MUTABLE(x): SET_NAMED(c...
2006 Jun 02
2
Helping out - simple bugs to help familiarize with R design, source, etc
Hi All, Well I finally have found the time to get svn working and I have successfully built my own tuned atlas (multi-threaded version) libs and have both the r-devel and r-patched trees building daily on my box. The problem is I still do not have a good idea of the layout and design of R, and typically I "learn by doing" by trying to fix a bug that hits me. Unfortunately ;-)
2013 Sep 27
0
SET_NAMED in getattrib0
Can someone please set me straight on why getattrib0 calls SET_NAMED on the SEXP it returns? For example the line : SET_NAMED(CAR(s), 2); appears near the end of getattrib0 here : https://svn.r-project.org/R/trunk/src/main/attrib.c <https://svn.r-project.org/R/trunk/src/main/attrib.c> getattrib() is just reading the value. Shouldn't NAMED be...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...03, "Test", + Wx::ArtProvider::get_bitmap(Wx::ART_WARNING) ) + tb5.add_tool( 103, "Test", + Wx::ArtProvider::get_bitmap(Wx::ART_MISSING_IMAGE) ) + tb5.realize + + # add the toolbars to the manager + pi = Wx::AuiPaneInfo.new + pi.set_name(''tb1'').set_caption("Big Toolbar").toolbar_pane + pi.top.set_left_dockable(false).set_right_dockable(false) + @mgr.add_pane(tb1, pi) + + + pi = Wx::AuiPaneInfo.new + pi.set_name(''tb1'').set_caption("Toolbar 2").toolbar_pane + pi....
2007 Mar 29
3
MANAGESIEVE patch v4 for dovecot 1.0.rc28
Hello dovecot users, I have updated the MANAGESIEVE patch to fix the currently known small problems with the protocol implementation. It is designed for rc28, but also compiles cleanly with the current cvs branch_1_0. Change Log V4 ------------- - Added managesieve_implementation_string setting to the managesieve configuration. This can be used to customize the default
2007 Jun 20
3
dovecot -n segfault
# uname -a Linux ns2 2.6.18-4-sparc64 #1 Mon Mar 26 11:16:07 UTC 2007 sparc64 GNU/Linux # dovecot -n # 1.0.1: /usr/local/etc/dovecot.conf Segmentation fault uhu? ciao Luca
2004 Mar 06
2
.Call: is new attribute of protected object auto-protected
Hi, I have an SEXP obj in a C function called via .Call(). The obj is protected (in fact it is an argument to .Call and therefore automatically protected). If I set an attribute of obj does the attribute become protected too? Here is an example SEXP foo(SEXP obj) { SET_NAMES(obj, NEW_CHARACTER(3)); /* are names protected or not? */ ... } Thanks, Vadim [[alternative HTML version deleted]]
2019 Nov 24
3
switch to reference counting in R-devel
...ay no longer be completely accurate but should give you an idea of what is going on. If you want to test your package under reference counting you can do so by building R with -DSWITCH_TO_REFCNT added to CFLAGS or DEFS in a config.site file. A small number of packages are still using the NAMED or SET_NAMED functions even though this has been discouraged for some time. For now these will not produce errors but also not do anything useful. They will probably be removed before R 4.0.0 is released, so you should look at why you are using them and adjust accordingly. Best, luke -- Luke Tierney Ral...
2007 May 11
0
[ wxruby-Bugs-10759 ] Wx::AuiManager.get_all_panes can not get all pane.
...========================================== =end class MainApp < Wx::App def on_init @frame = Wx::Frame.new(nil, -1, "bug get_all_panes",Wx::DEFAULT_POSITION,Wx::Size.new(800,600),Wx::DEFAULT_FRAME_STYLE) aui =Wx::AuiManager.new @frame pi = Wx::AuiPaneInfo.new.set_name(''a'').left.set_caption("a") aui.add_pane(createTextCtrl("a"), pi) pi = Wx::AuiPaneInfo.new.set_name(''b'').center.set_caption("b") aui.add_pane(createTextCtrl("b"), pi) puts "aui.get_all_panes--...
2007 May 16
0
Rake Namespaces - How to keep them separate?
Good morning, In our app we have a number of custom Rake tasks living in lib/tasks. Each has a different namespace, but if I do this (yes, I know, global variables bad): namespace :spider_uk_foo do @ss = Scraper.new @ss.set_name task :perform do end end Then @ss.set_name is run when running any other rake file, though each has a different namespace. @ss would also appear to be available to other rake files, again in different namespaces, where it is not even defined. Any ideas, please? Any advice, or pointing out...
2002 Aug 25
1
library(file) segfaults on solaris (PR#1942)
...auses a segfault on solaris 2.8 as soon as library(file) is attempted. it runs fine on RH 7.2. the segfault on solaris occured for R 1.5.1 and 1.6 (8-25 image) a quick poke at gdb (which i can only get running for R 1.6, though this bug report is for 1.5.1) shows the failure to be at eval.c:351 SET_NAMED(tmp, 2) --please do not edit the information below-- Version: platform = sparc-sun-solaris2.8 arch = sparc os = solaris2.8 system = sparc, solaris2.8 status = Patched major = 1 minor = 5.1 year = 2002 month = 08 day = 25 language = R Search Path: .GlobalEnv, package:ctest, Autoloa...
2007 Jun 30
1
Re: [Xapian-commits] 9092: trunk/xapian-core/ trunk/xapian-core/api/ trunk/xapian-core/common/ trunk/xapian-core/include/xapian/
...n a string indicating the host and port that the database is at (probably in a pseudo URL form something like "remotetcp://host:port/"), and something similar for a remote progsrv database. Not sure what an inmemory one would return... Alternatively, databases could have a new "set_name()" method which sets the name to return (possibly with something like the above as the default) to avoid having to do long string compares to work out which database a document came from. This would also be useful for the ErrorHandler mechanism (for reporting which database in a remote s...
2017 Aug 04
1
Restructuring Star Wars data from rwars package
I'm having trouble restructuring data from the rwars package into a dataframe. Can someone help me? Here's what I have... library("rwars") library("tidyverse") # These data are json, so they load into R as a list people <- get_all_people(parse_result = T) people <- get_all_people(getElement(people, "next"), parse_result = T) # Look at Anakin
2012 Apr 19
2
method value passing in rails
in my ruby on rails application, i have one controller class HomeController < ApplicationController def home puts "name.....#{@name}" end def branch *//HERE HAVE TO GET THE ABOVE FUNCTION VALUE @name* end end What am trying to do, i have to get the @name value in method branch. i could show the value in function home, but i didn''t get that in
2019 Dec 03
1
switch to reference counting in R-devel
...idea of what is going on. > > > > If you want to test your package under reference counting you can do > > so by building R with -DSWITCH_TO_REFCNT added to CFLAGS or DEFS in a > > config.site file. > > > > A small number of packages are still using the NAMED or SET_NAMED > > functions even though this has been discouraged for some time. > > For now these will not produce errors but also not do anything useful. > > They will probably be removed before R 4.0.0 is released, so you > > should look at why you are using them and adjust accordin...
2019 Aug 15
2
[nbdkit PATCH] ocaml: Add support for dynamic .thread_model
...------------------------------------------*/ /* set_* functions called from OCaml code at load time to initialize * fields in the plugin struct. */ -value -ocaml_nbdkit_set_thread_model (value modelv) -{ - plugin._thread_model = Int_val (modelv); - return Val_unit; -} - value ocaml_nbdkit_set_name (value namev) { @@ -775,6 +790,8 @@ SET(extents) SET(can_cache) SET(cache) +SET(thread_model) + #undef SET static void @@ -817,6 +834,8 @@ remove_roots (void) REMOVE (can_cache); REMOVE (cache); + REMOVE (thread_model); + #undef REMOVE } diff --git a/plugins/ocaml/NBDKit.ml b/plu...
2010 May 19
6
[PATCH 0/6]xl: Add ''xl tmem-*'' commands
Add tmem-* commands, did some simple tests. [PATCH 1/6]xl: Add ''xl tmem-list'' command [PATCH 2/6]xl: Add ''xl tmem-freeze'' command [PATCH 3/6]xl: Add ''xl tmem-destroy'' command [PATCH 4/6]xl: Add ''xl tmem-thaw'' command [PATCH 5/6]xl: Add ''xl tmem-set'' command [PATCH 6/6]xl: Add ''xl
2019 Jul 19
2
ALTREP wrappers and factors
...REP framework and identifying places we may need more tooling. Comments inline. On Thu, Jul 18, 2019 at 12:22 PM King Jiefei <szwjf08 at gmail.com> wrote: > > If that is the case and you are 100% sure the reference number should be 1 > for your variable *y*, my solution is to call *SET_NAMED *in C++ to reset > the reference number. Note that you need to unbind your local variable > before you reset the number. To return an unbound SEXP, the C++ function > should be placed at the end of your *matter:::as.altrep *function. I don't > know if there is any simpler way to...
2020 Feb 10
1
[nbdkit PATCH] ocaml: Support .preconnect callback
..._model : (unit -> thread_model) option; can_fast_zero : ('a -> bool) option; + + preconnect : (bool -> unit) option; } let default_callbacks = { @@ -145,6 +147,8 @@ let default_callbacks = { thread_model = None; can_fast_zero = None; + + preconnect = None; } external set_name : string -> unit = "ocaml_nbdkit_set_name" "noalloc" @@ -192,6 +196,8 @@ external set_thread_model : (unit -> thread_model) -> unit = "ocaml_nbdkit_set_t external set_can_fast_zero : ('a -> bool) -> unit = "ocaml_nbdkit_set_can_fast_zero" +e...
2019 Dec 03
0
switch to reference counting in R-devel
...ccurate but should give you an idea of what is going on. > > If you want to test your package under reference counting you can do > so by building R with -DSWITCH_TO_REFCNT added to CFLAGS or DEFS in a > config.site file. > > A small number of packages are still using the NAMED or SET_NAMED > functions even though this has been discouraged for some time. > For now these will not produce errors but also not do anything useful. > They will probably be removed before R 4.0.0 is released, so you > should look at why you are using them and adjust accordingly. > > Best,...