search for: n_elements

Displaying 18 results from an estimated 18 matches for "n_elements".

2015 Apr 24
4
FYI: dovecot (008632bdfd2c) compilation woes, and minor glitch regarding update-version.sh
...ing=2 -I/usr/local/include -MT fts-tokenizer-generic.lo -MD -MP -MF .deps/fts-tokenizer-generic.Tpo -c fts-tokenizer-generic.c -fPIC -DPIC -o .libs/fts-tokenizer-generic.o fts-tokenizer-generic.c:111:18: error: use of undeclared identifier 'White_Space' if (uint32_find(White_Space, N_ELEMENTS(White_Space), c, &idx)) ^ fts-tokenizer-generic.c:113:18: error: use of undeclared identifier 'Dash' if (uint32_find(Dash, N_ELEMENTS(Dash), c, &idx)) ^ [?] fts-tokenizer-generic.c:212:18: error: use of undeclared identifier &...
2007 Mar 29
0
Branch 'as' - 9 commits - configure.ac doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_stack.c
..., Fifth Floor, + * Boston, MA 02110-1301 USA + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <string.h> +#include "swfdec_as_stack.h" +#include "swfdec_as_context.h" + +SwfdecAsStack * +swfdec_as_stack_new (SwfdecAsContext *context, guint n_elements) +{ + SwfdecAsStack *stack; + + g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL); + g_return_val_if_fail (n_elements > 0, NULL); + + if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsStack) + + n_elements * sizeof (SwfdecAsValue))) + return NULL; + + stack = g_slice_new...
2015 May 04
0
FYI: dovecot (008632bdfd2c) compilation woes, and minor glitch regarding update-version.sh
...sr/local/include -MT fts-tokenizer-generic.lo -MD -MP -MF .deps/fts-tokenizer-generic.Tpo -c fts-tokenizer-generic.c -fPIC -DPIC -o .libs/fts-tokenizer-generic.o > fts-tokenizer-generic.c:111:18: error: use of undeclared identifier 'White_Space' > if (uint32_find(White_Space, N_ELEMENTS(White_Space), c, &idx)) > ^ > fts-tokenizer-generic.c:113:18: error: use of undeclared identifier 'Dash' > if (uint32_find(Dash, N_ELEMENTS(Dash), c, &idx)) > ^ > [?] > > fts-tokenizer-generic.c:212:18: er...
2007 Apr 04
0
Branch 'as' - 9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_stack.c libswfdec/swfdec_as_stack.h
...git a/libswfdec/swfdec_as_stack.c b/libswfdec/swfdec_as_stack.c index 86c5356..e6735c9 100644 --- a/libswfdec/swfdec_as_stack.c +++ b/libswfdec/swfdec_as_stack.c @@ -73,9 +73,11 @@ swfdec_as_stack_ensure_size (SwfdecAsSta guint current; g_return_if_fail (stack != NULL); - g_return_if_fail (n_elements > (guint) (stack->end - stack->base)); + g_return_if_fail (n_elements <= (guint) (stack->end - stack->base)); current = (guint) (stack->cur - stack->base); + if (current >= n_elements) + return; if (current) { n_elements -= current; memmove (stack-&...
2007 Mar 09
0
17 commits - libswfdec/js libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c
...ec_script.c b/libswfdec/swfdec_script.c index 428fc4c..50dbf2b 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -125,6 +125,42 @@ swfdec_constant_pool_get_area (SwfdecScr /*** SUPPORT FUNCTIONS ***/ +/** + * swfdec_script_ensure_stack: + * @cx: #JSContext to check + * @n_elements: number of elements the stack should contain + * + * Ensures that the stack is at least @n_elements values. If not enough stack + * space is available, the stack is filled up with JSVAL_VOID. + * + * Returns: JS_TRUE on success or JS_FALSE on OOM + **/ +static inline JSBool +swfdec_script_ensure_st...
2007 Mar 11
0
10 commits - libswfdec/js libswfdec/swfdec_js_color.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_video.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_script.c player/.gitignore
...actually adjust the stack pointer after adjusting the stack (d'oh) diff --git a/libswfdec/swfdec_script.c b/libswfdec/swfdec_script.c index 8c24c5d..2860e24 100644 --- a/libswfdec/swfdec_script.c +++ b/libswfdec/swfdec_script.c @@ -154,6 +154,7 @@ swfdec_script_ensure_stack (JSContext *c n_elements -= current; memmove (fp->spbase + n_elements, fp->spbase, (fp->sp - fp->spbase) * sizeof (jsval)); } + fp->sp += n_elements; while (n_elements) { n_elements--; fp->spbase[n_elements] = JSVAL_VOID; diff-tree 95b30a49dd3382b1715f48f40a816be986e93a39 (from adc3...
2007 Oct 08
1
API problem (noob)
...gnature" } strcpy(fname, mktemp(fname)); fd = creat(fname, 0600); mail_get_stream(mail, NULL, NULL, &input); output = o_stream_create_fd_file(fd, 0, TRUE); input = i_stream_create_header_filter(input, HEADER_FILTER_EXCLUDE | HEADER_FILTER_NO_CR, exclude_headers, N_ELEMENTS(exclude_headers), null_header_filter_callback, NULL); o_stream_send_istream(output, input); But all I get in the temp file is the message body, i.e. no headers at all. What am I doing wrong here? My understanding (or hope:) of what the function i_stream_create_header_filter() is suppos...
2009 Jul 01
1
Bug in MEMORY INDEX ? [v 1.1.16]
...= mail_storage_get_mailbox_index_dir(box->storage, --- > > /* Only create index folders if index is not MEMORY */ > if(!mail_index_is_in_memory(mbox->ibox.index)) > dirs[i++] = mail_storage_get_mailbox_index_dir(box->storage, 107c111,113 < i_assert(i == N_ELEMENTS(dirs)); --- > else k++; > > i_assert(i == N_ELEMENTS(dirs)-k); ----- Tested only on dovecot 1.1.16 Regards, Joel A. Chornik ELSERVER.COM
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...er->data + buffer->length); return swfdec_buffer_new_subbuffer (buffer, start - buffer->data, len); } +#endif /*** SUPPORT FUNCTIONS ***/ @@ -152,46 +150,10 @@ swfdec_script_add_to_player (SwfdecScrip } } -/** - * swfdec_script_ensure_stack: - * @cx: #JSContext to check - * @n_elements: number of elements the stack should contain - * - * Ensures that the stack is at least @n_elements values. If not enough stack - * space is available, the stack is filled up with JSVAL_VOID. - * - * Returns: JS_TRUE on success or JS_FALSE on OOM - **/ -static inline JSBool -swfdec_script_ensure_st...
2015 Aug 10
2
pigeonhole/lda accessing -m folder
...ironment-common.c @@ -24,7 +24,8 @@ static const struct sieve_environment_item *core_env_items[] = { &location_env_item, &phase_env_item, &name_env_item, - &version_env_item + &version_env_item, + &defaultfolder_env_item }; static unsigned int core_env_items_count = N_ELEMENTS(core_env_items); @@ -233,7 +234,19 @@ const struct sieve_environment_item version_env_item = { .value = PIGEONHOLE_VERSION, }; +/* "defaultfolder": + * the default folder where mail is stored when no rule matches + */ +static const char *envit_defaultfolder_get_value +(struct sieve_in...
2020 Aug 14
0
2.3.11.3 on 32bit platforms
...st]; const struct mech_module *mech = test_case->mech; struct auth_request *request; - const char *testname = t_strdup_printf("auth mech %s %d/%lu", + const char *testname = t_strdup_printf("auth mech %s %d/%zu", mech->mech_name, running_test+1, N_ELEMENTS(tests));
2008 Jun 26
1
group ownership of new shared folders
...ate_shared(struct umask(old_mask); return -1; } + if (chown(dir, (uid_t)-1, gid) < 0) { + mail_storage_set_critical(storage, + "chown(%s) failed: %m", dir); + } for (i = 0; i < N_ELEMENTS(maildir_subdirs); i++) { path = t_strconcat(dir, "/", maildir_subdirs[i], NULL); if (chown(path, (uid_t)-1, gid) < 0) {
2015 Aug 10
0
PATCH for Stephan: Re: pigeonhole/lda accessing -m folder
...onst struct sieve_environment_item > *core_env_items[] = { > &location_env_item, > &phase_env_item, > &name_env_item, > - &version_env_item > + &version_env_item, > + &defaultfolder_env_item > }; > > static unsigned int core_env_items_count = N_ELEMENTS(core_env_items); > @@ -233,7 +234,19 @@ const struct sieve_environment_item > version_env_item = { > .value = PIGEONHOLE_VERSION, > }; > > +/* "defaultfolder": > + * the default folder where mail is stored when no rule matches > + */ > +static const char *envit...
2015 Aug 07
2
pigeonhole/lda accessing -m folder
hi jost thx for the reply, by access I mean to read the variable require ["fileinto", "variables", "?destfolder?" ]; if anyof ( destfolder :matches "*") { fileinto "${1}/subfolder"; }else{ fileinto "INBOX/subfolder"; } On 08/07/2015 12:26 PM, Jost Krieger wrote: > On Fri Aug 7 12:19:22 2015, matthias lay wrote:
2015 May 09
2
FYI: dovecot (008632bdfd2c) compilation woes, and minor glitch regarding update-version.sh
.../2015 10:00 PM, Michael Grimm wrote: >> 1) I'm trying to compile a recent hg dovecot version (008632bdfd2c) at a FBSD10-STABLE system without success: [?] >> fts-tokenizer-generic.c:214:18: error: use of undeclared identifier 'MidNum' >> if (uint32_find(MidNum, N_ELEMENTS(MidNum), c, &idx)) >> ^ >> fatal error: too many errors emitted, stopping now [-ferror-limit=] >> 20 errors generated. >> Makefile:591: recipe for target 'fts-tokenizer-generic.lo' failed >> gmake[4]: *** [fts-tokenizer-generic.lo] Er...
2016 Oct 11
2
Compound Literal - xlc and gcc differences can be patched
...t;, " + "response=\"6629fae49393a05397450978507c4ef1\", " + "opaque=\"5ccc069c403ebaf9f0171e9517f40e41\"", + .params = &mufasa + } + }; + static const unsigned int valid_auth_credentials_test_count = N_ELEMENTS(valid_auth_credentials_tests);
2007 Jul 12
0
15 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt INSTALL libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.h libswfdec/swfdec_as_object.h
...t->frame; + while (follow->next != frame) + follow = follow->next; + iter->current = follow->stack_begin; + /* FIXME: get rid of arguments on stack */ + while (iter->current < &stack->elements[0] || iter->current > &stack->elements[stack->n_elements]) { + stack = stack->next; + g_assert (stack); + } + } + iter->stack = stack; + /* figure out number of args */ + iter->n = iter->current - &stack->elements[0]; + while (frame->stack_begin < &stack->elements[0] && frame->stack_begin >...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...} diff --git a/libswfdec/swfdec_as_stack.c b/libswfdec/swfdec_as_stack.c index 0354b49..2b9f678 100644 --- a/libswfdec/swfdec_as_stack.c +++ b/libswfdec/swfdec_as_stack.c @@ -88,7 +88,7 @@ swfdec_as_stack_ensure_size (SwfdecAsSta } void -swfdec_as_stack_ensure_left (SwfdecAsStack *stack, guint n_elements) +swfdec_as_stack_ensure_free (SwfdecAsStack *stack, guint n_elements) { g_return_if_fail (stack != NULL); diff --git a/libswfdec/swfdec_as_stack.h b/libswfdec/swfdec_as_stack.h index a415406..ec25a71 100644 --- a/libswfdec/swfdec_as_stack.h +++ b/libswfdec/swfdec_as_stack.h @@ -88,7 +88,7 @@...