Re: [R] mkChar can be interrupted

2004-06-14 Thread Luke Tierney
Not sure why you think this suggest mkChar can be interrupted. If you want to figure out how interrupt handling works on unix, run under gdb and single step from the signal to the next point where R_CheckUserInterrupt is called. You should find that the signal handler sets a flag and that flag

RE: [R] mkChar can be interrupted

2004-06-14 Thread Vadim Ogranovich
-Original Message- From: Luke Tierney [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 1:30 PM To: Vadim Ogranovich Cc: R-Help Subject: Re: [R] mkChar can be interrupted Not sure why you think this suggest mkChar can be interrupted. If you want to figure out how

RE: [R] mkChar can be interrupted

2004-06-14 Thread Luke Tierney
On Mon, 14 Jun 2004, Vadim Ogranovich wrote: -Original Message- From: Luke Tierney [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 1:30 PM To: Vadim Ogranovich Cc: R-Help Subject: Re: [R] mkChar can be interrupted Not sure why you think this suggest mkChar can

RE: [R] mkChar can be interrupted

2004-06-14 Thread Vadim Ogranovich
I am confused. Here is an excerpt from R-exts: As from R 1.8.0 no port of R can be interrupted whilst running long computations in compiled code,... Doesn't it imply that the primitive functions like allocVector, mkChar, etc., which are likely to occur in any compiled code called via .Call, are

RE: [R] mkChar can be interrupted

2004-06-14 Thread Luke Tierney
On Mon, 14 Jun 2004, Vadim Ogranovich wrote: I am confused. Here is an excerpt from R-exts: As from R 1.8.0 no port of R can be interrupted whilst running long computations in compiled code,... Doesn't it imply that the primitive functions like allocVector, mkChar, etc., which are

RE: [R] mkChar can be interrupted

2004-06-14 Thread Vadim Ogranovich
() and R_alloc() stand up against long jumps? Thanks, Vadim -Original Message- From: Luke Tierney [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 5:43 PM To: Vadim Ogranovich Cc: R-Help Subject: RE: [R] mkChar can be interrupted On Mon, 14 Jun 2004, Vadim Ogranovich wrote

RE: [R] mkChar can be interrupted

2004-06-14 Thread Luke Tierney
, which will result in a non-local exit. If the allocation succeeds, you are responsable for calling Free. luke -Original Message- From: Luke Tierney [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 5:43 PM To: Vadim Ogranovich Cc: R-Help Subject: RE: [R] mkChar can

RE: [R] mkChar can be interrupted

2004-06-14 Thread Vadim Ogranovich
(), but might be a problem in interrupt handlers (I am not an expert though). Thanks, Vadim -Original Message- From: Luke Tierney [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 7:46 PM To: Vadim Ogranovich Cc: R-Help Subject: RE: [R] mkChar can be interrupted On Mon, 14 Jun 2004