similar to: [LLVMdev] How to const char* Value for function argument

Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] How to const char* Value for function argument"

2011 Sep 22
0
[LLVMdev] How to const char* Value for function argument
Hi Dimitry, This makes sense if you think about it from the perspective that the string you want passing must be passed at runtime, and so can't use a const char * from compile time. You need to make the string visible in the compiled image, and use that as the argument. A string is an array of 8-bit integers, so you need to create a ConstantArray. Value *v = ConstantArray::get(Context,
2013 Mar 12
2
ls() with different defaults: Solution;
Dear useRs, Some time ago I queried the list as to an efficient way of building a function which acts as ls() but with a different default for all.names: http://tolstoy.newcastle.edu.au/R/e6/help/09/03/7588.html I have struck upon a solution which so far has performed admirably. In particular, it uses ls() and not its explicit source code, so only has a dependency on its name and the name of
2007 Sep 09
1
Softkeys wrong with chan_skinny
Hi, as noone out there seems to be able to maintain chan_sccp, i'm trying to switch to chan_skinny. With the newest 1.4 svn the Softkeys are mostly wrong/non functional. I see Redial NewCall CFwdAll more (more) CFwdBu... GPickUp Confrn more NewCall works, CFwdAll seems to toggle DnD, the rest of the buttons do notting. Any ideas how to fix this? Regards, Andreas
2004 Jun 17
4
7960 straight through?
if i go off hook and dial 666 from an internal sipura spa-x000 (at extn 141), it rings straight through to extn 666. using the same dialplan, from a cisco 7960 with 7.1 sip code (at extn 142), i have to go off hook hit NewCall punch 142 (or any valid extn in the dialplan) hit Dial then dial 666 wtf? sip.conf for crisco [fiji] callerid="crisco" <142>
2004 Jul 12
1
[LLVMdev] %lf specifier
The SingleSource/Regression/C/callargs.c test uses the %lf format specifier for printf. However, "man printf" does not specify what this means. Shouldn't the following patch be applied? - Volodya -------------- next part -------------- A non-text attachment was scrubbed... Name: callargs.diff Type: text/x-diff Size: 1463 bytes Desc: not available URL:
2007 Nov 24
5
Service.start arguments failing or causing segfault
Hi, Unless I''m mistaken the final arguments to Service.start should be passed to the Daemon''s service_main method. Correct? I modified the Service.start method (now in CVS) to look something like this: def self.start(service, host=nil, *args) ... num_args = args.length if args.empty? args = nil else args.unshift(service) # Necessary?
2011 Sep 16
2
[LLVMdev] How to duplicate a function?
Hi all, Sorry for the inconvenient about the previous post. The files were not attached. So I put them here again. I am a newbie in LLVM and I am trying to replace the function like: old function || new function ============================== ========= int haha(int a) { int haha(int a, char* ID) { ===> }
2003 Dec 14
2
Cisco 7960 lockups - any experiences?
This is almost certainly not an Asterisk-specific posting, but due to my inability to find a VoIP-focused Cisco list, I'll post here in the hopes of finding a more diverse user community. I am using a Cisco 7960 (version 6.0 SIP firmware) with Asterisk, and have been experiencing situations where the phone locks up. "Locks up" means that the bottom part of the screen
2012 Jul 23
2
[LLVMdev] static constant structs
I hope this is the correct forum in which to ask this question. Currently I am writing code meant to compile with LLVM 3.0. I am trying to figure out, using the C++ API, how to create a constant static struct, or the equivalent. Since I am copying data from existing C structs, I am currently I am using a ConstantArray global variable, and then pointer casting it to the appropriate type when I
2011 Sep 16
0
[LLVMdev] How to duplicate a function?
Hi all, I am a newbie in LLVM and I am trying to replace the function like: old function || new function ======================================= int haha(int a) { int haha(int a, char* ID) { ===> } } Of course in the newly replaced function "int haha(int,
2010 Jul 28
1
[LLVMdev] Strange behavior when converting arrays to strings
Hi Javier, > I found saw some strange behavior (to me) when converting constant > arrays to strings. Consider the following example: > > std::string Text = "HelloWorld"; > > unsigned TextLengthBefore = Text.length(); > > ConstantArray *pArray = > dyn_cast<ConstantArray>(llvm::ConstantArray::get(pModule->getContext(), > Text, true)); from
2011 May 18
2
[LLVMdev] string to value
Hi All, Is there a way to convert a const char * to a Value type? Thanks. George -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110517/0077b44c/attachment.html>
2010 Jul 28
0
[LLVMdev] Strange behavior when converting arrays to strings
Hi, I haven't seen a response and I'm curious if I should submit a patch for this. Thanks, Javier From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Martinez, Javier E Sent: Friday, July 16, 2010 3:20 PM To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] Strange behavior when converting arrays to strings Hello, I found saw some strange behavior (to
1998 Jan 03
1
R-beta: NextMethod(.Generic) bug
I'm a day-old R newbie (but a war-weary S veteran), with couple of first-day questions: In R 0.61, this code fails. Ops.test <- function(e1,e2) { e1 <- NextMethod(.Generic) e1 } x <- 4 class(x) <- "test" y <- x < 3 The error message is "Error in NextMethod(.Generic) : negative length vectors are not allowed.". I assume it is a bug.
2006 May 30
3
instalacion
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2950 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060530/be5cdbe7/attachment.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: not available
2010 Feb 08
1
[LLVMdev] TypeBuilder for const void*
Hi! In Line 230 of llvm\Support\TypeBuilder.h is support for void*: /// void* is disallowed in LLVM types, but it occurs often enough in C code that /// we special case it. template<> class TypeBuilder<void*, false> : public TypeBuilder<types::i<8>*, false> {}; If would be cool if the same thing can be added for const void*: template<> class
2023 Mar 19
3
[libnbd PATCH v4 0/2] lib/utils: introduce async-signal-safe execvpe()
This is version 4 of the following sub-series: [libnbd PATCH v3 09/29] lib/utils: introduce async-signal-safe execvpe() [libnbd PATCH v3 10/29] lib/utils: add unit tests for async-signal-safe execvpe() http://mid.mail-archive.com/20230215141158.2426855-10-lersek at redhat.com http://mid.mail-archive.com/20230215141158.2426855-11-lersek at redhat.com The Notes section on each patch records the
2002 Apr 10
1
openssh-3.1p1 on GNU/Hurd
Hi, I've gone and ported the latest version of openssh, 3.1p1, to GNU/Hurd. I've tried to learn from the other threads on this topic, but I still had to get rid of MAXHOSTNAMELEN where I could. James A. Morrison diff -urN openssh-3.1p1.old/Makefile.in openssh-3.1p1/Makefile.in --- openssh-3.1p1.old/Makefile.in Tue Feb 26 14:24:22 2002 +++ openssh-3.1p1/Makefile.in Tue Apr 9 16:16:49
2010 Jul 16
2
[LLVMdev] Strange behavior when converting arrays to strings
Hello, I found saw some strange behavior (to me) when converting constant arrays to strings. Consider the following example: std::string Text = "HelloWorld"; unsigned TextLengthBefore = Text.length(); ConstantArray *pArray = dyn_cast<ConstantArray>(llvm::ConstantArray::get(pModule->getContext(), Text, true)); unsigned NumElements = pArray->getNumOperands(); Text =
2012 Jul 23
0
[LLVMdev] static constant structs
Hi Michael, > I hope this is the correct forum in which to ask this question. > > Currently I am writing code meant to compile with LLVM 3.0. I am trying > to figure out, using the C++ API, how to create a constant static > struct, or the equivalent. Since I am copying data from existing C > structs, I am currently I am using a ConstantArray global variable, and > then