search for: cstack_defn

Displaying 8 results from an estimated 8 matches for "cstack_defn".

Did you mean: cstack_defns
2017 Jan 01
3
Definition of uintptr_t in Rinterface.h
...compiler (and some use C++). This was documented in the manual: 'Note that uintptr_t is a C99 type for which a substitute is defined in R, so your code needs to define HAVE_UINTPTR_T appropriately.' AFAICS if you comply, there will not be a conflict. Also note that is only an issue if CSTACK_DEFNS is defined, not the default and not mentioned here. > Thanks, > Simon > > > >> On Dec 26, 2016, at 11:25 PM, Laurent Gautier <lgautier at gmail.com> wrote: >> >> Hi, >> >> I was recently pointed out that a definition in Rinterface.h can be con...
2007 Jun 28
1
How to set R_CStackLimit
Hi, I have tried to disable stack checking by set R_CStackLimit to -1. However, it always crashes my win32 multiple threads program. I am using R-2.5.0. My code looks like: #include <Rversion.h> #if (R_VERSION >= R_Version(2,3,0)) #define R_INTERFACE_PTRS 1 #define CSTACK_DEFNS 1 #include <Rinterface.h> #endif and then, add below line to my main function: R_CStackLimit = (uintptr_t)-1; //crashes when step to this line. As for input library in link option, I only link to Rdll.lib. Am I missing something? Thanks very much! xzhang -- View this message...
2009 Dec 26
1
Problem compiling R library on FC4 ( conflicting declaration in Rinterface.h and stdint.h)
...ys/time.h> #include <time.h> #include <errno.h> #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> #define R_NO_REMAP #define R_INTERFACE_PTRS 1 #define CSTACK_DEFNS 1 #include <Rversion.h> #include <R.h> #include <Rdefines.h> #include <Rinterface.h> #include <Rembedded.h> #include <R_ext/Boolean.h> #include <R_ext/Parse.h> #include <R_ext/Rdynload.h> Thanks Saptarshi
2017 Jan 02
1
Definition of uintptr_t in Rinterface.h
...; This was documented in the manual: > > 'Note that uintptr_t is a C99 type for which a substitute is defined in R, so your code needs to define HAVE_UINTPTR_T appropriately.' > > AFAICS if you comply, there will not be a conflict. > > Also note that is only an issue if CSTACK_DEFNS is defined, not the default and not mentioned here. > > > > > Thanks, > Simon > > > > On Dec 26, 2016, at 11:25 PM, Laurent Gautier <lgautier at gmail.com> wrote: > (...) > > Is this expected ? Shouldn't R rely on the definition in stdint.h...
2017 Jan 01
0
Definition of uintptr_t in Rinterface.h
...This was documented in the manual: > > 'Note that uintptr_t is a C99 type for which a substitute is defined in R, > so your code needs to define HAVE_UINTPTR_T appropriately.' > > AFAICS if you comply, there will not be a conflict. > > Also note that is only an issue if CSTACK_DEFNS is defined, not the > default and not mentioned here. > > > > > Thanks, >> Simon >> >> >> >> On Dec 26, 2016, at 11:25 PM, Laurent Gautier <lgautier at gmail.com> wrote: >>> (...) >>> >>> Is this expected ? Shouldn...
2007 Jul 06
1
How to disable R's C stack checking
Hi all, I'm developing an application on Mac OS X Darwin which embeds R. However, the application always crashes due to the C stack checking. I know that R_CStackLimit can be set to -1 to disable the stack checking, but I don't know where to put the code "R_CStackLimit=-1". Please give some instructions. Thank you very much! Here is my compiler infomation: $g++ -v Using
2007 Jun 01
3
Question on the R's C stack limit
Dear r-devel members, I encountered a C stack limit issue, when I tried to embed R 2.5 into my application. In the R-exts document, it says:"Note that R's own front ends use a stack size of 10Mb". I desire to know: is it possible to decrease this stack size by modifying R's source code? If it's possible, which part of the source code is responsible for the issue? Thank
2016 Dec 27
3
Definition of uintptr_t in Rinterface.h
Hi, I was recently pointed out that a definition in Rinterface.h can be conflicting with a definition in stdint.h: /usr/include/R/Rinterface.h has: typedef unsigned long uintptr_t; /usr/include/stdint.h has: typedef unsigned int uintptr_t; (when 32bit platform complete definition is: #if __WORDSIZE == 64 # ifndef __intptr_t_defined typedef long int intptr_t; # define