search for: isnul

Displaying 20 results from an estimated 86 matches for "isnul".

Did you mean: isnull
2013 Dec 06
1
Paging in waves.
...}.gsm)} / 1650)]) same => n,Playback(one-moment-please) same => n,Set(MUTEAUDIO(all)=on) same => n,SIPAddHeader(Alert-Info: RingAnswer) same => n,SipAddHeader(Call-Info: <uri>\;answer-after=0) ;same => n,Set(TIMEOUT(absolute)=${DURATION}) same => n,ExecIf($[${ISNULL(${ARG1})}=0]?Page(${ARG1},n(${RECORDED_FILE})is),10) same => n,ExecIf($[${ISNULL(${ARG2})}=0]?Page(${ARG2},n(${RECORDED_FILE})is),10) same => n,ExecIf($[${ISNULL(${ARG3})}=0]?Page(${ARG3},n(${RECORDED_FILE})is),10) same => n,ExecIf($[${ISNULL(${ARG4})}=0]?Page(${ARG4},n(${RECORDED_FILE...
2014 Sep 11
2
[LLVMdev] Fail to load a pointer to a function inside MCJIT-ed code when it is reload from ObjectCache
Thank you Lang. I attached the ELF object file here for your reference. Here is the IR dump of JittedOpExpr LLVM function. IrExprGetValue1 LLVM function calls to external function expr->evalfunc(expr, econtext, isNull, isDone); which should be pointed by 0x7fe4801fa1f8. However, only the first time MCJIT generated object point to expr->evalfunc but second time when program load from object cache does not. In the second time, before program load object cache, brand new llvm::Module and llvm::ExecutionEngine a...
2011 Jul 01
1
defining new variable
...dates) for a while and still getting <errors> on it. I would be very grateful if someone could help me with this, to be able to move on. I have the following variables: - Transplant.date - Faildate - Death.date The new variable Time should do the following thing: Time <- If Not IsNull(<Faildate>) Then DaysBetween(<transplant date> ,<Faildate>) Else If IsNull(<Faildate>) And Not IsNull(<Death date>) Then DaysBetween(<transplant date> ,<Death date>) Else If IsNull(<Faildate>) And IsNull(<Death date>) Then DaysBetween(<trans...
1997 Nov 28
3
R-alpha: Problems with dimnames and names
...t-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="apatch" diff -ur R-0.50-a4/src/main/cov.c R-0.50-a4.patched/src/main/cov.c --- R-0.50-a4/src/main/cov.c Sun Nov 24 23:43:05 1996 +++ R-0.50-a4.patched/src/main/cov.c Fri Nov 28 11:21:23 1997 @@ -390,7 +390,7 @@ } if(isNull(y)) { x = getAttrib(x, R_DimNamesSymbol); - if(!isNull(x) && !isNull(CADR(x))) { + if(ncx > 1 && !isNull(x) && !isNull(CADR(x))) { PROTECT(ind = allocList(2)); CAR(ind) = CADR(x); CADR(ind) = CADR(x); @@ -401,7 +401,7 @@ else { x = getAttrib(x, R_Di...
2014 Sep 11
2
[LLVMdev] Fail to load a pointer to a function inside MCJIT-ed code when it is reload from ObjectCache
Hi, All I have a problem to reuse mcjit jitted code loaded from ObjectCache from a file. In the first run, I use MCJIT generate function JittedOpExpr object code as following and it runs OK. 0x7fe4801fa1f8 at instruction 0x00007fe4cc6c2014 points to 0x69382E which is the beginning of ExecEvalVar function. Then I save the object code into a file after implementing notifyObjectCompiled method.
2020 Jun 07
5
use of the tcltk package crashes R 4.0.1 for Windows
...wasn't tested for a month? Anyways, Free() is just free() with a check that we're not freeing a null pointer, followed by setting the pointer to NULL. At that point of tcltk.c, we have for (objc = i = 0; i < length(avec); i++){ const char *s; char *tmp; if (!isNull(nm) && strlen(s = translateChar(STRING_ELT(nm, i)))){ // tmp = calloc(strlen(s)+2, sizeof(char)); tmp = Calloc(strlen(s)+2, char); *tmp = '-'; strcpy(tmp+1, s); objv[objc++] = Tcl_NewStringObj(tmp, -1); free(t...
2020 Jun 07
3
[External] Re: use of the tcltk package crashes R 4.0.1 for Windows
...e() is just free() with a check that we're not freeing a null pointer, followed by setting the pointer to NULL. At that point of tcltk.c, we have > > > > for (objc = i = 0; i < length(avec); i++){ > > const char *s; > > char *tmp; > > if (!isNull(nm) && strlen(s = translateChar(STRING_ELT(nm, i)))){ > > // tmp = calloc(strlen(s)+2, sizeof(char)); > > tmp = Calloc(strlen(s)+2, char); > > *tmp = '-'; > > strcpy(tmp+1, s); > > objv[objc++] =...
2010 Jul 23
2
application call to Gosub affects flow of control, and needs to be re-written using AEL
...TEN},1); Return; } .... // left over _X. => { Gosub(pstnInterface1,${EXTEN},1); Return; } } context pstnInterface1 { _X. => { // setup the interface callerid/secret status ChanIsAvail(DAHDI/g1); if( ! ${ISNULL(${AVAILORIGCHAN})} ) { Dial(DAHDI/g1/${ext},,${dialopts}); } Return; } } context pstnInterface2 { _X. => { // setup the interface callerid/secret status ChanIsAvail(SIP/....)...
2007 Aug 27
3
voip provider settings problem, please help
hi ppl, i'm using asterisk 1.2 because i'm making use of voiceone, but before i was using asterisk 1.4 and had the same problem, it concerns an italian voip/sip provider called eutelia/skypho, my problem is the following one: when i start my pbx my skypho account is working fine, meaning that e.g. incoming calls are shown in the asterisk CLI and caller and callee can hear each other when
2007 Aug 28
1
calls being forwarded to neighbor?? please help, thx :)
...t}) exten = s,n,Playback(call-fwd-unconditional) exten = s,n,Playback(for) exten = s,n,Playback(extension) exten = s,n,SayDigits(${CALLERID(num)}) exten = s,n,Playback(is-set-to) exten = s,n,SayDigits(${toext}) [macro-conference] exten = s,1,Answer exten = s,n,Wait(1) exten = s,n,Set(CONFNO=${IF(${ISNULL(${ARG1})}?${MACRO_EXTEN}:${ARG1})}) exten = s,n,Set(OPTION=${IF(${ISNULL(${ARG2})}?cMps:${ARG2})}) exten = s,n,Set(MEETME_RECORDINGFILE=/var/spool/asterisk/meetme/conference-${CONFNO}-${TIMESTAMP}-${UNIQUEID}) exten = s,n,Meetme(${CONFNO}|${OPTION}) exten = s,n,Hangup [macro-dialout] exten = s,1,...
2014 Oct 17
1
Making parent.env<- an error for package namespaces and package imports
...9;? Thanks, Karl Index: src/main/builtin.c =================================================================== --- src/main/builtin.c (revision 66783) +++ src/main/builtin.c (working copy) @@ -356,6 +356,24 @@ return( ENCLOS(arg) ); } +static Rboolean R_IsImportsEnv(SEXP env) +{ + if (isNull(env) || !isEnvironment(env)) + return FALSE; + if (ENCLOS(env) != R_BaseNamespace) + return FALSE; + SEXP name = getAttrib(env, R_NameSymbol); + if (!isString(name) || length(name) != 1) + return FALSE; + + const char *imports_prefix = "imports:"; + co...
2017 Mar 20
2
IO error when writing to disk
...utils/src/io.c =================================================================== --- src/library/utils/src/io.c (r?vision 72357) +++ src/library/utils/src/io.c (copie de travail) @@ -1120,12 +1120,23 @@ for(int i = 0; i < nr; i++) { if(i % 1000 == 999) R_CheckUserInterrupt(); if(!isNull(rnames)) - Rconn_printf(con, "%s%s", - EncodeElement2(rnames, i, quote_rn, qmethod, - &strBuf, sdec), csep); + + if(Rconn_printf(con, "%s%s", EncodeElement2(rnames, i, quote_rn, qmethod, &strBuf, sdec), csep) < 0) { + error(_("IO erro...
2020 Jun 07
4
[External] Re: use of the tcltk package crashes R 4.0.1 for Windows
...that we're not freeing a null pointer, followed by setting the pointer to NULL. At that point of tcltk.c, we have >>>> >>>> for (objc = i = 0; i < length(avec); i++){ >>>> const char *s; >>>> char *tmp; >>>> if (!isNull(nm) && strlen(s = translateChar(STRING_ELT(nm, i)))){ >>>> // tmp = calloc(strlen(s)+2, sizeof(char)); >>>> tmp = Calloc(strlen(s)+2, char); >>>> *tmp = '-'; >>>> strcpy(tmp+1, s); >>>...
2010 Jan 22
0
Handling SIP error codes/ISDN codes
...ng the error codes properly....? Asterisk version: 1.4.22.1 Libpri: 1.4.10.1 dahdi: 2.2.0.2 are the versions that I am using. The way I was handling the codes for the server 2: [macro-result] exten => s,1,Wait(1) exten => s,2,ResetCDR(w) exten => s,3,NoCDR() exten => s,4,GotoIf($[${ISNULL(${ARG1})}]?7:5) exten => s,5,Set(RC=${ARG1}) exten => s,6,Goto(s|9) exten => s,7,GotoIf($[${ISNULL(${DIALSTATUS})}]?8:rc-${DIALSTATUS}|1) exten => s,8,Set(RC=${IF($[${ISNULL(${HANGUPCAUSE})}]?0:${HANGUPCAUSE})}) exten => s,9,Goto(rc-${RC}|1) exten => s,10,Hangup(${RC}) exten =&gt...
2009 Aug 25
1
followme app
Hi Someone may give me an example of followme() application using in a dialplan (including what to configure in followme.conf) ? I use asterisk 1.6.1 so if your example can match to that release it's will be wonderfull. Thank in advance. Harry. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2009 Nov 05
0
[LLVMdev] Debug Information for LLVM 2.6 and TOT
...;llvm/Analysis/ConstantFolding.h" @@ -349,6 +350,27 @@ Ops.size(), Context, TD); } +static MDNode *UpdateInlinedAtInfo(MDNode *InsnMD, MDNode *TheCallMD, + LLVMContext &Context) { + DILocation ILoc(InsnMD); + if (ILoc.isNull()) return InsnMD; + + DILocation CallLoc(TheCallMD); + if (CallLoc.isNull()) return InsnMD; + + DILocation OrigLocation = ILoc.getOrigLocation(); + MDNode *NewLoc = TheCallMD; + if (!OrigLocation.isNull()) + NewLoc = UpdateInlinedAtInfo(OrigLocation.getNode(), TheCallMD, Context); + + Sma...
2014 Aug 13
2
[LLVMdev] Advice for setting debug locations
...hat I tried was to change the scope to be a DIFile instead so we'd get the correct file information. Unfortunately I had to revert this [1], because it crashes llvm's dwarf reader (which we use to get line information for backtraces when exceptions are thrown) with the following backtrace: isNULL at /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFDebugInfoEntry.h:52 getAddressRanges at /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/DWARFDebugInfoEntry.cpp:242 collectAddressRanges at /Users/kfischer/Documents/julia-debug/deps/llvm-svn/lib/DebugInfo/...
2020 Feb 19
2
dimnames incoherence?
....c [ ~/R/D/r-devel/R/src/main/subassign.c ] ##==> function (~ 340 lines) ## do_subassign2_dflt(SEXP call, SEXP op, SEXP args, SEXP rho) ## has " line svn r. svn auth. c.o.d.e... ---- ------ --------- ---------------------------------------------- 1741 4166 ihaka if (isNull(x)) { 1742 45446 ripley if (isNull(y)) { 1743 76166 luke UNPROTECT(2); /* args, y */ 1744 4166 ihaka return x; 1745 45446 ripley } 1746 35680 murdoch if (length(y) == 1) 1747 68094 luke x = allocVector(T...
2020 Jan 18
1
How to get an object name from C?
...mistake). Hi, How can I get from C an object name used as a function argument? I have sample code in C that gives me access to the name of the function being called: SEXP xname(SEXP x) { const char *fun_name = CHAR(PRINTNAME(CAR(x))); x = CDR(x); const char *arg_name = isNull(TAG(x)) ? "" : CHAR(PRINTNAME(TAG(x))); Rprintf("fn_name: %s, arg_name: %s\n", fun_name, arg_name); return R_NilValue; } > xname <- function(...) invisible(.External("xname", ...)) > > x1 = 123 > > xname(x1) fn_name: xname, var_nam...
2020 Jun 07
0
[External] Re: use of the tcltk package crashes R 4.0.1 for Windows
...free() with a check that we're not freeing a null pointer, followed by setting the pointer to NULL. At that point of tcltk.c, we have >>> >>> for (objc = i = 0; i < length(avec); i++){ >>> const char *s; >>> char *tmp; >>> if (!isNull(nm) && strlen(s = translateChar(STRING_ELT(nm, i)))){ >>> // tmp = calloc(strlen(s)+2, sizeof(char)); >>> tmp = Calloc(strlen(s)+2, char); >>> *tmp = '-'; >>> strcpy(tmp+1, s); >>> objv[...