Back to index

plt-scheme  4.2.1
idmodule.c File Reference
#include "escheme.h"

Go to the source code of this file.


static Scheme_Objectid (int argc, Scheme_Object **argv)
Scheme_Objectscheme_reload (Scheme_Env *env)
Scheme_Objectscheme_initialize (Scheme_Env *env)
Scheme_Objectscheme_module_name ()

Function Documentation

static Scheme_Object* id ( int  argc,
Scheme_Object **  argv 
) [static]

Definition at line 11 of file idmodule.c.

  return argv[0];

Definition at line 34 of file idmodule.c.

  /* First load is same as every load: */
  return scheme_reload(env);

Here is the call graph for this function:

Definition at line 40 of file idmodule.c.

  /* This extension defines a module named `idmodule': */
  return scheme_intern_symbol("idmodule");

Definition at line 16 of file idmodule.c.

  Scheme_Env *menv;
  Scheme_Object *proc;

  menv = scheme_primitive_module(scheme_intern_symbol("idmodule"),

  proc = scheme_make_prim_w_arity(id, "identity", 1, 1);

  /* All added names are automatically exported by the module: */
  scheme_add_global("identity", proc, menv);


  return scheme_void;