g-wrap-dev
[Top][All Lists]
Advanced

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

fix deprecation warnings with guile 1.8


From: Andy Wingo
Subject: fix deprecation warnings with guile 1.8
Date: Thu, 24 Apr 2008 13:11:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

The attached bundle or whatever it is that `bzr send' produces makes
guile-gnome from bzr load without deprecation warnings.

# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: address@hidden
# target_branch: file:///home/wingo/src/g-wrap/mainline/
# testament_sha1: 97631dcee452edb9a8e4753ff46feee85e3f20f3
# timestamp: 2008-04-24 13:09:41 +0200
# base_revision_id: address@hidden
# 
# Begin patch
=== modified file 'ChangeLog'
--- ChangeLog   2008-03-25 15:26:00 +0000
+++ ChangeLog   2008-04-24 11:05:43 +0000
@@ -1,3 +1,11 @@
+2008-04-24  Andy Wingo  <address@hidden>
+
+       * guile/g-wrap/guile-runtime.c
+       (gw_guile_ensure_latent_variables_hash_and_binder)
+       (gw_guile_procedure_to_method_public, dynproc_smob_print)
+       (gw_guile_register_wrapset): Avoid INUMs so as to avoid
+       deprecation warnings on Guile 1.8.
+
 2008-03-25  Andreas Rottmann  <address@hidden>
 
        * Makefile.am (SUBDIRS, DIST_SUBDIRS): Drop in-tree libffi.

=== modified file 'guile/g-wrap/guile-runtime.c'
--- guile/g-wrap/guile-runtime.c        2007-07-03 19:28:42 +0000
+++ guile/g-wrap/guile-runtime.c        2008-04-24 11:05:43 +0000
@@ -456,7 +456,7 @@
       return SCM_BOOL_F; /* won't get here */
     }
 
-    scm_struct_set_x (module, SCM_MAKINUM (scm_module_index_binder),
+    scm_struct_set_x (module, scm_from_int (scm_module_index_binder),
                       scm_c_make_gsubr ("%gw-module-binder", 3, 0,
                                         0, gw_module_binder_proc));
 
@@ -531,11 +531,12 @@
   SCM pair;
   SCM existing_latents;
   SCM entry;
+  int cn_req_args;
 
   SCM_VALIDATE_PROC (1, proc);
   SCM_VALIDATE_LIST (2, specializers);
   SCM_VALIDATE_SYMBOL (3, generic_name);
-  SCM_VALIDATE_INUM (4, n_req_args);
+  SCM_VALIDATE_INT_COPY (4, n_req_args, cn_req_args);
   /* the fifth is a bool */
   
   generics = gw_guile_ensure_generics_module ();
@@ -553,7 +554,7 @@
                                 proc,
                                 specializers,
                                 scm_current_module (),
-                                scm_to_int (n_req_args), 
+                                cn_req_args,
                                 scm_is_true (use_optional_args));
       return;
     }
@@ -712,7 +713,7 @@
   scm_display (scm_from_locale_string ("#<gw:dynproc "), port);
   scm_display (scm_from_locale_string (fi->proc_name), port);
   scm_display (scm_from_locale_string (" ("), port);
-  scm_display (SCM_I_MAKINUM (fi->n_req_args), port);
+  scm_display (scm_from_int (fi->n_req_args), port);
   scm_display (scm_from_locale_string (")>"), port);
   
   return 1;
@@ -838,7 +839,7 @@
       gw_guile_procedure_to_method_public (
               subr, specializers,
               scm_from_locale_symbol (fi->generic_name),
-              SCM_I_MAKINUM (fi->n_req_args),
+              scm_from_int (fi->n_req_args),
               (fi->n_optional_args ? SCM_BOOL_T : SCM_BOOL_F));
     }
   }

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWa9l4O4AAnb/gEAwAARRd///
fqfPoL////BQBdheAAbYAAAGGkSPUyA0HqaepiAANAAANG1ADmAIwTEAwCYJoyGhgEwRiYShBJkT
T9UejRNlAAAA0A0aNNNAOYAjBMQDAJgmjIaGATBGJhJIEaAEAAp5qaEU8ajUae1Iaep6h6DR7hDt
JwYxmxZKsg+UBWGbLhv1GKthLLlCORUtrXXK0+ABQ6exrg6dokIRpRB6XSIyOd2Zy7+frq0w21FV
EVc3sgQfa9BsEsV7VmiPi15Yq4VMC343HFq8m8aZYOpSoK6YsUnvVNulFD5lgug0M9TKpF0Bwils
qS5ZcSp1uGFChGQd6AiO04wCJakkL4IwFQOikemGAY0Tu9m0F750lCHCIFuo+pS7t1NJyBtRrJAb
/+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