[gjs] Use unsigned instead of uintN



commit ca7ab1d41d666613efbb4106c076ae3f2f0c6719
Author: Rico Tzschichholz <ricotz t-online de>
Date:   Wed Jan 2 19:43:10 2013 +0100

    Use unsigned instead of uintN

 gi/boxed.c                      |    8 ++++----
 gi/function.c                   |    6 +++---
 gi/function.h                   |    2 +-
 gi/gerror.c                     |    4 ++--
 gi/gtype.c                      |    2 +-
 gi/interface.c                  |    2 +-
 gi/ns.c                         |    2 +-
 gi/object.c                     |   28 ++++++++++++++--------------
 gi/param.c                      |    2 +-
 gi/repo.c                       |    2 +-
 gi/union.c                      |    4 ++--
 gjs/byteArray.c                 |   14 +++++++-------
 gjs/compat.h                    |    2 +-
 gjs/context.c                   |   10 +++++-----
 gjs/importer.c                  |    4 ++--
 gjs/jsapi-dynamic-class.c       |    4 ++--
 gjs/jsapi-util.c                |    6 +++---
 gjs/jsapi-util.h                |   12 ++++++------
 gjs/profiler.c                  |    8 ++++----
 modules/cairo-context.c         |   30 +++++++++++++++---------------
 modules/cairo-gradient.c        |    4 ++--
 modules/cairo-image-surface.c   |   10 +++++-----
 modules/cairo-pattern.c         |    2 +-
 modules/cairo-solid-pattern.c   |    4 ++--
 modules/cairo-surface-pattern.c |    8 ++++----
 modules/cairo-surface.c         |    4 ++--
 modules/console.c               |    2 +-
 modules/console.h               |    2 +-
 modules/debugger.c              |    2 +-
 modules/format.c                |    2 +-
 modules/gettext-native.c        |   16 ++++++++--------
 modules/lang.c                  |    2 +-
 modules/mainloop.c              |   12 ++++++------
 modules/system.c                |   14 +++++++-------
 34 files changed, 118 insertions(+), 118 deletions(-)
---
diff --git a/gi/boxed.c b/gi/boxed.c
index d7e0920..ce935fc 100644
--- a/gi/boxed.c
+++ b/gi/boxed.c
@@ -118,7 +118,7 @@ static JSBool
 boxed_new_resolve(JSContext *context,
                   JSObject  *obj,
                   jsid       id,
-                  uintN      flags,
+                  unsigned   flags,
                   JSObject **objp)
 {
     Boxed *priv;
@@ -327,7 +327,7 @@ static JSBool
 boxed_invoke_constructor(JSContext   *context,
                          JSObject    *obj,
                          const gchar *constructor_name,
-                         uintN        argc,
+                         unsigned     argc,
                          jsval       *argv,
                          jsval       *rval)
 {
@@ -347,7 +347,7 @@ static JSBool
 boxed_new(JSContext   *context,
           JSObject    *obj, /* "this" for constructor */
           Boxed       *priv,
-          uintN        argc,
+          unsigned     argc,
           jsval       *argv,
           jsval       *rval)
 {
@@ -896,7 +896,7 @@ define_boxed_class_fields (JSContext *context,
 
 static JSBool
 to_string_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
diff --git a/gi/function.c b/gi/function.c
index 20c4ccb..38599d6 100644
--- a/gi/function.c
+++ b/gi/function.c
@@ -562,7 +562,7 @@ static JSBool
 gjs_invoke_c_function(JSContext      *context,
                       Function       *function,
                       JSObject       *obj, /* "this" object */
-                      uintN           js_argc,
+                      unsigned        js_argc,
                       jsval          *js_argv,
                       jsval          *js_rval)
 {
@@ -1180,7 +1180,7 @@ release:
 
 static JSBool
 function_call(JSContext *context,
-              uintN      js_argc,
+              unsigned   js_argc,
               jsval     *vp)
 {
     jsval *js_argv = JS_ARGV(context, vp);
@@ -1660,7 +1660,7 @@ JSBool
 gjs_invoke_c_function_uncached (JSContext      *context,
                                 GIFunctionInfo *info,
                                 JSObject       *obj,
-                                uintN           argc,
+                                unsigned        argc,
                                 jsval          *argv,
                                 jsval          *rval)
 {
diff --git a/gi/function.h b/gi/function.h
index 4a927e7..fa2f485 100644
--- a/gi/function.h
+++ b/gi/function.h
@@ -69,7 +69,7 @@ JSObject* gjs_define_function   (JSContext      *context,
 JSBool    gjs_invoke_c_function_uncached (JSContext      *context,
                                           GIFunctionInfo *info,
                                           JSObject       *obj,
-                                          uintN           argc,
+                                          unsigned        argc,
                                           jsval          *argv,
                                           jsval          *rval);
 
diff --git a/gi/gerror.c b/gi/gerror.c
index 2f40d7d..aed9ca4 100644
--- a/gi/gerror.c
+++ b/gi/gerror.c
@@ -200,7 +200,7 @@ error_get_code(JSContext *context, JSObject *obj, jsid id, jsval *vp)
 }
 
 static JSBool
-error_to_string(JSContext *context, uintN argc, jsval *vp)
+error_to_string(JSContext *context, unsigned argc, jsval *vp)
 {
     jsval v_self;
     JSObject *self;
@@ -254,7 +254,7 @@ error_to_string(JSContext *context, uintN argc, jsval *vp)
 }
 
 static JSBool
-error_constructor_value_of(JSContext *context, uintN argc, jsval *vp)
+error_constructor_value_of(JSContext *context, unsigned argc, jsval *vp)
 {
     jsval v_self, v_prototype;
     Error *priv;
diff --git a/gi/gtype.c b/gi/gtype.c
index c6e10ce..ba3954c 100644
--- a/gi/gtype.c
+++ b/gi/gtype.c
@@ -63,7 +63,7 @@ gjs_gtype_finalize(JSContext *context,
 
 static JSBool
 to_string_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
diff --git a/gi/interface.c b/gi/interface.c
index 41cbb65..0b750ff 100644
--- a/gi/interface.c
+++ b/gi/interface.c
@@ -102,7 +102,7 @@ static JSBool
 interface_new_resolve(JSContext *context,
                       JSObject  *obj,
                       jsid       id,
-                      uintN      flags,
+                      unsigned   flags,
                       JSObject **objp)
 {
     Interface *priv;
diff --git a/gi/ns.c b/gi/ns.c
index 23d0ebc..7187001 100644
--- a/gi/ns.c
+++ b/gi/ns.c
@@ -61,7 +61,7 @@ static JSBool
 ns_new_resolve(JSContext *context,
                JSObject  *obj,
                jsid       id,
-               uintN      flags,
+               unsigned   flags,
                JSObject **objp)
 {
     Ns *priv;
diff --git a/gi/object.c b/gi/object.c
index 013dc8e..f241d16 100644
--- a/gi/object.c
+++ b/gi/object.c
@@ -463,7 +463,7 @@ static JSBool
 object_instance_new_resolve(JSContext *context,
                             JSObject  *obj,
                             jsid       id,
-                            uintN      flags,
+                            unsigned   flags,
                             JSObject **objp)
 {
     GIFunctionInfo *method_info;
@@ -623,7 +623,7 @@ free_g_params(GParameter *params,
 static JSBool
 object_instance_props_to_g_parameters(JSContext   *context,
                                       JSObject    *obj,
-                                      uintN        argc,
+                                      unsigned     argc,
                                       jsval       *argv,
                                       GType        gtype,
                                       GParameter **gparams_p,
@@ -898,7 +898,7 @@ associate_js_gobject (JSContext      *context,
 static JSBool
 object_instance_init (JSContext *context,
                       JSObject **object,
-                      uintN      argc,
+                      unsigned   argc,
                       jsval     *argv)
 {
     ObjectInstance *priv;
@@ -1128,7 +1128,7 @@ signal_connection_invalidated (gpointer  user_data,
 
 static JSBool
 real_connect_func(JSContext *context,
-                  uintN      argc,
+                  unsigned   argc,
                   jsval     *vp,
                   gboolean  after)
 {
@@ -1223,7 +1223,7 @@ real_connect_func(JSContext *context,
 
 static JSBool
 connect_after_func(JSContext *context,
-                   uintN      argc,
+                   unsigned   argc,
                    jsval     *vp)
 {
     return real_connect_func(context, argc, vp, TRUE);
@@ -1231,7 +1231,7 @@ connect_after_func(JSContext *context,
 
 static JSBool
 connect_func(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     return real_connect_func(context, argc, vp, FALSE);
@@ -1239,7 +1239,7 @@ connect_func(JSContext *context,
 
 static JSBool
 disconnect_func(JSContext *context,
-                uintN      argc,
+                unsigned   argc,
                 jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -1283,7 +1283,7 @@ disconnect_func(JSContext *context,
 
 static JSBool
 emit_func(JSContext *context,
-          uintN      argc,
+          unsigned   argc,
           jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -1408,7 +1408,7 @@ emit_func(JSContext *context,
 
 static JSBool
 to_string_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
@@ -1461,7 +1461,7 @@ static struct JSClass gjs_object_instance_class = {
 
 static JSBool
 init_func (JSContext *context,
-           uintN      argc,
+           unsigned   argc,
            jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -1930,7 +1930,7 @@ find_vfunc_info (JSContext *context,
 
 static JSBool
 gjs_hook_up_vfunc(JSContext *cx,
-                  uintN      argc,
+                  unsigned   argc,
                   jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
@@ -2149,7 +2149,7 @@ gjs_add_interface(GType instance_type,
 
 static JSBool
 gjs_register_type(JSContext *cx,
-                  uintN      argc,
+                  unsigned   argc,
                   jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
@@ -2268,7 +2268,7 @@ gjs_register_type(JSContext *cx,
 
 static JSBool
 gjs_register_property(JSContext *cx,
-                      uintN      argc,
+                      unsigned   argc,
                       jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
@@ -2305,7 +2305,7 @@ gjs_register_property(JSContext *cx,
 
 static JSBool
 gjs_signal_new(JSContext *cx,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
diff --git a/gi/param.c b/gi/param.c
index 632c970..c8594d8 100644
--- a/gi/param.c
+++ b/gi/param.c
@@ -180,7 +180,7 @@ param_finalize(JSContext *context,
 
 static JSBool
 param_new_internal(JSContext *cx,
-                   uintN      argc,
+                   unsigned   argc,
                    jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
diff --git a/gi/repo.c b/gi/repo.c
index 3b4502e..caf163b 100644
--- a/gi/repo.c
+++ b/gi/repo.c
@@ -158,7 +158,7 @@ static JSBool
 repo_new_resolve(JSContext *context,
                  JSObject  *obj,
                  jsid       id,
-                 uintN      flags,
+                 unsigned   flags,
                  JSObject **objp)
 {
     Repo *priv;
diff --git a/gi/union.c b/gi/union.c
index e68605b..c48547c 100644
--- a/gi/union.c
+++ b/gi/union.c
@@ -66,7 +66,7 @@ static JSBool
 union_new_resolve(JSContext *context,
                   JSObject  *obj,
                   jsid       id,
-                  uintN      flags,
+                  unsigned   flags,
                   JSObject **objp)
 {
     Union *priv;
@@ -281,7 +281,7 @@ union_finalize(JSContext *context,
 
 static JSBool
 to_string_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
diff --git a/gjs/byteArray.c b/gjs/byteArray.c
index e5eb7c4..c2273cc 100644
--- a/gjs/byteArray.c
+++ b/gjs/byteArray.c
@@ -52,7 +52,7 @@ static JSBool byte_array_set_prop      (JSContext    *context,
 static JSBool byte_array_new_resolve   (JSContext    *context,
                                         JSObject     *obj,
                                         jsid          id,
-                                        uintN         flags,
+                                        unsigned      flags,
                                         JSObject    **objp);
 GJS_NATIVE_CONSTRUCTOR_DECLARE(byte_array);
 static void   byte_array_finalize      (JSContext    *context,
@@ -386,7 +386,7 @@ static JSBool
 byte_array_new_resolve(JSContext *context,
                        JSObject  *obj,
                        jsid       id,
-                       uintN      flags,
+                       unsigned   flags,
                        JSObject **objp)
 {
     ByteArrayInstance *priv;
@@ -511,7 +511,7 @@ byte_array_finalize(JSContext *context,
 /* implement toString() with an optional encoding arg */
 static JSBool
 to_string_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -611,7 +611,7 @@ to_string_func(JSContext *context,
 
 static JSBool
 to_gbytes_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *object = JS_THIS_OBJECT(context, vp);
@@ -652,7 +652,7 @@ byte_array_new(JSContext *context)
 /* fromString() function implementation */
 static JSBool
 from_string_func(JSContext *context,
-                 uintN      argc,
+                 unsigned   argc,
                  jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -762,7 +762,7 @@ from_string_func(JSContext *context,
 /* fromArray() function implementation */
 static JSBool
 from_array_func(JSContext *context,
-                uintN      argc,
+                unsigned   argc,
                 jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -829,7 +829,7 @@ from_array_func(JSContext *context,
 
 static JSBool
 from_gbytes_func(JSContext *context,
-                 uintN      argc,
+                 unsigned   argc,
                  jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
diff --git a/gjs/compat.h b/gjs/compat.h
index 4622d5c..f5e9634 100644
--- a/gjs/compat.h
+++ b/gjs/compat.h
@@ -52,7 +52,7 @@ G_BEGIN_DECLS
 #define GJS_NATIVE_CONSTRUCTOR_DECLARE(name)            \
 static JSBool                                           \
 gjs_##name##_constructor(JSContext  *context,           \
-                         uintN       argc,              \
+                         unsigned    argc,              \
                          jsval      *vp)
 
 /**
diff --git a/gjs/context.c b/gjs/context.c
index 22b6307..6fff636 100644
--- a/gjs/context.c
+++ b/gjs/context.c
@@ -104,7 +104,7 @@ static GList *all_contexts = NULL;
 
 static JSBool
 gjs_log(JSContext *context,
-        uintN      argc,
+        unsigned   argc,
         jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -148,7 +148,7 @@ gjs_log(JSContext *context,
 
 static JSBool
 gjs_log_error(JSContext *context,
-              uintN      argc,
+              unsigned   argc,
               jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -197,7 +197,7 @@ gjs_log_error(JSContext *context,
 
 static JSBool
 gjs_print_parse_args(JSContext *context,
-                     uintN      argc,
+                     unsigned   argc,
                      jsval     *argv,
                      char     **buffer)
 {
@@ -254,7 +254,7 @@ gjs_print_parse_args(JSContext *context,
 
 static JSBool
 gjs_print(JSContext *context,
-          uintN      argc,
+          unsigned   argc,
           jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -273,7 +273,7 @@ gjs_print(JSContext *context,
 
 static JSBool
 gjs_printerr(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
diff --git a/gjs/importer.c b/gjs/importer.c
index 184f14c..d7a3ecc 100644
--- a/gjs/importer.c
+++ b/gjs/importer.c
@@ -171,7 +171,7 @@ seal_import(JSContext  *context,
             const char *name)
 {
     JSBool found;
-    uintN attrs;
+    unsigned attrs;
 
     if (!JS_GetPropertyAttributes(context, obj, name,
                                   &attrs, &found) || !found) {
@@ -965,7 +965,7 @@ static JSBool
 importer_new_resolve(JSContext *context,
                      JSObject  *obj,
                      jsid       id,
-                     uintN      flags,
+                     unsigned   flags,
                      JSObject **objp)
 {
     Importer *priv;
diff --git a/gjs/jsapi-dynamic-class.c b/gjs/jsapi-dynamic-class.c
index c6b8d36..d2648d8 100644
--- a/gjs/jsapi-dynamic-class.c
+++ b/gjs/jsapi-dynamic-class.c
@@ -70,7 +70,7 @@ gjs_init_class_dynamic(JSContext       *context,
                        const char      *class_name,
                        JSClass         *clasp,
                        JSNative         constructor_native,
-                       uintN            nargs,
+                       unsigned         nargs,
                        JSPropertySpec  *proto_ps,
                        JSFunctionSpec  *proto_fs,
                        JSPropertySpec  *static_ps,
@@ -200,7 +200,7 @@ gjs_typecheck_instance(JSContext *context,
 JSObject*
 gjs_construct_object_dynamic(JSContext      *context,
                              JSObject       *proto,
-                             uintN           argc,
+                             unsigned        argc,
                              jsval          *argv)
 {
     JSObject *constructor;
diff --git a/gjs/jsapi-util.c b/gjs/jsapi-util.c
index a84c4e3..5768ad3 100644
--- a/gjs/jsapi-util.c
+++ b/gjs/jsapi-util.c
@@ -451,7 +451,7 @@ gjs_define_string_array(JSContext   *context,
                         const char  *array_name,
                         gssize       array_length,
                         const char **array_values,
-                        uintN        attrs)
+                        unsigned     attrs)
 {
     GArray *elems;
     JSObject *array;
@@ -914,7 +914,7 @@ JSBool
 gjs_call_function_value(JSContext      *context,
                         JSObject       *obj,
                         jsval           fval,
-                        uintN           argc,
+                        unsigned        argc,
                         jsval          *argv,
                         jsval          *rval)
 {
@@ -1135,7 +1135,7 @@ JSBool
 gjs_parse_args (JSContext  *context,
                 const char *function_name,
                 const char *format,
-                uintN      argc,
+                unsigned   argc,
                 jsval     *argv,
                 ...)
 {
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index 4490861..f49bd5b 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -122,7 +122,7 @@ static void gjs_##cname##_finalize(JSContext *context, JSObject *obj); \
 static JSBool gjs_##cname##_new_resolve(JSContext *context, \
                                         JSObject  *obj, \
                                         jsval      id, \
-                                        uintN      flags, \
+                                        unsigned   flags, \
                                         JSObject **objp) \
 { \
     return JS_TRUE; \
@@ -211,7 +211,7 @@ JSBool      gjs_init_class_dynamic           (JSContext       *context,
                                               const char      *class_name,
                                               JSClass         *clasp,
                                               JSNative         constructor,
-                                              uintN            nargs,
+                                              unsigned         nargs,
                                               JSPropertySpec  *ps,
                                               JSFunctionSpec  *fs,
                                               JSPropertySpec  *static_ps,
@@ -229,14 +229,14 @@ JSBool gjs_typecheck_instance                 (JSContext  *context,
 
 JSObject*   gjs_construct_object_dynamic     (JSContext       *context,
                                               JSObject        *proto,
-                                              uintN            argc,
+                                              unsigned         argc,
                                               jsval           *argv);
 JSObject*   gjs_define_string_array          (JSContext       *context,
                                               JSObject        *obj,
                                               const char      *array_name,
                                               gssize           array_length,
                                               const char     **array_values,
-                                              uintN            attrs);
+                                              unsigned         attrs);
 void        gjs_throw                        (JSContext       *context,
                                               const char      *format,
                                               ...)  G_GNUC_PRINTF (2, 3);
@@ -269,7 +269,7 @@ void        gjs_explain_scope                (JSContext       *context,
 JSBool      gjs_call_function_value          (JSContext       *context,
                                               JSObject        *obj,
                                               jsval            fval,
-                                              uintN            argc,
+                                              unsigned         argc,
                                               jsval           *argv,
                                               jsval           *rval);
 void        gjs_error_reporter               (JSContext       *context,
@@ -340,7 +340,7 @@ jsval       gjs_date_from_time_t             (JSContext *context, time_t time);
 JSBool      gjs_parse_args                   (JSContext  *context,
                                               const char *function_name,
                                               const char *format,
-                                              uintN      argc,
+                                              unsigned   argc,
                                               jsval     *argv,
                                               ...);
 
diff --git a/gjs/profiler.c b/gjs/profiler.c
index 915cb11..ac726cb 100644
--- a/gjs/profiler.c
+++ b/gjs/profiler.c
@@ -55,10 +55,10 @@ struct _GjsProfileData {
     GjsProfileData *caller;
     int64 enter_time;
     int64 runtime_so_far;
-    uintN recurse_depth;
+    unsigned recurse_depth;
 
     /* final statistics */
-    uintN call_count;
+    unsigned call_count;
 
     int64 total_time;
     int64 self_time;
@@ -66,7 +66,7 @@ struct _GjsProfileData {
 
 typedef struct {
     char       *filename;
-    uintN       lineno;
+    unsigned    lineno;
     char       *function_name;
 } GjsProfileFunctionKey;
 
@@ -277,7 +277,7 @@ gjs_profiler_log_call(GjsProfiler  *self,
 static void
 gjs_profiler_new_script_hook(JSContext  *cx,
                              const char *filename,
-                             uintN       lineno,
+                             unsigned    lineno,
                              JSScript   *script,
                              JSFunction *fun,
                              void       *callerdata)
diff --git a/modules/cairo-context.c b/modules/cairo-context.c
index 4c6f46c..26095d8 100644
--- a/modules/cairo-context.c
+++ b/modules/cairo-context.c
@@ -32,7 +32,7 @@
 #define _GJS_CAIRO_CONTEXT_DEFINE_FUNC_BEGIN(mname) \
 static JSBool                                       \
 mname##_func(JSContext *context,                    \
-              uintN      argc,                      \
+              unsigned   argc,                      \
               jsval     *vp)                    \
 {                                                   \
     JSObject *obj = JS_THIS_OBJECT(context, vp);        \
@@ -404,7 +404,7 @@ _GJS_CAIRO_CONTEXT_DEFINE_FUNC2FFAFF(userToDeviceDistance, cairo_user_to_device_
 
 static JSBool
 appendPath_func(JSContext *context,
-                uintN      argc,
+                unsigned   argc,
                 jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -431,7 +431,7 @@ appendPath_func(JSContext *context,
 
 static JSBool
 copyPath_func(JSContext *context,
-              uintN      argc,
+              unsigned   argc,
               jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -451,7 +451,7 @@ copyPath_func(JSContext *context,
 
 static JSBool
 copyPathFlat_func(JSContext *context,
-                  uintN      argc,
+                  unsigned   argc,
                   jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -470,7 +470,7 @@ copyPathFlat_func(JSContext *context,
 
 static JSBool
 mask_func(JSContext *context,
-          uintN      argc,
+          unsigned   argc,
           jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -501,7 +501,7 @@ mask_func(JSContext *context,
 
 static JSBool
 maskSurface_func(JSContext *context,
-                 uintN      argc,
+                 unsigned   argc,
                  jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -536,7 +536,7 @@ maskSurface_func(JSContext *context,
 
 static JSBool
 setDash_func(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -600,7 +600,7 @@ setDash_func(JSContext *context,
 
 static JSBool
 setSource_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -633,7 +633,7 @@ setSource_func(JSContext *context,
 
 static JSBool
 setSourceSurface_func(JSContext *context,
-                      uintN      argc,
+                      unsigned   argc,
                       jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -669,7 +669,7 @@ setSourceSurface_func(JSContext *context,
 
 static JSBool
 showText_func(JSContext *context,
-              uintN      argc,
+              unsigned   argc,
               jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -696,7 +696,7 @@ showText_func(JSContext *context,
 
 static JSBool
 selectFontFace_func(JSContext *context,
-                    uintN      argc,
+                    unsigned   argc,
                     jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -726,7 +726,7 @@ selectFontFace_func(JSContext *context,
 
 static JSBool
 popGroup_func(JSContext *context,
-              uintN      argc,
+              unsigned   argc,
               jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
@@ -757,7 +757,7 @@ popGroup_func(JSContext *context,
 }
 static JSBool
 getSource_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
@@ -789,7 +789,7 @@ getSource_func(JSContext *context,
 
 static JSBool
 getTarget_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
@@ -821,7 +821,7 @@ getTarget_func(JSContext *context,
 
 static JSBool
 getGroupTarget_func(JSContext *context,
-                    uintN      argc,
+                    unsigned   argc,
                     jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
diff --git a/modules/cairo-gradient.c b/modules/cairo-gradient.c
index 7f46ad5..91c74a8 100644
--- a/modules/cairo-gradient.c
+++ b/modules/cairo-gradient.c
@@ -45,7 +45,7 @@ static JSPropertySpec gjs_cairo_gradient_proto_props[] = {
 
 static JSBool
 addColorStopRGB_func(JSContext *context,
-                     uintN      argc,
+                     unsigned   argc,
                      jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -73,7 +73,7 @@ addColorStopRGB_func(JSContext *context,
 
 static JSBool
 addColorStopRGBA_func(JSContext *context,
-                      uintN      argc,
+                      unsigned   argc,
                       jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
diff --git a/modules/cairo-image-surface.c b/modules/cairo-image-surface.c
index 31bdb0e..815bb4e 100644
--- a/modules/cairo-image-surface.c
+++ b/modules/cairo-image-surface.c
@@ -70,7 +70,7 @@ static JSPropertySpec gjs_cairo_image_surface_proto_props[] = {
 
 static JSBool
 createFromPNG_func(JSContext *context,
-                   uintN      argc,
+                   unsigned   argc,
                    jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -101,7 +101,7 @@ createFromPNG_func(JSContext *context,
 
 static JSBool
 getFormat_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
@@ -125,7 +125,7 @@ getFormat_func(JSContext *context,
 
 static JSBool
 getWidth_func(JSContext *context,
-              uintN      argc,
+              unsigned   argc,
               jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
@@ -149,7 +149,7 @@ getWidth_func(JSContext *context,
 
 static JSBool
 getHeight_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
@@ -173,7 +173,7 @@ getHeight_func(JSContext *context,
 
 static JSBool
 getStride_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
diff --git a/modules/cairo-pattern.c b/modules/cairo-pattern.c
index b8b5697..98b64f2 100644
--- a/modules/cairo-pattern.c
+++ b/modules/cairo-pattern.c
@@ -58,7 +58,7 @@ static JSPropertySpec gjs_cairo_pattern_proto_props[] = {
 
 static JSBool
 getType_func(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
diff --git a/modules/cairo-solid-pattern.c b/modules/cairo-solid-pattern.c
index d7d316c..60733ef 100644
--- a/modules/cairo-solid-pattern.c
+++ b/modules/cairo-solid-pattern.c
@@ -42,7 +42,7 @@ static JSPropertySpec gjs_cairo_solid_pattern_proto_props[] = {
 
 static JSBool
 createRGB_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -70,7 +70,7 @@ createRGB_func(JSContext *context,
 
 static JSBool
 createRGBA_func(JSContext *context,
-                uintN      argc,
+                unsigned   argc,
                 jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
diff --git a/modules/cairo-surface-pattern.c b/modules/cairo-surface-pattern.c
index bc5ea5c..9cdc123 100644
--- a/modules/cairo-surface-pattern.c
+++ b/modules/cairo-surface-pattern.c
@@ -76,7 +76,7 @@ static JSPropertySpec gjs_cairo_surface_pattern_proto_props[] = {
 
 static JSBool
 setExtend_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -100,7 +100,7 @@ setExtend_func(JSContext *context,
 
 static JSBool
 getExtend_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
@@ -125,7 +125,7 @@ getExtend_func(JSContext *context,
 
 static JSBool
 setFilter_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -149,7 +149,7 @@ setFilter_func(JSContext *context,
 
 static JSBool
 getFilter_func(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
diff --git a/modules/cairo-surface.c b/modules/cairo-surface.c
index 94d5d6a..1d372df 100644
--- a/modules/cairo-surface.c
+++ b/modules/cairo-surface.c
@@ -57,7 +57,7 @@ static JSPropertySpec gjs_cairo_surface_proto_props[] = {
 /* Methods */
 static JSBool
 writeToPNG_func(JSContext *context,
-                uintN      argc,
+                unsigned   argc,
                 jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -85,7 +85,7 @@ writeToPNG_func(JSContext *context,
 
 static JSBool
 getType_func(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     JSObject *obj = JS_THIS_OBJECT(context, vp);
diff --git a/modules/console.c b/modules/console.c
index ca5c32d..a66077f 100644
--- a/modules/console.c
+++ b/modules/console.c
@@ -155,7 +155,7 @@ gjs_console_readline(JSContext *cx, char **bufp, FILE *file, const char *prompt)
 
 JSBool
 gjs_console_interact(JSContext *context,
-                     uintN      argc,
+                     unsigned   argc,
                      jsval     *vp)
 {
     JSObject *object = JS_THIS_OBJECT(context, vp);
diff --git a/modules/console.h b/modules/console.h
index 3d7c6fc..39fae94 100644
--- a/modules/console.h
+++ b/modules/console.h
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
 JSBool        gjs_define_console_stuff     (JSContext      *context,
                                             JSObject       *in_object);
 JSBool        gjs_console_interact         (JSContext      *context,
-                                            uintN           argc,
+                                            unsigned        argc,
                                             jsval          *vp);
 
 G_END_DECLS
diff --git a/modules/debugger.c b/modules/debugger.c
index 872579a..84d739c 100644
--- a/modules/debugger.c
+++ b/modules/debugger.c
@@ -29,7 +29,7 @@
 #include "debugger.h"
 
 static JSBool
-gjs_debugger_native_trap(JSContext *cx, uintN argc, jsval *vp)
+gjs_debugger_native_trap(JSContext *cx, unsigned argc, jsval *vp)
 {
     G_BREAKPOINT();
 
diff --git a/modules/format.c b/modules/format.c
index e73e73a..53ca38f 100644
--- a/modules/format.c
+++ b/modules/format.c
@@ -29,7 +29,7 @@
 
 static JSBool
 gjs_format_int_alternative_output(JSContext *context,
-                                  uintN      argc,
+                                  unsigned   argc,
                                   jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
diff --git a/modules/gettext-native.c b/modules/gettext-native.c
index f81ae4e..a38040c 100644
--- a/modules/gettext-native.c
+++ b/modules/gettext-native.c
@@ -31,7 +31,7 @@
 
 static JSBool
 gjs_textdomain(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -50,7 +50,7 @@ gjs_textdomain(JSContext *context,
 
 static JSBool
 gjs_bindtextdomain(JSContext *context,
-                   uintN      argc,
+                   unsigned   argc,
                    jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -73,7 +73,7 @@ gjs_bindtextdomain(JSContext *context,
 
 static JSBool
 gjs_gettext(JSContext *context,
-            uintN      argc,
+            unsigned   argc,
             jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -96,7 +96,7 @@ gjs_gettext(JSContext *context,
 
 static JSBool
 gjs_dgettext(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -122,7 +122,7 @@ gjs_dgettext(JSContext *context,
 
 static JSBool
 gjs_ngettext(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -149,7 +149,7 @@ gjs_ngettext(JSContext *context,
 
 static JSBool
 gjs_dngettext(JSContext *context,
-              uintN      argc,
+              unsigned   argc,
               jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -179,7 +179,7 @@ gjs_dngettext(JSContext *context,
 
 static JSBool
 gjs_pgettext(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -205,7 +205,7 @@ gjs_pgettext(JSContext *context,
 
 static JSBool
 gjs_dpgettext(JSContext *context,
-              uintN      argc,
+              unsigned   argc,
               jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
diff --git a/modules/lang.c b/modules/lang.c
index 736e460..fbc5b69 100644
--- a/modules/lang.c
+++ b/modules/lang.c
@@ -29,7 +29,7 @@
 
 static JSBool
 gjs_lang_seal(JSContext *cx,
-              uintN      argc,
+              unsigned   argc,
               jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
diff --git a/modules/mainloop.c b/modules/mainloop.c
index 71dd693..015740a 100644
--- a/modules/mainloop.c
+++ b/modules/mainloop.c
@@ -35,7 +35,7 @@ static GHashTable *pending_main_loops;
 
 static JSBool
 gjs_main_loop_quit(JSContext *context,
-                   uintN      argc,
+                   unsigned   argc,
                    jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -75,7 +75,7 @@ gjs_main_loop_quit(JSContext *context,
 
 static JSBool
 gjs_main_loop_run(JSContext *context,
-                  uintN      argc,
+                  unsigned   argc,
                   jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -177,7 +177,7 @@ closure_invalidated(gpointer  data,
 
 static JSBool
 gjs_timeout_add(JSContext *context,
-                uintN      argc,
+                unsigned   argc,
                 jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -224,7 +224,7 @@ gjs_timeout_add(JSContext *context,
 
 static JSBool
 gjs_timeout_add_seconds(JSContext *context,
-                        uintN      argc,
+                        unsigned   argc,
                         jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -267,7 +267,7 @@ gjs_timeout_add_seconds(JSContext *context,
 
 static JSBool
 gjs_idle_add(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
@@ -313,7 +313,7 @@ gjs_idle_add(JSContext *context,
 
 static JSBool
 gjs_source_remove(JSContext *context,
-                  uintN      argc,
+                  unsigned   argc,
                   jsval     *vp)
 {
     jsval *argv = JS_ARGV(context, vp);
diff --git a/modules/system.c b/modules/system.c
index d80c2b9..84d5b07 100644
--- a/modules/system.c
+++ b/modules/system.c
@@ -33,7 +33,7 @@
 
 static JSBool
 gjs_address_of(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
@@ -56,7 +56,7 @@ gjs_address_of(JSContext *context,
 
 static JSBool
 gjs_refcount(JSContext *context,
-             uintN      argc,
+             unsigned   argc,
              jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
@@ -82,7 +82,7 @@ gjs_refcount(JSContext *context,
 
 static JSBool
 gjs_breakpoint(JSContext *context,
-               uintN      argc,
+               unsigned   argc,
                jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
@@ -94,7 +94,7 @@ gjs_breakpoint(JSContext *context,
 
 static JSBool
 gjs_gc(JSContext *context,
-       uintN      argc,
+       unsigned   argc,
        jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
@@ -106,7 +106,7 @@ gjs_gc(JSContext *context,
 
 static JSBool
 gjs_getpid(JSContext *context,
-           uintN      argc,
+           unsigned   argc,
            jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
@@ -120,7 +120,7 @@ gjs_getpid(JSContext *context,
 
 static JSBool
 gjs_getuid(JSContext *context,
-           uintN      argc,
+           unsigned   argc,
            jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);
@@ -134,7 +134,7 @@ gjs_getuid(JSContext *context,
 
 static JSBool
 gjs_getgid(JSContext *context,
-           uintN      argc,
+           unsigned   argc,
            jsval     *vp)
 {
     jsval *argv = JS_ARGV(cx, vp);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]