Displaying 7 results from an estimated 7 matches for "g_maxint32".
2007 Oct 10
0
libswfdec/swfdec_as_context.c
...bswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c
index e5660a0..61de9b5 100644
--- a/libswfdec/swfdec_as_context.c
+++ b/libswfdec/swfdec_as_context.c
@@ -1227,7 +1227,11 @@ swfdec_as_context_parseInt (SwfdecAsCont
return;
}
- SWFDEC_AS_VALUE_SET_INT (retval, i);
+ if (i > G_MAXINT32 || i < G_MININT32) {
+ SWFDEC_AS_VALUE_SET_NUMBER (retval, i);
+ } else {
+ SWFDEC_AS_VALUE_SET_INT (retval, i);
+ }
}
SWFDEC_AS_NATIVE (100, 3, swfdec_as_context_parseFloat)
2012 Mar 27
16
[PATCH 01/16] generator: Fix unescaped '<' and '>' in api descriptions
---
generator/generator_actions.ml | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 68a7bf6..fcf363f 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -4664,7 +4664,7 @@ This creates an ext2/3/4 filesystem on C<device> with
an external journal on
2007 Aug 17
0
2 commits - libswfdec/swfdec_as_array.c test/trace
...const SwfdecAsValue *val)
+swfdec_as_array_set (SwfdecAsObject *object, const char *variable,
+ const SwfdecAsValue *val)
{
- gint32 l = swfdec_as_array_to_index (variable);
+ char *end;
+ gboolean indexvar = TRUE;
+ gint32 l = strtoul (variable, &end, 10);
+
+ if (*end != 0 || l > G_MAXINT32)
+ indexvar = FALSE;
// if we changed to smaller length, destroy all values that are outside it
if (!strcmp (variable, SWFDEC_AS_STR_length)) {
gint32 length_old = swfdec_as_array_get_length (object);
- gint32 length_new = MAX (0, swfdec_as_value_to_integer (object->context, v...
2012 Jan 17
3
GObject bindings
This is the first iteration of the GObject bindings. I have 'kicked the tyres'
on these, meaning I have ensured that a bunch of basic manual tests work as
expected. I'm in the process of adding more comprehensive tests.
Here's an example simple javascript program which uses these bindings:
===
const Guestfs = imports.gi.Guestfs;
print('Starting');
var g = new
2007 Aug 17
0
Branch 'vivi' - 9 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c
...const SwfdecAsValue *val)
+swfdec_as_array_set (SwfdecAsObject *object, const char *variable,
+ const SwfdecAsValue *val)
{
- gint32 l = swfdec_as_array_to_index (variable);
+ char *end;
+ gboolean indexvar = TRUE;
+ gint32 l = strtoul (variable, &end, 10);
+
+ if (*end != 0 || l > G_MAXINT32)
+ indexvar = FALSE;
// if we changed to smaller length, destroy all values that are outside it
if (!strcmp (variable, SWFDEC_AS_STR_length)) {
gint32 length_old = swfdec_as_array_get_length (object);
- gint32 length_new = MAX (0, swfdec_as_value_to_integer (object->context, v...
2012 Jan 20
11
[PATCH 01/10] Revert "Revert "generator: Add CamelName flag""
This reverts commit 3f6ca541c7b24d4c86688a509582cb41a7e0078c.
The original commit was reverted prematurely.
---
generator/generator_actions.ml | 10 +++++-----
generator/generator_checks.ml | 5 +++++
generator/generator_types.ml | 3 +++
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...NULL) {
- compile_state_error (state, "Failed to add double %g", d);
- return 0;
- }
- return ALE_INDEX (ale);
-}
-
-static jsatomid
-atomize_int32 (CompileState *state, int i)
-{
- JSAtom *atom;
- JSAtomListElement *ale;
-
- g_assert (i >= G_MININT32 && i <= G_MAXINT32);
- atom = js_AtomizeInt (state->cx, i, 0);
- ale = js_IndexAtom (state->cx, atom, &state->atoms);
- if (ale == NULL) {
- compile_state_error (state, "Failed to add int %d", i);
- return 0;
- }
- return ALE_INDEX (ale);
-}
-
-#define ONELINER(state, opcode) G_S...