search for: array_t

Displaying 11 results from an estimated 11 matches for "array_t".

2012 Oct 11
1
[LLVMdev] Question about the old C back-end
...sure that there is a typedef for these arrays and that the typedef is used in stead of printing the struct again... On a second note, what kind of code would I need to feed clang to actually produce the example IR? Compiling the following example with clang: typedef struct {int array[4];} array_t; array_t f(array_t b) { return b; } results in: %struct.array_t = type { [4 x i32] } define void @f(%struct.array_t* noalias sret %agg.result, %struct.array_t* byval align 4 %b) nounwind { entry: %0 = bitcast %struct.array_t* %agg.result to i8* %1 = bitcast %str...
2016 Aug 29
2
invariant.load metadata semantics
Sanjoy, can you clarify this bit about JVM array lengths? Presumably the same pointer can point to two arrays of different lengths during a program's execution. Does this mean that you're relying on invariant.load having function scope? That is, correctness depends on the pointer not being reused for an array of a different length between the first invariant load of that array length in
2012 Oct 11
0
[LLVMdev] Question about the old C back-end
Hi Roel, > When going through the internals of the old C back-end, I see that the CBE > encapsulates arrays into a struct. The source code has the following comment to > explain this behaviour. > > // Arrays are wrapped in structs to allow them to have normal > // value semantics (avoiding the array "decay"). > > For example, the CBE translates: >
2007 Mar 28
2
Multiple IP(or Host) listen in dovecot.conf.
...otocol imap { listen = 127.0.0.1:143, imap-server1:10143 ssl_listen = imap-server2:10943, 127.0.0.1 .. } protocol pop3 { listen = 127.0.0.1, pop-server1:10100 .. } -- Update brief. src/master/ master-setting.h: listen_fd and related members changed to array_t. also name add (s). master-setting.c: few member initialization delete. main.c: handle multiple IP and port, fds as array_t. resolve_ip argment change. login-process.h: add listen_fd and ssl_listen_fd member to login_group structre. login-...
2012 Oct 11
3
[LLVMdev] Question about the old C back-end
Hello all, When going through the internals of the old C back-end, I see that the CBE encapsulates arrays into a struct. The source code has the following comment to explain this behaviour. // Arrays are wrapped in structs to allow them to have normal // value semantics (avoiding the array "decay"). For example, the CBE translates: @a = common global [10 x i32]
2016 Aug 29
2
invariant.load metadata semantics
...that case, I don't see any problem, although if this isn't already explicit in the langref (possibly not specifically here, since I figure this applies to lots of other stuff as well) clarifying it somewhere might help! -Justin > Are you talking about cases like these: > > void f(array_t* a) { > // Not sure if this is well-defined C++, but you get the picture > int l = a->length; // invariant > delete a; > new(a) array_t(other_length); > int l2 = a->length; // also invariant > } Yes, On Mon, Aug 29, 2016 at 1:21 PM, Sanjoy Das <sanjoy at playingwithpoin...
2006 Aug 21
3
sieve-cvs build failing @ 'make'
...pes -Wmissing-declarations - -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast - -I/usr/local/ssl/include -MT sieve-cmu.lo -MD -MP -MF .deps/sieve-cmu.Tpo -c sieve-cmu.c -fno-common -DPIC -o .libs/sieve-cmu.o sieve-cmu.c: In function 'get_flags': sieve-cmu.c:181: error: 'array_t' undeclared (first use in this function) sieve-cmu.c:181: error: (Each undeclared identifier is reported only once sieve-cmu.c:181: error: for each function it appears in.) sieve-cmu.c:181: error: parse error before 'union' sieve-cmu.c:181: warning: unused variable 'v_modifiable'...
2008 Mar 18
5
xexec and dovecot 1.1
...t very interesting plugin xexec. It seems very nice and can be used in many things. It's compiled perfect with dovecot 1.0, but certanly not with dovecot 1.1. It's stopped with next error: In file included from cmd-xexec.c:30: xexec.h:8: error: expected specifier-qualifier-list before 'array_t' cmd-xexec.c: In function 'cmd_xexec': cmd-xexec.c:134: error: 'array_t' undeclared (first use in this function) cmd-xexec.c:134: error: (Each undeclared identifier is reported only once cmd-xexec.c:134: error: for each function it appears in.) cmd-xexec.c:134: error: expected &...
2007 Jul 24
1
Dovecot for HP-UX
Hi I am trying to install Dovecot on HP-UX .I did ./configure but when I did make i am getting following error, please advice me what I have to do . uasng074 at root# make No suffix list. make all-recursive No suffix list. Making all in src No suffix list. Making all in lib source='ioloop-epoll.c' object='ioloop-epoll.o' libtool=no \ DEPDIR=.deps
2006 Feb 03
1
passwd-userdb with args
...************* *** 4,18 **** --- 4,34 ---- #ifdef USERDB_PASSWD + #include "array.h" + #include "str.h" + #include "var-expand.h" #include "userdb.h" #include <pwd.h> + struct passwd_userdb_module { + struct userdb_module module; + + array_t ARRAY_DEFINE(template, const char *); + }; + static void passwd_lookup(struct auth_request *auth_request, userdb_callback_t *callback) { + struct userdb_module *_module = auth_request->userdb->userdb; + struct passwd_userdb_module *module = + (struct passwd_userdb_module *)_mo...
2005 Aug 26
0
1.0alpha1: assert and core
...et = 6525704, body_size = 1151, offset = 6525755, space = -4} (gdb) print ctx->mail.uid_broken $4 = 0 (gdb) print ctx->mail.uid $5 = 1655 (gdb) print mail. ->uid $6 = 1644 (gdb) print ctx->mail.keywords $7 = {buffer = 0x0, element_size = 0} (gdb) print &ctx->mail.keywords $8 = (array_t *) 0xffbff328 (gdb) print ctx->mail.keywords.buffer $9 = (buffer_t *) 0x0 (gdb) quit %exit exit script done on Fri Aug 26 08:49:29 2005