mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
Minor goops.c tidying
* libguile/goops.c: Reorder static variables. Remove unused sym_procedure.
This commit is contained in:
parent
5a6165db6e
commit
f6088819c8
1 changed files with 5 additions and 7 deletions
|
@ -55,6 +55,9 @@
|
|||
#define SCM_OUT_PCLASS_INDEX SCM_I_MAX_PORT_TYPE_COUNT
|
||||
#define SCM_INOUT_PCLASS_INDEX (2 * SCM_I_MAX_PORT_TYPE_COUNT)
|
||||
|
||||
#define SCM_GOOPS_UNBOUND SCM_UNBOUND
|
||||
#define SCM_GOOPS_UNBOUNDP(x) (scm_is_eq (x, SCM_GOOPS_UNBOUND))
|
||||
|
||||
/* Objects have identity, so references to classes and instances are by
|
||||
value, not by reference. Redefinition of a class or modification of
|
||||
an instance causes in-place update; you can think of GOOPS as
|
||||
|
@ -64,6 +67,8 @@
|
|||
References to ordinary procedures is by reference (by variable),
|
||||
though, as in the rest of Guile. */
|
||||
|
||||
static int goops_loaded_p = 0;
|
||||
|
||||
static SCM var_make_standard_class = SCM_BOOL_F;
|
||||
static SCM var_change_class = SCM_BOOL_F;
|
||||
static SCM var_make = SCM_BOOL_F;
|
||||
|
@ -90,11 +95,6 @@ static SCM var_slot_set_x = SCM_BOOL_F;
|
|||
static SCM var_slot_bound_p = SCM_BOOL_F;
|
||||
static SCM var_slot_exists_p = SCM_BOOL_F;
|
||||
|
||||
#define SCM_GOOPS_UNBOUND SCM_UNBOUND
|
||||
#define SCM_GOOPS_UNBOUNDP(x) (scm_is_eq (x, SCM_GOOPS_UNBOUND))
|
||||
|
||||
static int goops_loaded_p = 0;
|
||||
|
||||
/* These variables are filled in by the object system when loaded. */
|
||||
static SCM class_boolean, class_char, class_pair;
|
||||
static SCM class_procedure, class_string, class_symbol;
|
||||
|
@ -503,8 +503,6 @@ scm_is_method (SCM x)
|
|||
*
|
||||
******************************************************************************/
|
||||
|
||||
SCM_SYMBOL (sym_procedure, "procedure");
|
||||
|
||||
SCM
|
||||
scm_class_name (SCM obj)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue