Displaying 20 results from an estimated 90 matches for "gsize".
Did you mean:
size
2006 Jun 12
1
Ruuid had non-zero exit status (PR#8965)
...fore
"G_GNUC_MALLOC"
/usr/local/include/glib-2.0/glib/gmem.h:53: warning: data definition has
no type or storage clas s
/usr/local/include/glib-2.0/glib/gmem.h:74: error: parse error before
"n_bytes"
/usr/local/include/glib-2.0/glib/gmem.h:76: error: parse error before
"gsize"
/usr/local/include/glib-2.0/glib/gmem.h:79: error: parse error before
"n_blocks"
/usr/local/include/glib-2.0/glib/gmem.h:81: error: parse error before
"n_bytes"
/usr/local/include/glib-2.0/glib/gmem.h:83: error: parse error before
"gsize"
In file included from...
2008 May 20
0
[PATCH] Fix compilation on 64-bit platforms
Use "z" modifier to print gsize. Use gsize for the index argument of
swfdec_text_field_movie_xy_to_index().
---
swfdec/swfdec_text_field_movie.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/swfdec/swfdec_text_field_movie.c b/swfdec/swfdec_text_field_movie.c
index 1f7bc4b..729c2e2 100644
---...
2007 Mar 09
0
(no subject)
...s the generated script...
<script type="text/javascript">
var icon_contact = addOptionsToIcon(new GIcon(),{image : "/images/
gm_contact.png",iconAnchor : new GPoint(10,34),shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize(20,34)});
var icon_reference = addOptionsToIcon(new GIcon(),{image : "/images/
gm_reference.png",iconAnchor : new GPoint(10,34),shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize...
2007 Mar 09
0
Clusterer
...with the line numbers)
<script type="text/javascript">
161 var icon_contact = addOptionsToIcon(new GIcon(),{image : "/images/
gm_contact.png",iconAnchor : new GPoint(10,34),shadow : "/images/
gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize : new
GSize(37,34),iconSize : new GSize(20,34)});
162 var icon_reference = addOptionsToIcon(new GIcon(),{image : "/
images/gm_reference.png",iconAnchor : new GPoint(10,34),shadow : "/
images/gm_shadow.png",infoWindowAnchor : new GPoint(9,2),shadowSize :
new GSize(37,34),iconSize : new G...
2007 Nov 15
0
6 commits - libswfdec/compiler.c libswfdec/swfdec_as_date.h libswfdec/swfdec_text_format.c libswfdec/swfdec_xml.c test/dump.c test/render.c test/render-fast.c
...----------
test/render.c | 87 ----------------------------------
7 files changed, 3 insertions(+), 195 deletions(-)
New commits:
commit 2c9d3fef226dd1ffee9548d2207ba07c8e2a6178
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Nov 15 13:51:58 2007 +0100
s/size_t/gsize/
diff --git a/libswfdec/compiler.c b/libswfdec/compiler.c
index 7299dd6..5a2f75c 100644
--- a/libswfdec/compiler.c
+++ b/libswfdec/compiler.c
@@ -60,7 +60,7 @@ main (int argc, char **argv)
char *contents;
GError *error = NULL;
guint i;
- size_t len;
+ gsize len;
byte *data;
if (...
2007 Feb 01
3
Can this loop be delooped?
...f(charmatch(toupper(place),"RIGHT",nomatch=FALSE)==1){
extra1_1=max((groupnum-1)+((totalength%%numgroups)-numgroups),0)
extra1_2=(groupnum>numgroups-totalength%%numgroups)
}
else{
extra1_1=min(totalength%%numgroups,groupnum-1)
extra1_2=(groupnum<=totalength%%numgroups)
}
gsize=totalength%/%numgroups
gleft=((groupnum-1)*gsize)+extra1_1+1
gright=gleft+gsize+extra1_2-1
gleft:gright
}
The function appears to work okay. Then I used it as follows:
numgp1_v=sidect_v%/%compmin
numgroup_v[small]=max(1,numgp1_v[small])
smallindexlist<-list(NULL)
smallindexlist=sapply(1:n...
2006 Jan 07
4
GIS Image coordinates / markers?
Hey everyone,
Is there Rails support for something like Google Maps, but using my
own images/maps?
Basically, I''d like to have my own maps/images, be able to drop
markers on them, center on certain attributes etc.
- Nic
2007 Jun 17
0
Branch 'as' - 4 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_player.c
...ex 5d2d7ba..d9815e4 100644
--- a/libswfdec/swfdec_as_context.h
+++ b/libswfdec/swfdec_as_context.h
@@ -52,8 +52,12 @@ struct _SwfdecAsContext {
GRand * rand; /* random number generator */
GTimeVal start_time; /* time this movie started (for GetTime action) */
+ /* GC properties */
+ gsize memory_until_gc;/* amount of memory allocations that trigger a GC */
+
/* bookkeeping for GC */
- gsize memory; /* memory currently in use */
+ gsize memory; /* total memory currently in use */
+ gsize memory_since_gc;/* memory allocated since last GC run */
GHashTable * strings...
2007 Aug 02
0
4 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_file_loader.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h player/swfdec_slow_loader.c
...k_loader.c
+++ b/libswfdec-gtk/swfdec_gtk_loader.c
@@ -116,14 +116,14 @@ swfdec_gtk_loader_finish (SoupMessage *m
}
static void
-swfdec_gtk_loader_load (SwfdecLoader *loader,
+swfdec_gtk_loader_load (SwfdecLoader *loader, SwfdecLoader *parent,
SwfdecLoaderRequest request, const char *data, gsize data_len)
{
const SwfdecURL *url = swfdec_loader_get_url (loader);
if (g_ascii_strcasecmp (swfdec_url_get_protocol (url), "http") != 0 &&
g_ascii_strcasecmp (swfdec_url_get_protocol (url), "https") != 0) {
- SWFDEC_LOADER_CLASS (swfdec_gtk_loader_paren...
2007 Mar 08
1
map not displayed after Ajax.updater request
...n see the inserted script
(with the right data...)
<div id="map_box" style="border:solid 2px grey; margin:1em auto;
width:340px; height:340px;text-align;">
<script type="text/javascript">
var icon_contact = addOptionsToIcon(new GIcon(),{iconSize : new GSize
(20,34),shadowSize : new GSize(37
,34),image : "/images/gm_contact.png",iconAnchor : new GPoint
(10,34),shadow : "/images/gm_shadow.png"
,infoWindowAnchor : new GPoint(9,2)});
..........
var map;
window.onload = addCodeToFunction(window.onload,function() {
if (GBrowserIsCompat...
2007 Oct 11
1
[PATCH] Fix compiler warnings that prevent compilation
...GLOBAL_CFLAGS="$GLOBAL_CFLAGS -Werror")
diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c
index 61de9b5..8e47260 100644
--- a/libswfdec/swfdec_as_context.c
+++ b/libswfdec/swfdec_as_context.c
@@ -197,7 +197,7 @@ swfdec_as_context_use_mem (SwfdecAsContext *context, gsize bytes)
context->memory += bytes;
context->memory_since_gc += bytes;
- SWFDEC_LOG ("+%4u bytes, total %7u (%7u since GC)", bytes,
+ SWFDEC_LOG ("+%4zu bytes, total %7zu (%7zu since GC)", bytes,
context->memory, context->memory_since_gc);
/* FIXME...
2007 Mar 28
0
Branch 'as' - 3 commits - 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_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_types.c
...include "swfdec_as_object.h"
#include "swfdec_as_types.h"
#include "swfdec_debug.h"
+#include "swfdec_script.h"
/*** GTK_DOC ***/
@@ -67,7 +69,7 @@ swfdec_as_context_abort (SwfdecAsContext
gboolean
swfdec_as_context_use_mem (SwfdecAsContext *context, gsize len)
{
- g_return_val_if_fail (SWFDEC_AS_IS_CONTEXT (context), FALSE);
+ g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), FALSE);
g_return_val_if_fail (len > 0, FALSE);
context->memory += len;
@@ -77,7 +79,7 @@ swfdec_as_context_use_mem (SwfdecAsConte
void
swfdec_as_context_...
2016 Oct 28
3
Samba and BTRFS server-side copy
On Thu, Oct 27, 2016 at 05:22:14PM -0700, Jeremy Allison via samba wrote:
>
> Looking around inside that source code I also see:
>
> do_read (GVfsBackend *backend,
> GVfsJobRead *job,
> GVfsBackendHandle handle,
> char *buffer,
> gsize bytes_requested)
> {
> GVfsBackendSmb *op_backend = G_VFS_BACKEND_SMB (backend);
> ssize_t res;
> smbc_read_fn smbc_read;
>
> /* libsmbclient limits blocksize to (64*1024)-2 for Windows servers,
> * let's do the same here to achieve reasonable performance. (#588...
2007 Aug 08
0
6 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...ATE_CLOSED;
}
void
diff --git a/libswfdec/swfdec_loader.h b/libswfdec/swfdec_loader.h
index 5fc561f..61e0b31 100644
--- a/libswfdec/swfdec_loader.h
+++ b/libswfdec/swfdec_loader.h
@@ -76,7 +76,7 @@ struct _SwfdecLoaderClass
SwfdecLoaderRequest request,
const char * data,
gsize data_len);
- /* if open, close the loader */
+ /* if open, close the loader. NB: you may not call push() or eof() after the loader has been closed */
void (* close) (SwfdecLoader * loader);
};
diff --git a/libswfdec/swfdec_loader_internal.h b/libswfdec/swfdec_loader_internal.h
index...
2016 Oct 28
2
Samba and BTRFS server-side copy
...on via samba
>> wrote:
>>> Looking around inside that source code I also see:
>>>
>>> do_read (GVfsBackend *backend,
>>> GVfsJobRead *job,
>>> GVfsBackendHandle handle,
>>> char *buffer,
>>> gsize bytes_requested)
>>> {
>>> GVfsBackendSmb *op_backend = G_VFS_BACKEND_SMB (backend);
>>> ssize_t res;
>>> smbc_read_fn smbc_read;
>>>
>>> /* libsmbclient limits blocksize to (64*1024)-2 for Windows
>>> servers,
>>>...
2020 Aug 13
0
[PATCH 10/20] drm/omapdrm: Introduce GEM object functions
...;
+
+static const struct drm_gem_object_funcs omap_gem_object_funcs = {
+ .free = omap_gem_free_object,
+ .export = omap_gem_prime_export,
+ .vm_ops = &omap_gem_vm_ops,
+};
+
/* GEM buffer object constructor */
struct drm_gem_object *omap_gem_new(struct drm_device *dev,
union omap_gem_size gsize, u32 flags)
@@ -1236,6 +1248,8 @@ struct drm_gem_object *omap_gem_new(struct drm_device *dev,
size = PAGE_ALIGN(gsize.bytes);
}
+ obj->funcs = &omap_gem_object_funcs;
+
/* Initialize the GEM object. */
if (!(flags & OMAP_BO_MEM_SHMEM)) {
drm_gem_private_object_init(dev, obj...
2011 Feb 05
1
very basic HLM question
Hi everyone,
I need to get a between-component variance (e.g. random effects Anova),
but using lmer I don't get the same results (variance component) than
using random effects Anova. I am using a database of students, clustered
on schools (there is not the same number of students by school).
According to the ICC1 command, the interclass correlation is .44
> ICC1(anova1)
[1] 0.4414491
2007 Sep 08
0
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_video_movie_as.c
....h
index 819a65d..bc3290a 100644
--- a/libswfdec/swfdec_as_internal.h
+++ b/libswfdec/swfdec_as_internal.h
@@ -44,7 +44,8 @@ void swfdec_as_function_init_context (S
/* swfdec_as_context.c */
void swfdec_as_context_run_init_script (SwfdecAsContext * context,
const guint8 * data,
- gsize length);
+ gsize length,
+ guint version);
/* swfdec_as_object.c */
typedef SwfdecAsVariableForeach SwfdecAsVariableForeachRemove;
diff --git a/libswfdec/swfdec_player.c b/libswfdec/swfdec_player.c
index 7babf41..3d54325 100644
--- a/libswfdec/swfdec_player.c
+++ b/libswfdec/s...
2007 Jul 31
0
10 commits - doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_buffer.c libswfdec/swfdec_debugger.c libswfdec/swfdec.h
...ispose (GObject *obje
G_OBJECT_CLASS (swfdec_gtk_loader_parent_class)->dispose (object);
}
-static SwfdecLoader *
-swfdec_gtk_loader_load (SwfdecLoader *loader, const char *url,
+static void
+swfdec_gtk_loader_load (SwfdecLoader *loader,
SwfdecLoaderRequest request, const char *data, gsize data_len)
{
SwfdecGtkLoader *gtk = SWFDEC_GTK_LOADER (loader);
- GnomeVFSURI *parent, *new;
- /* FIXME: security! */
- parent = gnome_vfs_uri_get_parent (gtk->guri);
- new = gnome_vfs_uri_resolve_relative (parent, url);
- gnome_vfs_uri_unref (parent);
- return swfdec_gtk_loader_new_f...
2007 May 21
0
Branch 'as' - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c
...,18 +102,15 @@ swfdec_as_frame_init (SwfdecAsFrame *fra
}
SwfdecAsFrame *
-swfdec_as_frame_new (SwfdecAsObject *thisp, SwfdecScript *script)
+swfdec_as_frame_new (SwfdecAsContext *context, SwfdecScript *script)
{
- SwfdecAsContext *context;
SwfdecAsFrame *frame;
SwfdecAsStack *stack;
gsize size;
- g_return_val_if_fail (SWFDEC_IS_AS_OBJECT (thisp), NULL);
- g_return_val_if_fail (thisp->properties, NULL);
+ g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL);
g_return_val_if_fail (script != NULL, NULL);
- context = thisp->context;
stack = swfdec_as_stack_n...